// // sub_10056DA40 from 0x10056da40 to 0x10056dcf0 (688 bytes) // // 1 xrefs: // > sub_10056D854 @ 0x10056d860 // // 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:16 +0000 // __int64 __fastcall sub_10056DA40(__int64 a1, int a2, __n128 a3) { unsigned __int64 v4; // x20 float v5; // s1 __int64 v6; // x20 int v7; // w2 int v8; // w8 __int64 v9; // x20 int v10; // w8 int v11; // w9 int v12; // w10 __int64 v13; // x21 int v15[3]; // [xsp+0h] [xbp-40h] BYREF unsigned int v16; // [xsp+Ch] [xbp-34h] BYREF if ( a2 != 1 ) return 0; if ( !*(_DWORD *)(a1 + 544) ) { (*(void (__fastcall **)(_QWORD, int *, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 168) + 69856LL) + 216LL))( *(_QWORD *)(*(_QWORD *)(a1 + 168) + 69856LL), v15, 0); v4 = *(_QWORD *)v15 >> 20; (*(void (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)(a1 + 216) + 32LL))(a1 + 176, &v16); if ( v4 < qword_1009FAA60 || v4 > qword_1009FAA60 + (unsigned __int64)v16 ) *(_BYTE *)(a1 + 736) = 1; qword_1009FAA60 = v4; } v5 = *(float *)(a1 + 748); if ( v5 != *(float *)(a1 + 548) ) { *(float *)(a1 + 548) = v5; a3.n128_u32[0] = 0; if ( v5 > -80.0 ) a3.n128_f32[0] = __exp10f(v5 / 20.0); sub_100618EF4(a1 + 568, 64, 0, 0, a3); } if ( *(_DWORD *)(a1 + 744) != *(_DWORD *)(a1 + 544) ) { v6 = qword_100A10AD0; sub_1005DBDD8(qword_100A10AD0); if ( *(_DWORD *)(a1 + 744) == 1 ) v7 = 1; else v7 = -1; sub_10056D8AC(qword_100A10A90[*(int *)(a1 + 224)] + 112LL * *(int *)(a1 + 540), (int *)(a1 + 560), v7); *(_DWORD *)(a1 + 544) = *(_DWORD *)(a1 + 744); sub_1005DBE08(v6); } v8 = *(_DWORD *)(a1 + 740); if ( v8 != *(_DWORD *)(a1 + 540) ) { if ( *(_DWORD *)(a1 + 544) == 1 ) { v9 = qword_100A10AD0; sub_1005DBDD8(qword_100A10AD0); sub_10056D8AC(qword_100A10A90[*(int *)(a1 + 224)] + 112LL * *(int *)(a1 + 540), (int *)(a1 + 560), -1); sub_10056D8AC(qword_100A10A90[*(int *)(a1 + 224)] + 112LL * *(int *)(a1 + 740), (int *)(a1 + 560), 1); sub_1005DBE08(v9); v8 = *(_DWORD *)(a1 + 740); } *(_DWORD *)(a1 + 540) = v8; } v10 = *(_DWORD *)(a1 + 752); v11 = *(_DWORD *)(a1 + 560); if ( v10 != *(_DWORD *)(a1 + 552) || v11 == -1 ) { v15[0] = *(_DWORD *)(a1 + 560); v12 = v10; if ( v10 != -1 ) goto LABEL_27; } else { if ( v10 != -1 || *(_DWORD *)(a1 + 556) == v11 ) return 0; v15[0] = *(_DWORD *)(a1 + 560); } v12 = *(_DWORD *)(a1 + 556); LABEL_27: *(_DWORD *)(a1 + 560) = v12; if ( *(_DWORD *)(a1 + 544) == 1 && v12 != v11 ) { v13 = qword_100A10AD0; sub_1005DBDD8(qword_100A10AD0); sub_10056D8AC(qword_100A10A90[*(int *)(a1 + 224)] + 112LL * *(int *)(a1 + 540), v15, -1); sub_10056D8AC(qword_100A10A90[*(int *)(a1 + 224)] + 112LL * *(int *)(a1 + 540), (int *)(a1 + 560), 1); sub_1005DBE08(v13); v10 = *(_DWORD *)(a1 + 752); } *(_DWORD *)(a1 + 552) = v10; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source