// // sub_1004D2A34 from 0x1004d2a34 to 0x1004d2cac (632 bytes) // // 8 xrefs: // > sub_1004CF9C0 @ 0x1004d134c // > sub_1004D268C @ 0x1004d26d8 // > sub_1004D268C @ 0x1004d27ac // > sub_1004D2CAC @ 0x1004d2cf8 // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1004d3e18 // > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1004d4444 // > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1004d44c4 // > EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x1004d453c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:06:29 +0000 // __int64 __fastcall sub_1004D2A34(__int64 a1) { __int64 v2; // x8 int v3; // w22 __int64 v4; // x0 _BOOL4 v5; // w21 __int64 v6; // x0 char v7; // w8 __int64 v8; // x0 char v9; // w8 __int64 v10; // x0 char v11; // w8 __int64 v12; // x0 __int64 v13; // x20 char *v14; // x21 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x0 char v18; // w8 __int64 v19; // x0 __int64 v20; // x0 __int64 v21; // x0 __int64 v22; // x8 char v23; // w20 __int64 v24; // x0 __int64 result; // x0 char v26; // w8 v2 = *(_QWORD *)(a1 + 1088); if ( v2 ) { v3 = *(unsigned __int8 *)(v2 + 496); if ( EditorSFXManager::sharedState() ) { v4 = EditorSFXManager::sharedState(); v5 = sub_1004CAD00(v4, *(_DWORD *)(*(_QWORD *)(a1 + 1088) + 316LL)) != 0; } else { v5 = 0; } v6 = *(_QWORD *)(a1 + 1144); if ( !v6 ) { LABEL_12: v8 = *(_QWORD *)(a1 + 1152); if ( v8 ) { if ( v3 ) { v9 = *(_BYTE *)(a1 + 1120) ^ 1; v3 = 1; } else { v9 = 0; } goto LABEL_17; } goto LABEL_18; } if ( v3 ) { v7 = *(_BYTE *)(a1 + 1120) ^ 1; v3 = 1; LABEL_11: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 1056LL))(v6, v7 & 1); goto LABEL_12; } LABEL_10: v7 = 0; goto LABEL_11; } v6 = *(_QWORD *)(a1 + 1144); if ( v6 ) { v3 = 0; v5 = 0; goto LABEL_10; } v5 = 0; v3 = 0; v9 = 0; v8 = *(_QWORD *)(a1 + 1152); if ( v8 ) LABEL_17: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 1056LL))(v8, v9 & 1); LABEL_18: v10 = *(_QWORD *)(a1 + 1160); if ( v10 ) { v11 = ((v3 | v5) & 1) != 0 ? *(_BYTE *)(a1 + 1120) ^ 1 : 0; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 1056LL))(v10, v11 & 1); v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1160) + 1072LL))(*(_QWORD *)(a1 + 1160)); if ( v12 ) { v13 = v12; if ( v5 ) v14 = "gj_heartOn_001.png"; else v14 = "gj_heartOff_001.png"; v15 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v15, v14); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 1160LL))(v13, v16); } } v17 = *(_QWORD *)(a1 + 1184); if ( v17 ) { if ( v3 ) v18 = *(_BYTE *)(a1 + 1120) ^ 1; else v18 = 0; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 1056LL))(v17, v18 & 1); } v19 = *(_QWORD *)(a1 + 1168); if ( v19 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v19 + 1056LL))(v19, (*(_BYTE *)(a1 + 1120) & 1) == 0); v20 = *(_QWORD *)(a1 + 1176); if ( v20 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v20 + 1056LL))(v20, (*(_BYTE *)(a1 + 1120) & 1) == 0); v21 = *(_QWORD *)(a1 + 1192); if ( v21 ) { v22 = *(_QWORD *)(a1 + 1088); if ( v22 && *(int *)(v22 + 316) >= 1 ) v23 = *(_BYTE *)(a1 + 1120) ^ 1; else v23 = 0; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v21 + 344LL))(v21, v23 & 1); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1192) + 1056LL))(*(_QWORD *)(a1 + 1192), v23 & 1); } v24 = *(_QWORD *)(a1 + 1208); if ( v24 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v24 + 1056LL))(v24, (*(_BYTE *)(a1 + 1120) & 1) == 0); result = *(_QWORD *)(a1 + 1216); if ( result ) { if ( v3 ) v26 = *(_BYTE *)(a1 + 1120) ^ 1; else v26 = 0; return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1056LL))(result, v26 & 1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source