// // KeybindingsLayer::showTab from 0x58a510 to 0x58a7ec (732 bytes) // // 0 xrefs: // // 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:53:01 +0000 // _DWORD *__fastcall KeybindingsLayer::showTab(_DWORD *this, char *a2) { float *v3; // r4 char *v4; // r10 int v5; // r11 int v6; // r9 _BYTE *v7; // r1 size_t v8; // r2 int *v9; // r0 int v10; // r1 int v11; // r2 int v12; // r0 int v13; // r0 cocos2d::CCDirector *v14; // r0 float v15; // s15 float v16; // s14 ScrollableContentLayer *v17; // r6 float v18; // s14 float v19; // s17 int v20; // r2 int v21; // r3 int v22; // r6 void (__fastcall *v23)(int, _BYTE *); // r8 cocos2d::CCMenu *v24; // r0 int v25; // r0 ScrollableContentLayer *v26; // r9 _BYTE *v27; // r1 size_t v28; // r2 int *v29; // r0 int v30; // r1 int v31; // r2 int *v32; // r7 float v33[2]; // [sp+8h] [bp-3Ch] BYREF _BYTE v34[8]; // [sp+10h] [bp-34h] BYREF int v35; // [sp+18h] [bp-2Ch] BYREF int v36; // [sp+1Ch] [bp-28h] int v37; // [sp+20h] [bp-24h] unsigned __int8 v38; // [sp+24h] [bp-20h] BYREF _BYTE v39[3]; // [sp+25h] [bp-1Fh] BYREF size_t v40; // [sp+28h] [bp-1Ch] _BYTE *v41; // [sp+2Ch] [bp-18h] int v42; // [sp+30h] [bp-14h] BYREF int v43; // [sp+34h] [bp-10h] int v44; // [sp+38h] [bp-Ch] v3 = (float *)this; if ( (int)a2 >= 0 && (int)a2 < -1171354717 * ((*(this + 179) - *(this + 178)) >> 2) ) { v4 = (char *)*(this + 200); v5 = *(this + 194); v6 = *(this + 184); if ( v5 && v6 >= 0 ) { v35 = 0; v36 = 0; v37 = 0; std::string::__init(&v35, "keybindings.tab.", 0x10u); std::to_string((int)&v38); if ( (v38 & 1) != 0 ) { v7 = v41; v8 = v40; } else { v8 = (int)v38 >> 1; v7 = v39; } v9 = std::string::append(&v35, v7, v8); v10 = v9[1]; v11 = v9[2]; v42 = *v9; v43 = v10; v44 = v11; *v9 = 0; v9[1] = 0; v9[2] = 0; ScrollableContentLayer::persistScrollOffset(v5, (unsigned __int8 *)&v42); std::string::~string((int)&v42); std::string::~string((int)&v38); std::string::~string((int)&v35); } v12 = *((_DWORD *)v3 + 191); if ( v12 ) { (*(void (__fastcall **)(int, bool))(*(_DWORD *)v12 + 172))(v12, a2 == v4); (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)v3 + 191) + 500))(*((_DWORD *)v3 + 191), a2 == v4); if ( (char *)v6 == v4 && a2 != v4 ) (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)v3 + 191) + 580))(*((_DWORD *)v3 + 191), 0); } v13 = *((_DWORD *)v3 + 192); if ( v13 ) (*(void (__fastcall **)(int, bool))(*(_DWORD *)v13 + 172))(v13, a2 == v4); v14 = *((cocos2d::CCDirector **)v3 + 193); if ( v14 ) v14 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCDirector *, bool))(*(_DWORD *)v14 + 172))( v14, a2 == v4); *((_DWORD *)v3 + 184) = a2; cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v33); v15 = v33[1] * 0.5; if ( a2 == v4 ) v16 = 64.0; else v16 = 96.0; v17 = *((ScrollableContentLayer **)v3 + 194); v18 = v15 + v16; if ( v17 ) { v19 = v3[139] - 30.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v34, v19, v18 - (float)(v15 - 128.0)); ScrollableContentLayer::setViewSize(v17, (int)v34, v20, v21); v22 = *((_DWORD *)v3 + 194); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, (float)(v33[0] * 0.5) - (float)(v19 * 0.5), v15 - 128.0); v23(v22, v34); v24 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(*((_DWORD *)v3 + 194) + 320) + 292))( *(_DWORD *)(*((_DWORD *)v3 + 194) + 320), 1); v25 = cocos2d::CCMenu::create(v24); *((_DWORD *)v3 + 195) = v25; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v25 + 148))(v25, &unk_D2C3B4); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)v3 + 195) + 160))(*((_DWORD *)v3 + 195), &unk_D2C3BC); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)v3 + 195) + 92))(*((_DWORD *)v3 + 195), &unk_D2C3B4); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(*((_DWORD *)v3 + 194) + 320) + 232))( *(_DWORD *)(*((_DWORD *)v3 + 194) + 320), *((_DWORD *)v3 + 195), 2); } KeybindingsLayer::buildContentForTab((char **)v3, a2); v26 = *((ScrollableContentLayer **)v3 + 194); if ( v26 ) { v35 = 0; v36 = 0; v37 = 0; std::string::__init(&v35, "keybindings.tab.", 0x10u); std::to_string((int)&v38); if ( (v38 & 1) != 0 ) { v27 = v41; v28 = v40; } else { v28 = (int)v38 >> 1; v27 = v39; } v29 = std::string::append(&v35, v27, v28); v30 = v29[1]; v31 = v29[2]; v42 = *v29; v43 = v30; v44 = v31; *v29 = 0; v29[1] = 0; v29[2] = 0; v32 = ScrollableContentLayer::restoreScrollOffset(v26, (unsigned __int8 *)&v42); std::string::~string((int)&v42); std::string::~string((int)&v38); std::string::~string((int)&v35); if ( !v32 ) ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)v3 + 194), 0.0); } TabbedPopupLayer::refreshTabButtons((TabbedPopupLayer *)v3, "GJ_button_02.png", "GJ_button_05.png"); return (_DWORD *)TabbedPopupLayer::refreshPageButtons((TabbedPopupLayer *)v3); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source