// // GJBaseGameLayer::addGuideArt from 0x9b994c to 0x9ba198 (2124 bytes) // // 3 xrefs: // > PlayLayer::addObject @ 0x6f44cc // > PlayLayer::addObject @ 0x6f4714 // > @ 0x95830 // // This function is hookable on this platform (idp: arm, 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:58:25 +0000 // __int64 __fastcall GJBaseGameLayer::addGuideArt(GJBaseGameLayer *this, GameObject *a2) { int v4; // w1 unsigned int v5; // w21 ObjectToolbox *v7; // x0 ObjectToolbox *v8; // x0 size_t v9; // x0 char *v10; // x0 const char *v11; // x1 size_t v12; // x0 cocos2d::CCObject *v13; // x24 float v14; // s2 float v15; // s0 void (__fastcall *v16)(cocos2d::CCObject *, __int64 *); // x20 ObjectToolbox *v17; // x0 ObjectToolbox *v18; // x0 char *v19; // x0 size_t v20; // x0 char *v21; // x0 const char *v22; // x1 size_t v23; // x0 __int64 v24; // x28 void (__fastcall *v25)(__int64, __int64 *); // x24 char *v26; // x0 const char *v27; // x1 size_t v28; // x0 cocos2d::CCObject *v29; // x24 void (__fastcall *v30)(cocos2d::CCObject *, __int64 *); // x25 __int64 v31; // x26 ObjectToolbox *v32; // x0 ObjectToolbox *v33; // x0 char *v34; // x0 size_t v35; // x0 char *v36; // x0 const char *v37; // x1 size_t v38; // x0 __int64 v39; // x28 void (__fastcall *v40)(__int64, __int64 *); // x24 char *v41; // x0 const char *v42; // x1 size_t v43; // x0 cocos2d::CCObject *v44; // x24 void (__fastcall *v45)(cocos2d::CCObject *, __int64 *); // x25 __int64 v46; // x26 int v47; // [xsp+68h] [xbp+68h] char *v48; // [xsp+68h] [xbp+68h] char *v49; // [xsp+68h] [xbp+68h] int v50; // [xsp+68h] [xbp+68h] char *v51; // [xsp+68h] [xbp+68h] char *v52; // [xsp+68h] [xbp+68h] char *v53; // [xsp+68h] [xbp+68h] int v54; // [xsp+68h] [xbp+68h] char *v55; // [xsp+68h] [xbp+68h] char *v56; // [xsp+68h] [xbp+68h] char *v57; // [xsp+68h] [xbp+68h] float v58; // [xsp+78h] [xbp+78h] BYREF float v59; // [xsp+7Ch] [xbp+7Ch] _BYTE v60[8]; // [xsp+80h] [xbp+80h] BYREF __int64 v61; // [xsp+88h] [xbp+88h] BYREF __int64 v62; // [xsp+90h] [xbp+90h] BYREF __int64 v63; // [xsp+98h] [xbp+98h] void *v64; // [xsp+A0h] [xbp+A0h] __int64 v65[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v66; // [xsp+B8h] [xbp+B8h] __int64 v67; // [xsp+C0h] [xbp+C0h] BYREF __int64 v68; // [xsp+C8h] [xbp+C8h] void *v69; // [xsp+D0h] [xbp+D0h] __int64 v70[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v71; // [xsp+E8h] [xbp+E8h] __int64 v72; // [xsp+F0h] [xbp+F0h] BYREF __int64 v73; // [xsp+F8h] [xbp+F8h] void *v74; // [xsp+100h] [xbp+100h] v4 = *((_DWORD *)a2 + 257); if ( v4 == 660 ) goto LABEL_33; if ( v4 <= 660 ) { if ( v4 <= 13 ) { if ( v4 >= 12 ) goto LABEL_33; if ( v4 >= 10 ) { v5 = *((unsigned __int8 *)this + 13097); if ( !*((_BYTE *)this + 13097) ) return v5; LABEL_53: v54 = v4; v32 = (ObjectToolbox *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v58, 19.0, 0.0); v33 = (ObjectToolbox *)ObjectToolbox::sharedState(v32); v34 = ObjectToolbox::intKeyToFrame(v33, v54); v62 = 0; v55 = v34; v63 = 0; v64 = nullptr; v35 = strlen(v34); std::string::__init(&v62, v55, v35); v36 = (char *)&v62 + 1; if ( (v62 & 1) != 0 ) v36 = (char *)v64; sub_9B9714(v36, "front", "extra", v65); v37 = (char *)v65 + 1; if ( (v65[0] & 1) != 0 ) v37 = (const char *)v66; v56 = (char *)v37; v67 = 0; v68 = 0; v69 = nullptr; v38 = strlen(v37); std::string::__init(&v67, v56, v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, (const cocos2d::CCPoint *)&unk_155D2C8); v39 = GameObject::addCustomChild(a2, (unsigned __int8 *)&v67, (__int64)&v61, 0x64u); if ( (v67 & 1) != 0 ) operator delete(v69); if ( (v65[0] & 1) != 0 ) operator delete(v66); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v61, v58 + (float)(*((float *)a2 + 108) * 0.5), v59 + (float)(*((float *)a2 + 109) * 0.5)); v40(v39, &v61); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v39 + 72LL))(v39, 91); v41 = (char *)&v62 + 1; if ( (v62 & 1) != 0 ) v41 = (char *)v64; sub_9B9714(v41, "front", "extra_2", v70); v42 = (char *)v70 + 1; if ( (v70[0] & 1) != 0 ) v42 = (const char *)v71; v57 = (char *)v42; v72 = 0; v73 = 0; v74 = nullptr; v43 = strlen(v42); std::string::__init(&v72, v57, v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, (const cocos2d::CCPoint *)&unk_155D2C8); v44 = (cocos2d::CCObject *)GameObject::addCustomChild(a2, (unsigned __int8 *)&v72, (__int64)&v61, 0x65u); if ( (v72 & 1) != 0 ) operator delete(v74); if ( (v70[0] & 1) != 0 ) operator delete(v71); v45 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v44 + 184LL); v46 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v39 + 192LL))(v39); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, -1.5, 0.0); cocos2d::CCPoint::operator+(&v61, v46); v45(v44, &v61); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1638), v44); LABEL_51: if ( (v62 & 1) != 0 ) operator delete(v64); return v5; } return 0; } if ( v4 == 84 ) goto LABEL_14; if ( v4 != 111 && v4 != 47 ) return 0; LABEL_33: v5 = *((unsigned __int8 *)this + 13097); if ( !*((_BYTE *)this + 13097) ) return v5; v50 = v4; v17 = (ObjectToolbox *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v58, 17.0, 0.0); v18 = (ObjectToolbox *)ObjectToolbox::sharedState(v17); v19 = ObjectToolbox::intKeyToFrame(v18, v50); v62 = 0; v51 = v19; v63 = 0; v64 = nullptr; v20 = strlen(v19); std::string::__init(&v62, v51, v20); v21 = (char *)&v62 + 1; if ( (v62 & 1) != 0 ) v21 = (char *)v64; sub_9B9714(v21, "front", "extra", v65); v22 = (char *)v65 + 1; if ( (v65[0] & 1) != 0 ) v22 = (const char *)v66; v52 = (char *)v22; v67 = 0; v68 = 0; v69 = nullptr; v23 = strlen(v22); std::string::__init(&v67, v52, v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, (const cocos2d::CCPoint *)&unk_155D2C8); v24 = GameObject::addCustomChild(a2, (unsigned __int8 *)&v67, (__int64)&v61, 0x64u); if ( (v67 & 1) != 0 ) operator delete(v69); if ( (v65[0] & 1) != 0 ) operator delete(v66); v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v61, v58 + (float)(*((float *)a2 + 108) * 0.5), v59 + (float)(*((float *)a2 + 109) * 0.5)); v25(v24, &v61); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v24 + 72LL))(v24, 91); v26 = (char *)&v62 + 1; if ( (v62 & 1) != 0 ) v26 = (char *)v64; sub_9B9714(v26, "front", "extra_2", v70); v27 = (char *)v70 + 1; if ( (v70[0] & 1) != 0 ) v27 = (const char *)v71; v53 = (char *)v27; v72 = 0; v73 = 0; v74 = nullptr; v28 = strlen(v27); std::string::__init(&v72, v53, v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, (const cocos2d::CCPoint *)&unk_155D2C8); v29 = (cocos2d::CCObject *)GameObject::addCustomChild(a2, (unsigned __int8 *)&v72, (__int64)&v61, 0x65u); if ( (v72 & 1) != 0 ) operator delete(v74); if ( (v70[0] & 1) != 0 ) operator delete(v71); v30 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v29 + 184LL); v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 192LL))(v24); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, -2.0, 0.0); cocos2d::CCPoint::operator+(&v61, v31); v30(v29, &v61); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1638), v29); goto LABEL_51; } if ( v4 == 1331 ) goto LABEL_33; if ( v4 <= 1331 ) { if ( v4 == 1022 || v4 == 1330 ) goto LABEL_14; if ( v4 != 745 ) return 0; goto LABEL_33; } if ( v4 == 1933 ) goto LABEL_33; if ( v4 == 2926 ) { v5 = *((unsigned __int8 *)this + 13097); if ( !*((_BYTE *)this + 13097) ) return v5; goto LABEL_53; } if ( v4 != 1333 ) return 0; LABEL_14: v7 = (GJBaseGameLayer *)((char *)this + 12288); v5 = *((unsigned __int8 *)this + 13098); if ( *((_BYTE *)this + 13098) ) { v47 = v4; v8 = (ObjectToolbox *)ObjectToolbox::sharedState(v7); v67 = 0; v48 = ObjectToolbox::intKeyToFrame(v8, v47); v68 = 0; v69 = nullptr; v9 = strlen(v48); std::string::__init(&v67, v48, v9); v10 = (char *)&v67 + 1; if ( (v67 & 1) != 0 ) v10 = (char *)v69; sub_9B9714(v10, "_001", "_extra_001", v70); v11 = (char *)v70 + 1; if ( (v70[0] & 1) != 0 ) v11 = (const char *)v71; v49 = (char *)v11; v72 = 0; v73 = 0; v74 = nullptr; v12 = strlen(v11); std::string::__init(&v72, v49, v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, (const cocos2d::CCPoint *)&unk_155D2C8); v13 = (cocos2d::CCObject *)GameObject::addCustomChild(a2, (unsigned __int8 *)&v72, (__int64)&v61, 0x64u); if ( (v72 & 1) != 0 ) operator delete(v74); if ( (v70[0] & 1) != 0 ) operator delete(v71); v14 = *((float *)a2 + 109); v15 = *((float *)a2 + 108) * 0.5; v16 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v13 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v61, v15, v14 * 0.5); v16(v13, &v61); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 1638), v13); if ( (v67 & 1) != 0 ) operator delete(v69); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source