// // artIconForKey from 0x6b3564 to 0x6b35ee (138 bytes) // // 2 xrefs: // > SetupArtSwitchPopup::selectArtClosed @ 0x6b3642 // > SetupArtSwitchPopup::init @ 0x6b7d04 // // 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:56:41 +0000 // int *__fastcall artIconForKey(int *a1, const char *a2, int a3) { int *v3; // r4 cocos2d::CCString *v5; // r0 const char *v6; // r0 const char *v7; // r6 size_t v8; // r0 const char *v9; // r1 size_t v10; // r2 char *v11; // r0 cocos2d::CCString *v12; // r0 const char *CString; // r0 const char *v14; // r5 size_t v15; // r0 v3 = a1; if ( a3 == 1 ) { if ( (int)a2 >= 22 ) a2 = (_BYTE *)(&dword_14 + 2); v11 = "gIcon_%02d_001.png"; if ( (int)a2 < 1 ) a2 = (_BYTE *)(&dword_0 + 1); goto LABEL_15; } if ( a3 == 2 ) { a2 = (const char *)__usat(2u, (unsigned int)a2); v11 = "mgIcon_%02d_001.png"; LABEL_15: v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v11, a2); CString = (const char *)cocos2d::CCString::getCString(v12); *v3 = 0; v3[1] = 0; v3[2] = 0; v14 = CString; v15 = strlen(CString); v9 = v14; v10 = v15; a1 = v3; goto LABEL_17; } if ( a3 ) { v10 = 17; *a1 = 0; v9 = "mgIcon_00_001.png"; a1[1] = 0; a1[2] = 0; } else { if ( (int)a2 >= 59 ) a2 = (_BYTE *)(&dword_38 + 3); if ( (int)a2 < 1 ) a2 = (char *)&dword_0 + 1; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"bgIcon_%02d_001.png", a2); v6 = (const char *)cocos2d::CCString::getCString(v5); *v3 = a3; v3[1] = a3; v3[2] = a3; v7 = v6; v8 = strlen(v6); v9 = v7; v10 = v8; a1 = v3; } LABEL_17: std::string::__init(a1, v9, v10); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source