// // GJBaseGameLayer::addGuideArt from 0x5a0454 to 0x5a09c2 (1390 bytes) // // 2 xrefs: // > PlayLayer::addObject @ 0x40073c // > PlayLayer::addObject @ 0x4009b2 // // 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:16 +0000 // int __fastcall GJBaseGameLayer::addGuideArt(cocos2d::CCArray **this, GameObject *a2) { char *v2; // r8 int v3; // r5 bool v6; // zf int v7; // r6 ObjectToolbox *v8; // r0 ObjectToolbox *v9; // r0 char *v10; // r0 char *v11; // r5 size_t v12; // r0 char *v13; // r5 char *v14; // r1 size_t v15; // r0 int v16; // r8 void (__fastcall *v17)(int, _BYTE *); // r9 char *v18; // r1 char *v19; // r1 size_t v20; // r0 cocos2d::CCObject *v21; // r4 void (__fastcall *v22)(cocos2d::CCObject *, _BYTE *); // r9 int v23; // r11 ObjectToolbox *v24; // r0 ObjectToolbox *v25; // r0 char *v26; // r0 char *v27; // r5 size_t v28; // r0 char *v29; // r1 char *v30; // r5 size_t v31; // r0 int v32; // r8 void (__fastcall *v33)(int, _BYTE *); // r9 char *v34; // r1 char *v35; // r1 size_t v36; // r0 cocos2d::CCObject *v37; // r4 void (__fastcall *v38)(cocos2d::CCObject *, _BYTE *); // r9 int v39; // r11 int *v40; // r0 ObjectToolbox *v41; // r0 char *v42; // r5 size_t v43; // r0 char *v44; // r1 size_t v45; // r0 cocos2d::CCObject *v46; // r11 void (__fastcall *v47)(cocos2d::CCObject *, _BYTE *); // r5 char *v49; // [sp+4h] [bp-60h] char *v50; // [sp+4h] [bp-60h] float v51; // [sp+8h] [bp-5Ch] BYREF float v52; // [sp+Ch] [bp-58h] _BYTE v53[8]; // [sp+10h] [bp-54h] BYREF _BYTE v54[8]; // [sp+18h] [bp-4Ch] BYREF int v55; // [sp+20h] [bp-44h] BYREF int v56; // [sp+24h] [bp-40h] char *v57; // [sp+28h] [bp-3Ch] int v58[2]; // [sp+2Ch] [bp-38h] BYREF char *v59; // [sp+34h] [bp-30h] int v60; // [sp+38h] [bp-2Ch] BYREF int v61; // [sp+3Ch] [bp-28h] char *v62; // [sp+40h] [bp-24h] int v63[2]; // [sp+44h] [bp-20h] BYREF char *v64; // [sp+4Ch] [bp-18h] int v65; // [sp+50h] [bp-14h] BYREF int v66; // [sp+54h] [bp-10h] int v67; // [sp+58h] [bp-Ch] v3 = *((_DWORD *)a2 + 223); if ( v3 == 660 ) goto LABEL_38; if ( v3 > 660 ) { if ( v3 == 1331 ) goto LABEL_38; if ( v3 > 1331 ) { if ( v3 == 1933 ) goto LABEL_38; if ( v3 == 2926 ) goto LABEL_22; if ( v3 != 1333 ) return 0; } else if ( v3 != 1022 && v3 != 1330 ) { v6 = v3 == 745; LABEL_15: if ( !v6 ) return 0; goto LABEL_38; } LABEL_55: v7 = *((unsigned __int8 *)this + 11142); if ( *((_BYTE *)this + 11142) ) { v41 = (ObjectToolbox *)ObjectToolbox::sharedState((ObjectToolbox *)this); v60 = 0; v61 = 0; v62 = nullptr; v42 = ObjectToolbox::intKeyToFrame(v41, v3); v43 = strlen(v42); std::string::__init(&v60, v42, v43); if ( (v60 & 1) != 0 ) v44 = v62; else v44 = (char *)&v60 + 1; sub_5A0304(v63, v44, "_001", "_extra_001"); if ( (v63[0] & 1) == 0 ) v2 = (char *)v63 + 1; v65 = 0; if ( (v63[0] & 1) != 0 ) v2 = v64; v66 = 0; v67 = 0; v45 = strlen(v2); std::string::__init(&v65, v2, v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, (const cocos2d::CCPoint *)&unk_D2C400); v46 = (cocos2d::CCObject *)GameObject::addCustomChild(a2, (int)&v65, (int)v54, 100); std::string::~string((int)&v65); std::string::~string((int)v63); v47 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v46 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, *((float *)a2 + 86) * 0.5, *((float *)a2 + 87) * 0.5); v47(v46, v54); cocos2d::CCArray::addObject(*(this + 2786), v46); v40 = &v60; goto LABEL_64; } return v7; } if ( v3 > 13 ) { if ( v3 != 84 ) { if ( v3 == 111 ) goto LABEL_38; v6 = v3 == 47; goto LABEL_15; } goto LABEL_55; } if ( v3 < 12 ) { if ( v3 < 10 ) return 0; LABEL_22: v7 = *((unsigned __int8 *)this + 11141); if ( *((_BYTE *)this + 11141) ) { v8 = (ObjectToolbox *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, 19.0, 0.0); v9 = (ObjectToolbox *)ObjectToolbox::sharedState(v8); v10 = ObjectToolbox::intKeyToFrame(v9, v3); v55 = 0; v56 = 0; v57 = nullptr; v11 = v10; v12 = strlen(v10); std::string::__init(&v55, v11, v12); v13 = (char *)((unsigned __int8)v55 << 31); if ( (v55 & 1) != 0 ) v14 = v57; else v14 = (char *)&v55 + 1; sub_5A0304(v58, v14, "front", "extra"); if ( (v58[0] & 1) == 0 ) v13 = (char *)v58 + 1; v60 = 0; if ( (v58[0] & 1) != 0 ) v13 = v59; v61 = 0; v62 = nullptr; v15 = strlen(v13); std::string::__init(&v60, v13, v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, (const cocos2d::CCPoint *)&unk_D2C400); v16 = GameObject::addCustomChild(a2, (int)&v60, (int)v54, 100); std::string::~string((int)&v60); std::string::~string((int)v58); v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v54, v51 + (float)(*((float *)a2 + 86) * 0.5), v52 + (float)(*((float *)a2 + 87) * 0.5)); v17(v16, v54); (*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 36))(v16, 91); if ( (v55 & 1) != 0 ) v18 = v57; else v18 = (char *)&v55 + 1; sub_5A0304(v63, v18, "front", "extra_2"); if ( (v63[0] & 1) == 0 ) v19 = (char *)v63 + 1; v65 = 0; if ( (v63[0] & 1) != 0 ) v19 = v64; v66 = 0; v67 = 0; v49 = v19; v20 = strlen(v19); std::string::__init(&v65, v49, v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, (const cocos2d::CCPoint *)&unk_D2C400); v21 = (cocos2d::CCObject *)GameObject::addCustomChild(a2, (int)&v65, (int)v54, 101); std::string::~string((int)&v65); std::string::~string((int)v63); v22 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v21 + 92); v23 = (*(int (__fastcall **)(int))(*(_DWORD *)v16 + 96))(v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, -1.5, 0.0); cocos2d::CCPoint::operator+(v54, v23, v53); v22(v21, v54); cocos2d::CCArray::addObject(*(this + 2786), v21); LABEL_54: v40 = &v55; LABEL_64: std::string::~string((int)v40); return v7; } return v7; } LABEL_38: v7 = *((unsigned __int8 *)this + 11141); if ( *((_BYTE *)this + 11141) ) { v24 = (ObjectToolbox *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, 17.0, 0.0); v25 = (ObjectToolbox *)ObjectToolbox::sharedState(v24); v26 = ObjectToolbox::intKeyToFrame(v25, v3); v55 = 0; v56 = 0; v57 = nullptr; v27 = v26; v28 = strlen(v26); std::string::__init(&v55, v27, v28); if ( (v55 & 1) != 0 ) v29 = v57; else v29 = (char *)&v55 + 1; sub_5A0304(v58, v29, "front", "extra"); v30 = (char *)(LOBYTE(v58[0]) << 31); if ( (v58[0] & 1) == 0 ) v30 = (char *)v58 + 1; v60 = 0; if ( (v58[0] & 1) != 0 ) v30 = v59; v61 = 0; v62 = nullptr; v31 = strlen(v30); std::string::__init(&v60, v30, v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, (const cocos2d::CCPoint *)&unk_D2C400); v32 = GameObject::addCustomChild(a2, (int)&v60, (int)v54, 100); std::string::~string((int)&v60); std::string::~string((int)v58); v33 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v32 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v54, v51 + (float)(*((float *)a2 + 86) * 0.5), v52 + (float)(*((float *)a2 + 87) * 0.5)); v33(v32, v54); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 36))(v32, 91); if ( (v55 & 1) != 0 ) v34 = v57; else v34 = (char *)&v55 + 1; sub_5A0304(v63, v34, "front", "extra_2"); v35 = (char *)(LOBYTE(v63[0]) << 31); if ( (v63[0] & 1) == 0 ) v35 = (char *)v63 + 1; v65 = 0; if ( (v63[0] & 1) != 0 ) v35 = v64; v66 = 0; v67 = 0; v50 = v35; v36 = strlen(v35); std::string::__init(&v65, v50, v36); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, (const cocos2d::CCPoint *)&unk_D2C400); v37 = (cocos2d::CCObject *)GameObject::addCustomChild(a2, (int)&v65, (int)v54, 101); std::string::~string((int)&v65); std::string::~string((int)v63); v38 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v37 + 92); v39 = (*(int (__fastcall **)(int))(*(_DWORD *)v32 + 96))(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, -2.0, 0.0); cocos2d::CCPoint::operator+(v54, v39, v53); v38(v37, v54); cocos2d::CCArray::addObject(*(this + 2786), v37); goto LABEL_54; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source