void __cdecl -[DJIAppSettings loadDJICfg](DJIAppSettings *self, SEL a2) { DJIAppSettings *v2; // x19 struct objc_object *v3; // x0 void *v4; // x0 void *v5; // x21 void *v6; // x0 __int64 v7; // x20 void *v8; // x0 void *v9; // x0 void *v10; // x21 void *v11; // x0 void *v12; // x0 void *v13; // x0 __int64 v14; // x8 void *v15; // x0 void *v16; // x0 void *v17; // x0 char v18; // w22 v2 = self; v3 = +[DJIFileHelper fetchDocumentPath](&OBJC_CLASS___DJIFileHelper, "fetchDocumentPath"); v4 = (void *)objc_retainAutoreleasedReturnValue(v3); v5 = v4; v6 = objc_msgSend(v4, "stringByAppendingPathComponent:", CFSTR(".DJI.configs")); v7 = objc_retainAutoreleasedReturnValue(v6); objc_release(v5); v8 = objc_msgSend(&OBJC_CLASS___NSData, "dataWithContentsOfFile:", v7); v9 = (void *)objc_retainAutoreleasedReturnValue(v8); v10 = v9; if ( v9 ) { v2->_canUseIllegalChannels = 0; v2->_mfiDisable = 0; v2->_firmwareServiceType = 0; v2->_limitCameraRecordingTime = 1; v2->_simulatorInternalDisable = 0; if ( (unsigned __int64)objc_msgSend(v9, "length") >= 0x29 ) { v11 = (void *)objc_retainAutorelease(v10); if ( *((_BYTE *)objc_msgSend(v11, "bytes") + 39) == 1 ) v2->_canUseIllegalChannels = 1; } if ( (unsigned __int64)objc_msgSend(v10, "length") >= 0x2A ) { v12 = (void *)objc_retainAutorelease(v10); if ( *((_BYTE *)objc_msgSend(v12, "bytes") + 40) == 1 ) v2->_mfiDisable = 1; } if ( (unsigned __int64)objc_msgSend(v10, "length") >= 0x2D ) { v13 = (void *)objc_retainAutorelease(v10); v14 = *((unsigned __int8 *)objc_msgSend(v13, "bytes") + 43); if ( (_DWORD)v14 == 2 ) v2->_firmwareServiceType = 2; else v2->_firmwareServiceType = v14 == 1; } if ( (unsigned __int64)objc_msgSend(v10, "length") >= 0x2E ) { v15 = (void *)objc_retainAutorelease(v10); if ( *((_BYTE *)objc_msgSend(v15, "bytes") + 44) == 1 ) v2->_limitCameraRecordingTime = 0; } if ( (unsigned __int64)objc_msgSend(v10, "length") >= 0x2F ) { v16 = (void *)objc_retainAutorelease(v10); if ( *((_BYTE *)objc_msgSend(v16, "bytes") + 45) == 1 ) v2->_simulatorInternalDisable = 1; } if ( (unsigned __int64)objc_msgSend(v10, "length") >= 0x31 ) { v17 = (void *)objc_retainAutorelease(v10); v18 = *((_BYTE *)objc_msgSend(v17, "bytes") + 48); if ( v18 & 1 ) -[DJIAppSettings setSdr_force_fcc:](v2, "setSdr_force_fcc:", 1LL); if ( v18 & 2 ) -[DJIAppSettings setSdr_force_boost:](v2, "setSdr_force_boost:", 1LL); if ( v18 & 4 ) -[DJIAppSettings setSdr_force_2_3_G:](v2, "setSdr_force_2_3_G:", 1LL); if ( v18 & 8 ) -[DJIAppSettings setSdr_force_2_5_G:](v2, "setSdr_force_2_5_G:", 1LL); } } objc_release(v10); objc_release(v7); }