// // sub_10036CF0C from 0x10036cf0c to 0x10036d110 (516 bytes) // // 2 xrefs: // > sub_100369218 @ 0x10036c730 // > sub_100369218 @ 0x100369dd8 // // 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:03:21 +0000 // __int64 __fastcall sub_10036CF0C(__int64 a1, __int64 a2) { unsigned int i; // w20 __int64 v4; // x0 __int64 v5; // x0 __int64 v6; // x0 const char *v7; // x1 __int64 v8; // x0 __int64 v9; // x25 __int64 v10; // x22 __int64 v11; // x0 __int64 v12; // x8 __int64 v13; // x22 __int64 v14; // x21 __int64 result; // x0 unsigned int v16; // w22 __int64 v17; // x0 int v18; // w8 _BOOL8 v19; // x1 if ( a2 ) *(_DWORD *)(a1 + 996) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); for ( i = 1; i != 5; ++i ) { v4 = sub_1002E75A0(*(_QWORD *)(a1 + 760), i - 1); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v4 + 344LL))(v4, *(_DWORD *)(a1 + 996) == i); v5 = sub_1002E75A0(*(_QWORD *)(a1 + 768), i - 1); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1072LL))(v5); if ( *(_DWORD *)(a1 + 996) == i ) v7 = "GJ_button_01.png"; else v7 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v6, (__int64)v7); v8 = sub_1002E75A0(*(_QWORD *)(a1 + 744), i); if ( v8 ) { v9 = *(_QWORD *)(v8 + 56); while ( v9 ) { v10 = *(_QWORD *)(v9 + 264); v9 = *(_QWORD *)(v9 + 288); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v10 + 1000LL))(v10, *(_DWORD *)(a1 + 996) == i); if ( *(_DWORD *)(a1 + 996) != i ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 1160LL))(v10, 0); } } v11 = sub_1002E75A0(*(_QWORD *)(a1 + 752), i); if ( v11 ) { v12 = *(_QWORD *)(v11 + 56); if ( v12 ) { do { v13 = *(_QWORD *)(v12 + 288); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v12 + 264) + 1000LL))( *(_QWORD *)(v12 + 264), *(_DWORD *)(a1 + 996) == i); v12 = v13; } while ( v13 ); } } v14 = sub_1002E75A0(*(_QWORD *)(a1 + 784), i - 1); result = sub_1002E757C(v14); if ( (_DWORD)result ) { v16 = 0; do { v17 = sub_1002E75A0(v14, v16); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v17 + 344LL))(v17, *(_DWORD *)(a1 + 996) == i); ++v16; result = sub_1002E757C(v14); } while ( v16 < (unsigned int)result ); } } v18 = *(_DWORD *)(a1 + 996); if ( v18 == 1 ) { v19 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1592LL))(*(_QWORD *)(a1 + 712)) == 0; result = sub_10036E414(a1, v19); v18 = *(_DWORD *)(a1 + 996); } if ( v18 == 4 ) return sub_10036F678(a1); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source