// // KeybindingsLayer::buildControllerGlyph from 0x5891c0 to 0x5893ce (526 bytes) // // 2 xrefs: // > KeybindingsLayer::buildContentForTab @ 0x58a25c // > ControllerInputNode::refreshVisuals @ 0x765202 // // 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:00 +0000 // int __fastcall KeybindingsLayer::buildControllerGlyph(KeybindingsLayer *this, char *a2, bool *a3) { _BOOL4 v3; // r3 char *v4; // r0 int result; // r0 float v6; // s16 float v7; // s17 int v8; // r5 char *v9; // r0 const char *v10; // r1 int v11; // r4 int v12; // r7 const cocos2d::CCSize *v13; // r0 float v14; // s18 void (__fastcall *v15)(int, _BYTE *); // r8 float v16; // [sp+4h] [bp-14h] BYREF float v17; // [sp+8h] [bp-10h] _BYTE v18[8]; // [sp+Ch] [bp-Ch] BYREF v3 = (unsigned int)this - 1001 <= 0x2B && !((unsigned __int8)this & 1); *a2 = v3; if ( v3 ) this = (KeybindingsLayer *)((char *)this - 1); switch ( (unsigned int)this ) { case 0x3E9u: v4 = "controllerBtn_A_001.png"; goto LABEL_21; case 0x3EBu: v4 = "controllerBtn_B_001.png"; goto LABEL_21; case 0x3EDu: v4 = "controllerBtn_Y_001.png"; goto LABEL_21; case 0x3EFu: v4 = "controllerBtn_X_001.png"; goto LABEL_21; case 0x3F1u: v4 = "controllerBtn_Start_001.png"; goto LABEL_21; case 0x3F3u: v4 = "controllerBtn_Back_001.png"; goto LABEL_21; case 0x3F5u: v4 = "controllerBtn_RB_001.png"; goto LABEL_21; case 0x3F7u: v4 = "controllerBtn_LB_001.png"; goto LABEL_21; case 0x3F9u: v4 = "controllerBtn_RT_001.png"; goto LABEL_21; case 0x3FBu: v4 = "controllerBtn_LT_001.png"; goto LABEL_21; case 0x3FDu: v4 = "controllerBtn_DPad_Up_001.png"; goto LABEL_21; case 0x3FFu: v4 = "controllerBtn_DPad_Down_001.png"; goto LABEL_21; case 0x401u: v4 = "controllerBtn_DPad_Left_001.png"; goto LABEL_21; case 0x403u: v4 = "controllerBtn_DPad_Right_001.png"; LABEL_21: result = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v4, a2); break; default: switch ( (unsigned int)this ) { case 0x405u: v6 = 1.0; v7 = 0.0; v8 = 1119092736; v9 = "controllerBtn_LThumb_001.png"; goto LABEL_33; case 0x407u: v6 = -1.0; v7 = 0.0; v8 = 1132920832; v9 = "controllerBtn_LThumb_001.png"; goto LABEL_33; case 0x409u: v6 = 0.0; v7 = -1.0; v9 = "controllerBtn_LThumb_001.png"; v8 = 0; goto LABEL_33; case 0x40Bu: v7 = 1.0; v6 = 0.0; v8 = 1127481344; v9 = "controllerBtn_LThumb_001.png"; goto LABEL_33; case 0x40Du: v6 = 1.0; v7 = 0.0; v8 = 1119092736; v9 = "controllerBtn_RThumb_001.png"; goto LABEL_33; case 0x40Fu: v6 = -1.0; v7 = 0.0; v8 = 1132920832; v9 = "controllerBtn_RThumb_001.png"; goto LABEL_33; case 0x411u: v6 = 0.0; v7 = -1.0; v9 = "controllerBtn_RThumb_001.png"; v8 = 0; goto LABEL_33; case 0x413u: v7 = 1.0; v6 = 0.0; v8 = 1127481344; v9 = "controllerBtn_RThumb_001.png"; LABEL_33: v11 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v9, a2); if ( v11 ) { v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v10); if ( v12 ) { v13 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 164))(v11); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v16, v13); v14 = (float)((float)(v17 + v17) / 26.0) + (float)(v16 * 0.3); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 180))(v12, v8); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 80))(v12, 1052870967); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v18, (float)(v7 * v14) + (float)(v16 * 0.5), (float)(v6 * v14) + (float)(v17 * 0.5)); v15(v12, v18); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v11 + 232))(v11, v12, 1); } } result = v11; break; default: result = 0; break; } break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source