// // sub_1004B7894 from 0x1004b7894 to 0x1004b797c (232 bytes) // // 1 xrefs: // > DeathMarkerSettingsPopup::init @ 0x1004b6e10 // // 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:15 +0000 // __int64 __fastcall sub_1004B7894(__int64 a1) { __int64 result; // x0 int v3; // w20 __int64 v4; // x0 int v5; // w8 result = *(_QWORD *)(a1 + 1024); if ( result ) { if ( (int)llroundf(Slider::getValue(result) * 5.0) <= 4 && (int)llroundf(Slider::getValue(*(_QWORD *)(a1 + 1024)) * 5.0) < 1 ) { v3 = 0; } else if ( (int)llroundf(Slider::getValue(*(_QWORD *)(a1 + 1024)) * 5.0) > 4 ) { v3 = 5; } else { v3 = llroundf(Slider::getValue(*(_QWORD *)(a1 + 1024)) * 5.0); } v4 = GameManager::sharedState(); GameManager::setIntGameVariable(v4, "0205", v3 + 1); result = *(_QWORD *)(a1 + 1032); if ( result ) { if ( v3 >= 5 ) v5 = 5; else v5 = v3; return (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)result + 928LL))( result, off_100982828[v5 & (unsigned int)~(v5 >> 31)]); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source