// // SetupSpawnPopup::onSelectRemap from 0xa42d8c to 0xa42ea0 (276 bytes) // // 3 xrefs: // > @ 0x57e68 // > SetupSpawnPopup::updateRemapButtons @ 0xa4336c // > @ 0x1542020 // // 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 12:59:57 +0000 // _BYTE *__fastcall SetupSpawnPopup::onSelectRemap(_BYTE *this, cocos2d::CCObject *a2) { __int64 v2; // x19 int v3; // w0 __int64 v4; // x1 int *v5; // x2 int v6; // w1 std::logic_error *exception; // x19 if ( !*(this + 1012) ) { v2 = (__int64)this; v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); v4 = *(_QWORD *)(v2 + 1024); if ( v3 >= (unsigned __int64)((*(_QWORD *)(v2 + 1032) - v4) >> 3) ) { exception = (std::logic_error *)_cxa_allocate_exception(0x10u); std::logic_error::logic_error(exception, "vector"); *(_QWORD *)exception = off_1536D68; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))std::logic_error::~logic_error); } v5 = (int *)(v4 + 8LL * v3); v6 = *v5; if ( *(_DWORD *)(v2 + 1048) == *v5 && *(_DWORD *)(v2 + 1052) == v5[1] ) { *(_DWORD *)(v2 + 1048) = 0; *(_DWORD *)(v2 + 1052) = 0; } else { *(_DWORD *)(v2 + 1048) = v6; *(_DWORD *)(v2 + 1052) = v5[1]; SetupTriggerPopup::updateValue((SetupTriggerPopup *)v2, -1, (float)v6); SetupTriggerPopup::updateValue((SetupTriggerPopup *)v2, -2, (float)*(int *)(v2 + 1052)); } return SetupSpawnPopup::queueUpdateButtons((_BYTE *)v2); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source