// // GJBaseGameLayer::visitWithColorFlash from 0x140352590 to 0x140352b60 (1488 bytes) // // 4 xrefs: // > GJBaseGameLayer::visit @ 0x1403522c2 // > @ 0x1408b8b48 // > @ 0x1408b8bb0 // > @ 0x14092039c // // 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:48 +0000 // int __fastcall GJBaseGameLayer::visitWithColorFlash(cocos2d::CCNode *a1) { __int64 ColorSprite; // rax char v3; // al __int64 v4; // rcx __int64 v5; // rax unsigned __int16 v6; // r12 char v7; // r15 __int64 v8; // rcx __int64 v9; // rax unsigned __int16 v10; // bx char v11; // r13 unsigned __int16 v12; // si __int64 v13; // rax cocos2d::CCArray *v14; // rax unsigned int v15; // ebx cocos2d::CCArray *v16; // rsi unsigned int v17; // edi struct cocos2d::CCObject *v18; // rax cocos2d::CCArray *v19; // rax cocos2d::CCArray *v20; // rsi unsigned int v21; // edi struct cocos2d::CCObject *v22; // rax __int64 v23; // rcx cocos2d::CCArray *v24; // rax cocos2d::CCArray *v25; // rsi unsigned int v26; // edi struct cocos2d::CCObject *v27; // rax __int64 v28; // rcx cocos2d::CCArray *v29; // rax cocos2d::CCArray *v30; // rsi unsigned int v31; // edi struct cocos2d::CCObject *v32; // rax __int64 v33; // rax cocos2d::CCArray *v34; // rax cocos2d::CCArray *v35; // rsi unsigned int v36; // edi struct cocos2d::CCObject *v37; // rax __int64 v38; // rax cocos2d::CCArray *v39; // rax cocos2d::CCArray *v40; // rsi unsigned int v41; // edi struct cocos2d::CCObject *v42; // rax __int64 v43; // rax unsigned __int16 v44; // r15 __int64 v45; // rcx cocos2d::CCArray *v46; // rax cocos2d::CCArray *v47; // rsi unsigned int v48; // edi struct cocos2d::CCObject *v49; // rax cocos2d::CCArray *v50; // rax __int64 v51; // rcx cocos2d::CCArray *v52; // rdi struct cocos2d::CCObject *v53; // rax unsigned __int16 v55; // [rsp+28h] [rbp-E0h] BYREF char v56; // [rsp+2Ah] [rbp-DEh] unsigned __int16 v57; // [rsp+38h] [rbp-D0h] BYREF char v58; // [rsp+3Ah] [rbp-CEh] unsigned __int16 v59; // [rsp+48h] [rbp-C0h] unsigned __int16 v60; // [rsp+4Ch] [rbp-BCh] BYREF char v61; // [rsp+4Eh] [rbp-BAh] unsigned __int16 v62; // [rsp+58h] [rbp-B0h] BYREF char v63; // [rsp+5Ah] [rbp-AEh] unsigned __int16 v64; // [rsp+68h] [rbp-A0h] BYREF char v65; // [rsp+6Ah] [rbp-9Eh] unsigned __int16 v66; // [rsp+78h] [rbp-90h] BYREF char v67; // [rsp+7Ah] [rbp-8Eh] unsigned __int16 v68; // [rsp+88h] [rbp-80h] BYREF char v69; // [rsp+8Ah] [rbp-7Eh] unsigned __int16 v70; // [rsp+98h] [rbp-70h] BYREF char v71; // [rsp+9Ah] [rbp-6Eh] unsigned __int16 v72; // [rsp+A8h] [rbp-60h] BYREF char v73; // [rsp+AAh] [rbp-5Eh] unsigned __int16 v74; // [rsp+B8h] [rbp-50h] BYREF char v75; // [rsp+BAh] [rbp-4Eh] int v76; // [rsp+C8h] [rbp-40h] BYREF int v77; // [rsp+CCh] [rbp-3Ch] int v78; // [rsp+D0h] [rbp-38h] int v79; // [rsp+D4h] [rbp-34h] int v80; // [rsp+E4h] [rbp-24h] unsigned __int16 v81; // [rsp+138h] [rbp+30h] BYREF char v82; // [rsp+13Ah] [rbp+32h] unsigned __int16 v83; // [rsp+140h] [rbp+38h] BYREF char v84; // [rsp+142h] [rbp+3Ah] unsigned __int16 v85; // [rsp+148h] [rbp+40h] BYREF char v86; // [rsp+14Ah] [rbp+42h] unsigned __int16 v87; // [rsp+150h] [rbp+48h] ColorSprite = GJEffectManager::getColorSprite(*((_QWORD *)a1 + 301), 1000); if ( ColorSprite ) { v55 = *(_WORD *)(ColorSprite + 327); v3 = *(_BYTE *)(ColorSprite + 329); } else { v55 = -1; v3 = -1; } v4 = *((_QWORD *)a1 + 301); v56 = v3; v5 = GJEffectManager::getColorSprite(v4, 1001); if ( v5 ) { v6 = *(_WORD *)(v5 + 327); v7 = *(_BYTE *)(v5 + 329); } else { v6 = -1; v7 = -1; } v8 = *((_QWORD *)a1 + 301); v82 = v7; v81 = v6; v9 = GJEffectManager::getColorSprite(v8, 1009); if ( v9 ) { v10 = *(_WORD *)(v9 + 327); v11 = *(_BYTE *)(v9 + 329); } else { v10 = -1; v11 = -1; } LOWORD(v80) = 257; v79 = v80; v84 = v11; v83 = v10; v59 = v10; v76 = 0; v77 = -1102263091; v78 = 1045220557; GameToolbox::transformColor((__int64)&v85, &v55, (float *)&v76); v60 = v85; v61 = v86; if ( (_BYTE)v6 || HIBYTE(v81) || v7 ) { LOWORD(v80) = 257; v79 = v80; v76 = 0; v77 = -1102263091; v78 = 1045220557; GameToolbox::transformColor((__int64)&v85, &v81, (float *)&v76); v12 = v85; LOBYTE(v81) = v86; v87 = v85; } else { v12 = v6; v87 = v6; LOBYTE(v81) = 0; } if ( (_BYTE)v10 || HIBYTE(v83) || v11 ) { LOWORD(v80) = 257; v79 = v80; v76 = 0; v77 = -1102263091; v78 = 1045220557; GameToolbox::transformColor((__int64)&v57, &v83, (float *)&v76); v85 = v57; LOBYTE(v83) = v58; } else { v85 = v10; LOBYTE(v83) = 0; } (**(void (__fastcall ***)(__int64, unsigned __int16 *))(*((_QWORD *)a1 + 540) + 320LL))( *((_QWORD *)a1 + 540) + 320LL, &v60); v58 = v81; v13 = *((_QWORD *)a1 + 542); v57 = v12; v14 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v13 + 408) + 480LL))(*(_QWORD *)(v13 + 408)); v15 = 0; v16 = v14; if ( v14 ) { v17 = 0; if ( cocos2d::CCArray::count(v14) ) { do { v18 = cocos2d::CCArray::objectAtIndex(v16, v17); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v18 + 40))((__int64)v18 + 320, &v57); ++v17; } while ( v17 < cocos2d::CCArray::count(v16) ); } } v62 = v87; v63 = v81; v19 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)a1 + 543) + 408LL) + 480LL))(*(_QWORD *)(*((_QWORD *)a1 + 543) + 408LL)); v20 = v19; if ( v19 ) { v21 = 0; if ( cocos2d::CCArray::count(v19) ) { do { v22 = cocos2d::CCArray::objectAtIndex(v20, v21); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v22 + 40))((__int64)v22 + 320, &v62); ++v21; } while ( v21 < cocos2d::CCArray::count(v20) ); } } v64 = v85; v65 = v83; v23 = *(_QWORD *)(*((_QWORD *)a1 + 542) + 416LL); if ( v23 ) { v24 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 480LL))(v23); v25 = v24; if ( v24 ) { v26 = 0; if ( cocos2d::CCArray::count(v24) ) { do { v27 = cocos2d::CCArray::objectAtIndex(v25, v26); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v27 + 40))((__int64)v27 + 320, &v64); ++v26; } while ( v26 < cocos2d::CCArray::count(v25) ); } } } v66 = v85; v67 = v83; v28 = *(_QWORD *)(*((_QWORD *)a1 + 543) + 416LL); if ( v28 ) { v29 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 480LL))(v28); v30 = v29; if ( v29 ) { v31 = 0; if ( cocos2d::CCArray::count(v29) ) { do { v32 = cocos2d::CCArray::objectAtIndex(v30, v31); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v32 + 40))((__int64)v32 + 320, &v66); ++v31; } while ( v31 < cocos2d::CCArray::count(v30) ); } } } cocos2d::CCNode::visit(a1); (**(void (__fastcall ***)(__int64, unsigned __int16 *))(*((_QWORD *)a1 + 540) + 320LL))( *((_QWORD *)a1 + 540) + 320LL, &v55); v33 = *((_QWORD *)a1 + 542); v68 = v6; v69 = v7; v34 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v33 + 408) + 480LL))(*(_QWORD *)(v33 + 408)); v35 = v34; if ( v34 ) { v36 = 0; if ( cocos2d::CCArray::count(v34) ) { do { v37 = cocos2d::CCArray::objectAtIndex(v35, v36); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v37 + 40))((__int64)v37 + 320, &v68); ++v36; } while ( v36 < cocos2d::CCArray::count(v35) ); } } v38 = *((_QWORD *)a1 + 543); v70 = v6; v71 = v7; v39 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v38 + 408) + 480LL))(*(_QWORD *)(v38 + 408)); v40 = v39; if ( v39 ) { v41 = 0; if ( cocos2d::CCArray::count(v39) ) { do { v42 = cocos2d::CCArray::objectAtIndex(v40, v41); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v42 + 40))((__int64)v42 + 320, &v70); ++v41; } while ( v41 < cocos2d::CCArray::count(v40) ); } } v43 = *((_QWORD *)a1 + 542); v44 = v59; v72 = v59; v73 = v11; v45 = *(_QWORD *)(v43 + 416); if ( v45 ) { v46 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v45 + 480LL))(v45); v47 = v46; if ( v46 ) { v48 = 0; if ( cocos2d::CCArray::count(v46) ) { do { v49 = cocos2d::CCArray::objectAtIndex(v47, v48); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v49 + 40))((__int64)v49 + 320, &v72); ++v48; } while ( v48 < cocos2d::CCArray::count(v47) ); } } } v50 = *((cocos2d::CCArray **)a1 + 543); v74 = v44; v75 = v11; v51 = *((_QWORD *)v50 + 52); if ( v51 ) { v50 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v51 + 480LL))(v51); v52 = v50; if ( v50 ) { LODWORD(v50) = cocos2d::CCArray::count(v50); if ( (_DWORD)v50 ) { do { v53 = cocos2d::CCArray::objectAtIndex(v52, v15); (**((void (__fastcall ***)(__int64, unsigned __int16 *))v53 + 40))((__int64)v53 + 320, &v74); ++v15; LODWORD(v50) = cocos2d::CCArray::count(v52); } while ( v15 < (unsigned int)v50 ); } } } return (int)v50; }