// // PauseLayer::onChangeStartpos from 0x48f894 to 0x48f992 (254 bytes) // // 3 xrefs: // > PauseLayer::startPosSelected @ 0x48f9ae // > PauseLayer::createStartPosPopupClosed @ 0x48fa20 // > PauseLayer::customSetup @ 0x4918ae // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:36 +0000 // int __fastcall PauseLayer::onChangeStartpos(cocos2d::CCArray **this, cocos2d::CCObject *a2) { int v3; // r5 cocos2d::CCArray *v4; // r0 int v5; // r3 cocos2d::CCArray *v6; // r3 int v7; // r3 int v8; // r1 int v9; // r0 int v10; // r2 int *v11; // r5 int v12; // r3 void (__fastcall *v13)(int *, int); // r8 const char *v14; // r9 char *v15; // r2 cocos2d::CCString *v16; // r0 int CString; // r0 int result; // r0 unsigned __int8 v19; // [sp+0h] [bp-14h] BYREF char v20; // [sp+1h] [bp-13h] BYREF char *v21; // [sp+8h] [bp-Ch] if ( a2 ) v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); else v3 = 0; v4 = (cocos2d::CCArray *)cocos2d::CCArray::count(*(this + 118)); v5 = (int)*(this + 117); if ( v3 == -1 ) { v6 = (cocos2d::CCArray *)(v5 - 1); } else { if ( v3 != 1 ) goto LABEL_9; v6 = (cocos2d::CCArray *)(v5 + 1); } *(this + 117) = v6; LABEL_9: v7 = (int)*(this + 117); if ( v7 >= 0 ) { if ( v7 > (int)v4 ) *(this + 117) = nullptr; } else { *(this + 117) = v4; } v8 = (int)*(this + 117); if ( v8 ) { v9 = cocos2d::CCArray::objectAtIndex(*(this + 118), v8 - 1); v11 = (int *)*(this + 116); v12 = *v11; if ( v9 ) { v13 = *(void (__fastcall **)(int *, int))(v12 + 464); v14 = (const char *)*(this + 117); StartPosObject::getDisplayName((StartPosObject *)&v19); if ( (v19 & 1) != 0 ) v15 = v21; else v15 = &v20; v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i: %s", v14, v15, v19 << 31); CString = cocos2d::CCString::getCString(v16); v13(v11, CString); std::string::~string((int)&v19); } else { (*(void (__fastcall **)(_DWORD, const char *, int))(v12 + 464))(*(this + 116), "-", v10); } } else { (*(void (__fastcall **)(_DWORD, const char *, int))(*(_DWORD *)*(this + 116) + 464))(*(this + 116), "None", v3 + 1); } result = cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 116), 150.0, 0.5, 0.0); *((_BYTE *)this + 476) = 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source