// // sub_1000397FC from 0x1000397fc to 0x100039990 (404 bytes) // // 1 xrefs: // > sub_100038870 @ 0x1000392e0 // // 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 10:57:34 +0000 // __int64 __fastcall sub_1000397FC(_QWORD *a1, __int64 a2) { int v4; // w0 __n128 v5; // q0 unsigned int v6; // w21 float v7; // s8 float v9; // s9 __int64 result; // x0 __int64 v11; // x21 __int64 v12; // x22 __int64 v13; // x23 const char *v14; // x1 v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); if ( (unsigned int)(v4 - 2) >= 4 ) { if ( v4 < 2 ) v6 = 0; else v6 = 2; } else { v6 = 1; } v5.n128_u32[0] = 0; v7 = 0.0; if ( (unsigned int)(v4 - 1) <= 7 ) v7 = flt_10075C94C[v4 - 1]; if ( v4 == 7 ) v5.n128_f32[0] = 1.0; if ( (unsigned int)v4 > 6 || ((1 << v4) & 0x4C) == 0 ) v9 = v5.n128_f32[0]; else v9 = 1.0; (*(void (__fastcall **)(_QWORD *, __int64, bool, __n128))(*a1 + 1352LL))(a1, 99, v6 == 0, v5); SetupTriggerPopup::valueChanged(a1, 262, (float)v6); SetupTriggerPopup::valueChanged(a1, 276, v7); SetupTriggerPopup::valueChanged(a1, 283, v9); result = sub_1002E757C(a1[127]); if ( (_DWORD)result ) { v11 = 0; do { v12 = sub_1002E75A0(a1[127], v11); v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1072LL))(v12); LODWORD(v12) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 64LL))(v12); if ( (_DWORD)v12 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) ) v14 = "GJ_button_02.png"; else v14 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v13, v14); v11 = (unsigned int)(v11 + 1); result = sub_1002E757C(a1[127]); } while ( (unsigned int)v11 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source