// // sub_10056E9BC from 0x10056e9bc to 0x10056eb10 (340 bytes) // // 1 xrefs: // > @ 0x1009d54b8 // // 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:08:17 +0000 // __int64 __fastcall sub_10056E9BC(__int64 a1, int a2) { __int64 v4; // x19 __int64 v5; // x22 __int64 i; // x8 __int64 v7; // x11 _BYTE *v8; // x10 __int64 v9; // x21 __int64 v11; // x23 int v12; // w8 __int64 v13; // x0 int v14; // [xsp+Ch] [xbp-44h] BYREF v4 = qword_100A10AD0; sub_1005DBDD8(qword_100A10AD0); v5 = qword_100A10A90[*(int *)(a1 + 48)]; if ( v5 ) { if ( !a2 ) { v11 = 92; while ( 1 ) { if ( !*(_DWORD *)(v5 + v11) ) { v14 = 0; v13 = (*(__int64 (__fastcall **)(__int64, int *, _QWORD))(*(_QWORD *)(a1 + 40) + 56LL))(a1, &v14, 0); if ( (_DWORD)v13 ) { v9 = v13; goto LABEL_7; } v12 = 1; switch ( v14 ) { case 2: break; case 3: v12 = 2; break; case 4: case 5: case 6: v12 = v14; break; case 7: v12 = 8; break; case 8: v12 = 12; break; default: if ( v14 == 1000 ) v12 = 2; else v12 = 0; break; } *(_DWORD *)(v5 + v11) = v12; } v11 += 112; if ( v11 == 3676 ) goto LABEL_6; } } if ( a2 == 1 ) { for ( i = 0; i != 3584; i += 112 ) { v7 = *(int *)(v5 + i + 108); *(_DWORD *)(v5 + i + 108) = 1 - v7; v8 = (_BYTE *)(v5 + i - v7); v8[101] = 0; v8[103] = 0; v8[105] = 0; } } } LABEL_6: v9 = 0; LABEL_7: sub_1005DBE08(v4); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source