// // KeybindingsLayer::buildControllerGlyph from 0x1006e20c0 to 0x1006e2414 (852 bytes) // // 4 xrefs: // > KeybindingsLayer::buildContentForTab @ 0x1006e3087 // > sub_1008B5C30 @ 0x1008b5d49 // > sub_1008B5C30 @ 0x1008b5e73 // > sub_1008B5C30 @ 0x1008b5fa3 // // This function is hookable on this platform (idp: pc, 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:35:45 +0000 // char *__fastcall KeybindingsLayer::buildControllerGlyph(int a1, bool *a2) { bool v2; // cl char *v3; // rbx const char *v4; // rdi __int64 v5; // xmm0_8 char *v6; // rax char *v8; // rax char *v9; // r14 _QWORD *v10; // rsi float v11; // [rsp+8h] [rbp-38h] BYREF float v12; // [rsp+10h] [rbp-30h] __int64 v13; // [rsp+14h] [rbp-2Ch] BYREF float v14; // [rsp+1Ch] [rbp-24h] float v15; // [rsp+20h] [rbp-20h] float v16; // [rsp+24h] [rbp-1Ch] v2 = (unsigned int)(a1 - 1001) < 0x2C && (a1 & 1) == 0; *a2 = v2; v3 = nullptr; switch ( a1 - v2 ) { case 0x3E9: v4 = "controllerBtn_A_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3EB: v4 = "controllerBtn_B_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3ED: v4 = "controllerBtn_Y_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3EF: v4 = "controllerBtn_X_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3F1: v4 = "controllerBtn_Start_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3F3: v4 = "controllerBtn_Back_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3F5: v4 = "controllerBtn_RB_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3F7: v4 = "controllerBtn_LB_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3F9: v4 = "controllerBtn_RT_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3FB: v4 = "controllerBtn_LT_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3FD: v4 = "controllerBtn_DPad_Up_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x3FF: v4 = "controllerBtn_DPad_Down_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x401: v4 = "controllerBtn_DPad_Left_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x403: v4 = "controllerBtn_DPad_Right_001.png"; return cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4, COERCE_DOUBLE(3212836864LL)); case 0x405: v14 = 1.0; v15 = 0.0; v5 = 1119092736; v16 = 90.0; v6 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"controllerBtn_LThumb_001.png", COERCE_DOUBLE(1119092736)); if ( !v6 ) goto LABEL_32; goto LABEL_29; case 0x407: v14 = -1.0; v15 = 0.0; v5 = 1132920832; v16 = 270.0; v6 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"controllerBtn_LThumb_001.png", COERCE_DOUBLE(1132920832)); if ( !v6 ) goto LABEL_32; goto LABEL_29; case 0x409: v15 = -1.0; v5 = 0; v14 = 0.0; v16 = 0.0; v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_LThumb_001.png", 0.0); if ( v6 ) goto LABEL_29; goto LABEL_32; case 0x40B: v14 = 0.0; v15 = 1.0; v5 = 1127481344; v16 = 180.0; v6 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"controllerBtn_LThumb_001.png", COERCE_DOUBLE(1127481344)); if ( !v6 ) goto LABEL_32; goto LABEL_29; case 0x40D: v14 = 1.0; v15 = 0.0; v5 = 1119092736; goto LABEL_9; case 0x40F: v14 = -1.0; v15 = 0.0; v5 = 1132920832; goto LABEL_9; case 0x411: v15 = -1.0; v5 = 0; v14 = 0.0; v16 = 0.0; v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_RThumb_001.png", 0.0); if ( !v6 ) goto LABEL_32; goto LABEL_29; case 0x413: v14 = 0.0; v15 = 1.0; v5 = 1127481344; LABEL_9: v16 = *(float *)&v5; v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_RThumb_001.png", *(double *)&v5); if ( v6 ) { LABEL_29: v3 = v6; v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_leftBtn_001.png", *(double *)&v5); if ( v8 ) { v9 = v8; v10 = (_QWORD *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v3 + 328LL))(v3); sub_100278630(&v13, v10); v12 = (float)(*(float *)&v13 * 0.30000001) + (float)((float)(*((float *)&v13 + 1) + *((float *)&v13 + 1)) / 26.0); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 360LL))(v9, v16); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 160LL))(v9, 0.37799999); sub_100278250( &v11, (float)(v15 * v12) + (float)(*(float *)&v13 * 0.5), (float)(v14 * v12) + (float)(0.5 * *((float *)&v13 + 1))); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 184LL))(v9, &v11); (*(void (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v3 + 464LL))(v3, v9, 1); } } else { LABEL_32: v3 = nullptr; } break; default: return v3; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source