// // GJBaseGameLayer::addGuideArt from 0x1403501e0 to 0x1403509e6 (2054 bytes) // // 3 xrefs: // > PlayLayer::addObject @ 0x14050cf78 // > PlayLayer::addObject @ 0x14050cfb3 // > @ 0x14092024c // // 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 11:30:47 +0000 // // Hidden C++ exception states: #wind=7 char __fastcall GJBaseGameLayer::addGuideArt(__int64 a1, __int64 a2) { int v4; // ebx __int64 v6; // rax _QWORD *v7; // rax size_t v8; // rdi size_t v9; // r8 void **v10; // rdx _QWORD *v11; // rax size_t v12; // r8 __int64 v13; // rax struct cocos2d::CCSprite *v14; // r12 __int64 v15; // rbx __int64 v16; // rax void **v17; // rdx _QWORD *v18; // rax __int64 v19; // rax struct cocos2d::CCObject *v20; // rdi __int64 v21; // rax __int64 v22; // rbx __int64 v23; // rax void *v24; // rcx __int64 v25; // rax _QWORD *v26; // rax size_t v27; // rdi size_t v28; // r8 void **v29; // rdx _QWORD *v30; // rax size_t v31; // r8 __int64 v32; // rax struct cocos2d::CCSprite *v33; // r12 __int64 v34; // rbx __int64 v35; // rax void **v36; // rdx _QWORD *v37; // rax __int64 v38; // rax struct cocos2d::CCObject *v39; // rdi __int64 v40; // rax __int64 v41; // rbx __int64 v42; // rax __int64 v43; // rax _QWORD *v44; // rax size_t v45; // rdi size_t v46; // r8 void **v47; // rdx _QWORD *v48; // rax __int64 v49; // rax struct cocos2d::CCSprite *v50; // rdi __int64 v51; // rbx __int64 v52; // rax __int128 *v53; // [rsp+30h] [rbp-99h] BYREF __int128 *v54; // [rsp+38h] [rbp-91h] BYREF float v55; // [rsp+40h] [rbp-89h] BYREF float v56; // [rsp+44h] [rbp-85h] __int128 v57; // [rsp+48h] [rbp-81h] BYREF __int64 v58; // [rsp+58h] [rbp-71h] __int64 v59; // [rsp+60h] [rbp-69h] _BYTE v60[8]; // [rsp+68h] [rbp-61h] BYREF __int128 v61; // [rsp+70h] [rbp-59h] BYREF __int64 v62; // [rsp+80h] [rbp-49h] __int64 v63; // [rsp+88h] [rbp-41h] _BYTE v64[8]; // [rsp+90h] [rbp-39h] BYREF void *Block[2]; // [rsp+98h] [rbp-31h] BYREF __int128 v66; // [rsp+A8h] [rbp-21h] _QWORD v67[4]; // [rsp+B8h] [rbp-11h] BYREF _QWORD v68[4]; // [rsp+D8h] [rbp+Fh] BYREF v4 = *(_DWORD *)(a2 + 1036); if ( v4 <= 660 ) { if ( v4 != 660 ) { switch ( v4 ) { case 10: case 11: goto LABEL_14; case 12: case 13: case 47: case 111: break; case 84: goto LABEL_9; default: return 0; } } LABEL_35: if ( *(_BYTE *)(a1 + 13649) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, 17.0, 0.0); LODWORD(v53) = v4; v25 = ObjectToolbox::sharedState(); v26 = (_QWORD *)sub_1402D6130((__int64 *)(v25 + 320), (int *)&v53); if ( v26[3] > 0xFu ) v26 = (_QWORD *)*v26; *(_OWORD *)Block = 0; v66 = 0; v27 = -1; v28 = -1; do ++v28; while ( *((_BYTE *)v26 + v28) ); sub_14003D230(Block, v26, v28); v54 = &v57; v29 = Block; if ( *((_QWORD *)&v66 + 1) > 0xFu ) v29 = (void **)Block[0]; v30 = sub_14004DEC0(v67, v29, "front", "extra"); if ( v30[3] > 0xFu ) v30 = (_QWORD *)*v30; v57 = 0; v58 = 0; v59 = 0; v31 = -1; do ++v31; while ( *((_BYTE *)v30 + v31) ); sub_14003D230(&v57, v30, v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, (const struct cocos2d::CCPoint *)&dword_14090AA70); v33 = GameObject::addCustomChild((_BYTE *)a2, (const char *)&v57, v32, 0x64u); sub_14003D310((__int64)v67); v34 = *(_QWORD *)v33; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v54, (float)(*(float *)(a2 + 432) * 0.5) + v55, (float)(*(float *)(a2 + 436) * 0.5) + v56); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v34 + 184))(v33, v35); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v33 + 64LL))(v33, 91); v54 = &v61; v36 = Block; if ( *((_QWORD *)&v66 + 1) > 0xFu ) v36 = (void **)Block[0]; v37 = sub_14004DEC0(v68, v36, "front", "extra_2"); if ( v37[3] > 0xFu ) v37 = (_QWORD *)*v37; v61 = 0; v62 = 0; v63 = 0; do ++v27; while ( *((_BYTE *)v37 + v27) ); sub_14003D230(&v61, v37, v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const struct cocos2d::CCPoint *)&dword_14090AA70); v39 = GameObject::addCustomChild((_BYTE *)a2, (const char *)&v61, v38, 0x65u); sub_14003D310((__int64)v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, -2.0, 0.0); v41 = v40; v42 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v33 + 200LL))(v33); cocos2d::CCPoint::operator+(v42, &v53, v41); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int128 **))(*(_QWORD *)v39 + 184LL))(v39, &v53); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 13656), v39); if ( *((_QWORD *)&v66 + 1) <= 0xFu ) return 1; v24 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v66 + 1) + 1LL) >= 0x1000 ) { v24 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v24 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } goto LABEL_56; } return 0; } if ( v4 <= 1331 ) { if ( v4 == 1331 || v4 == 745 ) goto LABEL_35; if ( v4 != 1022 && v4 != 1330 ) return 0; LABEL_9: if ( *(_BYTE *)(a1 + 13650) ) { LODWORD(v53) = *(_DWORD *)(a2 + 1036); v43 = ObjectToolbox::sharedState(); v44 = (_QWORD *)sub_1402D6130((__int64 *)(v43 + 320), (int *)&v53); if ( v44[3] > 0xFu ) v44 = (_QWORD *)*v44; *(_OWORD *)Block = 0; v66 = 0; v45 = -1; v46 = -1; do ++v46; while ( *((_BYTE *)v44 + v46) ); sub_14003D230(Block, v44, v46); v54 = &v57; v47 = Block; if ( *((_QWORD *)&v66 + 1) > 0xFu ) v47 = (void **)Block[0]; v48 = sub_14004DEC0(v67, v47, "_001", "_extra_001"); if ( v48[3] > 0xFu ) v48 = (_QWORD *)*v48; v57 = 0; v58 = 0; v59 = 0; do ++v45; while ( *((_BYTE *)v48 + v45) ); sub_14003D230(&v57, v48, v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, (const struct cocos2d::CCPoint *)&dword_14090AA70); v50 = GameObject::addCustomChild((_BYTE *)a2, (const char *)&v57, v49, 0x64u); sub_14003D310((__int64)v67); v51 = *(_QWORD *)v50; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, *(float *)(a2 + 432) * 0.5, *(float *)(a2 + 436) * 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v51 + 184))(v50, v52); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 13656), v50); sub_14003D310((__int64)Block); return 1; } return 0; } if ( v4 == 1333 ) goto LABEL_9; if ( v4 == 1933 ) goto LABEL_35; if ( v4 != 2926 ) return 0; LABEL_14: if ( !*(_BYTE *)(a1 + 13649) ) return 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, 19.0, 0.0); LODWORD(v53) = v4; v6 = ObjectToolbox::sharedState(); v7 = (_QWORD *)sub_1402D6130((__int64 *)(v6 + 320), (int *)&v53); if ( v7[3] > 0xFu ) v7 = (_QWORD *)*v7; *(_OWORD *)Block = 0; v66 = 0; v8 = -1; v9 = -1; do ++v9; while ( *((_BYTE *)v7 + v9) ); sub_14003D230(Block, v7, v9); v53 = &v61; v10 = Block; if ( *((_QWORD *)&v66 + 1) > 0xFu ) v10 = (void **)Block[0]; v11 = sub_14004DEC0(v68, v10, "front", "extra"); if ( v11[3] > 0xFu ) v11 = (_QWORD *)*v11; v61 = 0; v62 = 0; v63 = 0; v12 = -1; do ++v12; while ( *((_BYTE *)v11 + v12) ); sub_14003D230(&v61, v11, v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const struct cocos2d::CCPoint *)&dword_14090AA70); v14 = GameObject::addCustomChild((_BYTE *)a2, (const char *)&v61, v13, 0x64u); sub_14003D310((__int64)v68); v15 = *(_QWORD *)v14; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v53, (float)(*(float *)(a2 + 432) * 0.5) + v55, (float)(*(float *)(a2 + 436) * 0.5) + v56); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v15 + 184))(v14, v16); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v14 + 64LL))(v14, 91); v53 = &v57; v17 = Block; if ( *((_QWORD *)&v66 + 1) > 0xFu ) v17 = (void **)Block[0]; v18 = sub_14004DEC0(v67, v17, "front", "extra_2"); if ( v18[3] > 0xFu ) v18 = (_QWORD *)*v18; v57 = 0; v58 = 0; v59 = 0; do ++v8; while ( *((_BYTE *)v18 + v8) ); sub_14003D230(&v57, v18, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, (const struct cocos2d::CCPoint *)&dword_14090AA70); v20 = GameObject::addCustomChild((_BYTE *)a2, (const char *)&v57, v19, 0x65u); sub_14003D310((__int64)v67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v54, -1.5, 0.0); v22 = v21; v23 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v14 + 200LL))(v14); cocos2d::CCPoint::operator+(v23, &v53, v22); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int128 **))(*(_QWORD *)v20 + 184LL))(v20, &v53); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 13656), v20); if ( *((_QWORD *)&v66 + 1) <= 0xFu ) return 1; v24 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v66 + 1) + 1LL) >= 0x1000 ) { v24 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v24 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } LABEL_56: j_j_free(v24); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source