// // GJBaseGameLayer::addGuideArt from 0x8698b4 to 0x86a348 (2708 bytes) // // 3 xrefs: // > PlayLayer::addObject @ 0x5cc804 // > PlayLayer::addObject @ 0x5cc888 // > @ 0x6ee68 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool GJBaseGameLayer::addGuideArt(GJBaseGameLayer *a1, GameObject *a2) { int m_objectID; // w1 bool m_portalIndicators; // w21 ObjectToolbox *v7; // x0 char *v8; // x0 cocos2d::CCSprite *v9; // x25 void *v10; // x0 char *v11; // x0 float height; // s2 float v13; // s0 void (__fastcall *v14)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x20 char *v15; // x20 char *v16; // x0 unsigned int *v17; // x20 int v18; // w1 ObjectToolbox *v19; // x0 char *v20; // x0 cocos2d::CCSprite *v21; // x27 char *v22; // x0 char *v23; // x0 cocos2d::CCSprite *v24; // x20 void *v25; // x0 char *v26; // x0 void (__fastcall *v27)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 __int64 v28; // x27 unsigned int *v29; // x20 ObjectToolbox *v30; // x0 char *v31; // x0 cocos2d::CCSprite *v32; // x27 char *v33; // x0 char *v34; // x0 cocos2d::CCSprite *v35; // x20 void *v36; // x0 char *v37; // x0 void (__fastcall *v38)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 __int64 v39; // x27 unsigned int *v40; // x20 unsigned int *v41; // x1 int v42; // w2 unsigned int *v43; // x1 int v44; // w2 unsigned int *v45; // x1 int v46; // w2 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x1 int v58; // w2 unsigned int *v59; // x1 int v60; // w2 int v61; // [xsp+60h] [xbp+60h] void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+60h] [xbp+60h] int v63; // [xsp+60h] [xbp+60h] void (__fastcall *v64)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+60h] [xbp+60h] int v65; // [xsp+68h] [xbp+68h] cocos2d::CCPoint v66; // [xsp+70h] [xbp+70h] BYREF char *v67; // [xsp+78h] [xbp+78h] BYREF char *v68; // [xsp+80h] [xbp+80h] BYREF char *v69; // [xsp+88h] [xbp+88h] BYREF char *v70; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v71; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCPoint v72; // [xsp+A0h] [xbp+A0h] BYREF m_objectID = a2->m_objectID; if ( m_objectID == 660 ) goto LABEL_30; if ( m_objectID <= 660 ) { if ( m_objectID <= 13 ) { if ( m_objectID < 12 ) { if ( m_objectID >= 10 ) { m_portalIndicators = a1->m_portalIndicators; if ( !m_portalIndicators ) return m_portalIndicators; goto LABEL_40; } return 0; } LABEL_30: m_portalIndicators = a1->m_portalIndicators; if ( !m_portalIndicators ) return m_portalIndicators; v61 = m_objectID; cocos2d::CCPoint::CCPoint(&v66, 17.0, 0.0); v19 = ObjectToolbox::sharedState(); v20 = (char *)ObjectToolbox::intKeyToFrame(v19, v61); sub_D153B8((int)&v67, v20); sub_856530(v67, "front", "extra", (__int64)&v68); sub_D153B8((int)&v69, v68); cocos2d::CCPoint::CCPoint(&v72, &stru_1242DA8); v21 = GameObject::addCustomChild((__int64)a2, (const char **)&v69, (__int64)&v72, 0x64u); v22 = v69 - 24; if ( v69 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(v69 - 8); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *((_DWORD *)v69 - 2); *((_DWORD *)v69 - 2) = v56 - 1; } if ( v56 <= 0 ) operator delete(v22); } v23 = v68 - 24; if ( v68 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)(v68 - 8); do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = *((_DWORD *)v68 - 2); *((_DWORD *)v68 - 2) = v52 - 1; } if ( v52 <= 0 ) operator delete(v23); } setPosition = v21->setPosition; cocos2d::CCPoint::CCPoint( &v72, v66.x + (float)(a2->m_obRect.size.width * 0.5), v66.y + (float)(a2->m_obRect.size.height * 0.5)); setPosition(v21, &v72); v21->setTag(v21, 91); sub_856530(v67, "front", "extra_2", (__int64)&v70); sub_D153B8((int)&v71, v70); cocos2d::CCPoint::CCPoint(&v72, &stru_1242DA8); v24 = GameObject::addCustomChild((__int64)a2, (const char **)&v71, (__int64)&v72, 0x65u); v25 = (void *)(*(_QWORD *)&v71 - 24LL); if ( (__int64 *)(*(_QWORD *)&v71 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(*(_QWORD *)&v71 - 8LL); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(*(_QWORD *)&v71 - 8LL); *(_DWORD *)(*(_QWORD *)&v71 - 8LL) = v54 - 1; } if ( v54 <= 0 ) operator delete(v25); } v26 = v70 - 24; if ( v70 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(v70 - 8); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *((_DWORD *)v70 - 2); *((_DWORD *)v70 - 2) = v48 - 1; } if ( v48 <= 0 ) operator delete(v26); } v27 = v24->setPosition; v28 = (__int64)v21->getPosition(v21); cocos2d::CCPoint::CCPoint(&v71, -2.0, 0.0); cocos2d::CCPoint::operator+(&v72, v28, &v71); v27(v24, &v72); cocos2d::CCArray::addObject(a1->m_indicatorSprites, v24); v15 = v67; v16 = v67 - 24; if ( v67 - 24 == (char *)&qword_124B6B0 ) return m_portalIndicators; if ( !&pthread_create ) goto LABEL_90; v29 = (unsigned int *)(v67 - 8); do v18 = __ldaxr(v29); while ( __stlxr(v18 - 1, v29) ); LABEL_48: if ( v18 <= 0 ) operator delete(v16); return m_portalIndicators; } if ( m_objectID != 84 ) { if ( m_objectID != 111 && m_objectID != 47 ) return 0; goto LABEL_30; } LABEL_14: m_portalIndicators = a1->m_orbIndicators; if ( !m_portalIndicators ) return m_portalIndicators; v65 = m_objectID; v7 = ObjectToolbox::sharedState(); v8 = (char *)ObjectToolbox::intKeyToFrame(v7, v65); sub_D153B8((int)&v69, v8); sub_856530(v69, "_001", "_extra_001", (__int64)&v70); sub_D153B8((int)&v71, v70); cocos2d::CCPoint::CCPoint(&v72, &stru_1242DA8); v9 = GameObject::addCustomChild((__int64)a2, (const char **)&v71, (__int64)&v72, 0x64u); v10 = (void *)(*(_QWORD *)&v71 - 24LL); if ( (__int64 *)(*(_QWORD *)&v71 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)(*(_QWORD *)&v71 - 8LL); do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = *(_DWORD *)(*(_QWORD *)&v71 - 8LL); *(_DWORD *)(*(_QWORD *)&v71 - 8LL) = v60 - 1; } if ( v60 <= 0 ) operator delete(v10); } v11 = v70 - 24; if ( v70 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(v70 - 8); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *((_DWORD *)v70 - 2); *((_DWORD *)v70 - 2) = v58 - 1; } if ( v58 <= 0 ) operator delete(v11); } height = a2->m_obRect.size.height; v13 = a2->m_obRect.size.width * 0.5; v14 = v9->setPosition; cocos2d::CCPoint::CCPoint(&v72, v13, height * 0.5); v14(v9, &v72); cocos2d::CCArray::addObject(a1->m_indicatorSprites, v9); v15 = v69; v16 = v69 - 24; if ( v69 - 24 == (char *)&qword_124B6B0 ) return m_portalIndicators; if ( !&pthread_create ) goto LABEL_90; v17 = (unsigned int *)(v69 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); goto LABEL_48; } if ( m_objectID == 1331 ) goto LABEL_30; if ( m_objectID <= 1331 ) { if ( m_objectID != 1022 && m_objectID != 1330 ) { if ( m_objectID != 745 ) return 0; goto LABEL_30; } goto LABEL_14; } if ( m_objectID == 1933 ) goto LABEL_30; if ( m_objectID != 2926 ) { if ( m_objectID == 1333 ) goto LABEL_14; return 0; } m_portalIndicators = a1->m_portalIndicators; if ( !m_portalIndicators ) return m_portalIndicators; LABEL_40: v63 = m_objectID; cocos2d::CCPoint::CCPoint(&v66, 19.0, 0.0); v30 = ObjectToolbox::sharedState(); v31 = (char *)ObjectToolbox::intKeyToFrame(v30, v63); sub_D153B8((int)&v67, v31); sub_856530(v67, "front", "extra", (__int64)&v68); sub_D153B8((int)&v69, v68); cocos2d::CCPoint::CCPoint(&v72, &stru_1242DA8); v32 = GameObject::addCustomChild((__int64)a2, (const char **)&v69, (__int64)&v72, 0x64u); v33 = v69 - 24; if ( v69 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(v69 - 8); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *((_DWORD *)v69 - 2); *((_DWORD *)v69 - 2) = v44 - 1; } if ( v44 <= 0 ) operator delete(v33); } v34 = v68 - 24; if ( v68 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(v68 - 8); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *((_DWORD *)v68 - 2); *((_DWORD *)v68 - 2) = v42 - 1; } if ( v42 <= 0 ) operator delete(v34); } v64 = v32->setPosition; cocos2d::CCPoint::CCPoint( &v72, v66.x + (float)(a2->m_obRect.size.width * 0.5), v66.y + (float)(a2->m_obRect.size.height * 0.5)); v64(v32, &v72); v32->setTag(v32, 91); sub_856530(v67, "front", "extra_2", (__int64)&v70); sub_D153B8((int)&v71, v70); cocos2d::CCPoint::CCPoint(&v72, &stru_1242DA8); v35 = GameObject::addCustomChild((__int64)a2, (const char **)&v71, (__int64)&v72, 0x65u); v36 = (void *)(*(_QWORD *)&v71 - 24LL); if ( (__int64 *)(*(_QWORD *)&v71 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(*(_QWORD *)&v71 - 8LL); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(*(_QWORD *)&v71 - 8LL); *(_DWORD *)(*(_QWORD *)&v71 - 8LL) = v50 - 1; } if ( v50 <= 0 ) operator delete(v36); } v37 = v70 - 24; if ( v70 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(v70 - 8); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *((_DWORD *)v70 - 2); *((_DWORD *)v70 - 2) = v46 - 1; } if ( v46 <= 0 ) operator delete(v37); } v38 = v35->setPosition; v39 = (__int64)v32->getPosition(v32); cocos2d::CCPoint::CCPoint(&v71, -1.5, 0.0); cocos2d::CCPoint::operator+(&v72, v39, &v71); v38(v35, &v72); cocos2d::CCArray::addObject(a1->m_indicatorSprites, v35); v15 = v67; v16 = v67 - 24; if ( v67 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v40 = (unsigned int *)(v67 - 8); do v18 = __ldaxr(v40); while ( __stlxr(v18 - 1, v40) ); goto LABEL_48; } LABEL_90: v18 = *((_DWORD *)v15 - 2); *((_DWORD *)v15 - 2) = v18 - 1; goto LABEL_48; } return m_portalIndicators; }
GD Web Decomp Icon

GD Web Decomp

Raw Source