{"type": "func", "start": 5371101888, "end": 5371103358, "name": "GJBaseGameLayer::visitWithColorFlash", "pseudocode": "// \n// GJBaseGameLayer::visitWithColorFlash from 0x1402482c0 to 0x14024887e (1470 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::visit @ 0x140247ff9\n// > <???> @ 0x1406ce784\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::visitWithColorFlash(GJBaseGameLayer *a1)\n{\n  ColorActionSprite *ColorSprite; // rax\n  GLubyte b; // al\n  GJEffectManager *m_effectManager; // rcx\n  ColorActionSprite *v5; // rax\n  __int16 v6; // r12\n  GLubyte v7; // r15\n  GJEffectManager *v8; // rcx\n  ColorActionSprite *v9; // rax\n  __int16 v10; // di\n  GLubyte v11; // bl\n  cocos2d::CCRGBAProtocol *v12; // rcx\n  cocos2d::CCArray *v13; // rax\n  unsigned int v14; // ebx\n  cocos2d::CCArray *v15; // rsi\n  unsigned int v16; // edi\n  struct cocos2d::CCObject *v17; // rax\n  cocos2d::CCArray *v18; // rax\n  cocos2d::CCArray *v19; // rsi\n  unsigned int v20; // edi\n  struct cocos2d::CCObject *v21; // rax\n  __int16 *v22; // r13\n  cocos2d::CCSprite *m_ground2Sprite; // rcx\n  cocos2d::CCArray *v24; // rax\n  cocos2d::CCArray *v25; // rsi\n  unsigned int v26; // edi\n  struct cocos2d::CCObject *v27; // rax\n  cocos2d::CCSprite *v28; // rcx\n  cocos2d::CCArray *v29; // rax\n  cocos2d::CCArray *v30; // rsi\n  unsigned int v31; // edi\n  struct cocos2d::CCObject *v32; // rax\n  GJGroundLayer *m_groundLayer; // rax\n  cocos2d::CCArray *v34; // rax\n  cocos2d::CCArray *v35; // rsi\n  unsigned int v36; // edi\n  struct cocos2d::CCObject *v37; // rax\n  GJGroundLayer *m_groundLayer2; // rax\n  cocos2d::CCArray *v39; // rax\n  cocos2d::CCArray *v40; // rsi\n  unsigned int v41; // edi\n  struct cocos2d::CCObject *v42; // rax\n  GJGroundLayer *v43; // rax\n  cocos2d::CCSprite *v44; // rcx\n  cocos2d::CCArray *v45; // rax\n  cocos2d::CCArray *v46; // rsi\n  unsigned int v47; // edi\n  struct cocos2d::CCObject *v48; // rax\n  GJGroundLayer *v49; // rax\n  cocos2d::CCSprite *v50; // rcx\n  cocos2d::CCArray *v51; // rax\n  cocos2d::CCArray *v52; // rdi\n  struct cocos2d::CCObject *v53; // rax\n  cocos2d::ccColor3B v54[5]; // [rsp+20h] [rbp-A9h] BYREF\n  cocos2d::ccColor3B v55[5]; // [rsp+30h] [rbp-99h] BYREF\n  cocos2d::ccHSVValue v56; // [rsp+40h] [rbp-89h] BYREF\n  cocos2d::ccColor3B v57; // [rsp+50h] [rbp-79h] BYREF\n  cocos2d::ccColor3B v58; // [rsp+60h] [rbp-69h] BYREF\n  __int16 v59; // [rsp+70h] [rbp-59h] BYREF\n  char v60; // [rsp+72h] [rbp-57h]\n  __int16 v61; // [rsp+80h] [rbp-49h] BYREF\n  char v62; // [rsp+82h] [rbp-47h]\n  __int16 v63; // [rsp+90h] [rbp-39h] BYREF\n  GLubyte v64; // [rsp+92h] [rbp-37h]\n  __int16 v65; // [rsp+A0h] [rbp-29h] BYREF\n  GLubyte v66; // [rsp+A2h] [rbp-27h]\n  __int16 v67; // [rsp+B0h] [rbp-19h] BYREF\n  GLubyte v68; // [rsp+B2h] [rbp-17h]\n  __int16 v69; // [rsp+C0h] [rbp-9h] BYREF\n  GLubyte v70; // [rsp+C2h] [rbp-7h]\n  int v71; // [rsp+DCh] [rbp+13h]\n  GLubyte v72; // [rsp+130h] [rbp+67h]\n  __int16 v73; // [rsp+138h] [rbp+6Fh]\n  cocos2d::ccColor3B v74; // [rsp+140h] [rbp+77h] BYREF\n  cocos2d::ccColor3B v75; // [rsp+148h] [rbp+7Fh] BYREF\n\n  ColorSprite = GJEffectManager::getColorSprite(a1->m_effectManager, 1000);\n  if ( ColorSprite )\n  {\n    *(_WORD *)&v55[0].r = *(_WORD *)&ColorSprite->m_copyColor.r;\n    b = ColorSprite->m_copyColor.b;\n  }\n  else\n  {\n    *(_WORD *)&v55[0].r = -1;\n    b = -1;\n  }\n  m_effectManager = a1->m_effectManager;\n  v55[0].b = b;\n  v5 = GJEffectManager::getColorSprite(m_effectManager, 1001);\n  if ( v5 )\n  {\n    v6 = *(_WORD *)&v5->m_copyColor.r;\n    v7 = v5->m_copyColor.b;\n  }\n  else\n  {\n    v6 = -1;\n    v7 = -1;\n  }\n  v8 = a1->m_effectManager;\n  v74.b = v7;\n  *(_WORD *)&v74.r = v6;\n  v9 = GJEffectManager::getColorSprite(v8, 1009);\n  if ( v9 )\n  {\n    v10 = *(_WORD *)&v9->m_copyColor.r;\n    v11 = v9->m_copyColor.b;\n  }\n  else\n  {\n    v10 = -1;\n    v11 = -1;\n  }\n  LOWORD(v71) = 257;\n  *(_DWORD *)&v56.absoluteSaturation = v71;\n  v75.b = v11;\n  v72 = v11;\n  *(_WORD *)&v75.r = v10;\n  v73 = v10;\n  *(_QWORD *)&v56.h = 0xBE4CCCCD00000000uLL;\n  v56.v = 0.2;\n  GameToolbox::transformColor(v54, v55, &v56);\n  v57 = v54[0];\n  if ( (_BYTE)v6 || v74.g || v7 )\n  {\n    LOWORD(v71) = 257;\n    *(_DWORD *)&v56.absoluteSaturation = v71;\n    *(_QWORD *)&v56.h = 0xBE4CCCCD00000000uLL;\n    v56.v = 0.2;\n    GameToolbox::transformColor(v54, &v74, &v56);\n    v74 = v54[0];\n  }\n  else\n  {\n    *(_WORD *)&v74.r = v6;\n    v74.b = 0;\n  }\n  if ( (_BYTE)v10 || v75.g || v11 )\n  {\n    LOWORD(v71) = 257;\n    *(_DWORD *)&v56.absoluteSaturation = v71;\n    *(_QWORD *)&v56.h = 0xBE4CCCCD00000000uLL;\n    v56.v = 0.2;\n    GameToolbox::transformColor(v54, &v75, &v56);\n    v75 = v54[0];\n  }\n  else\n  {\n    *(_WORD *)&v75.r = v10;\n    v75.b = 0;\n  }\n  v12 = &a1->m_background->cocos2d::CCRGBAProtocol;\n  *(_QWORD *)&v56.h = &v75;\n  v12->setColor(v12, &v57);\n  v54[0] = v74;\n  v13 = a1->m_groundLayer->m_ground1Sprite->getChildren(a1->m_groundLayer->m_ground1Sprite);\n  v14 = 0;\n  v15 = v13;\n  if ( v13 )\n  {\n    v16 = 0;\n    if ( cocos2d::CCArray::count(v13) )\n    {\n      do\n      {\n        v17 = cocos2d::CCArray::objectAtIndex(v15, v16);\n        (**(void (__fastcall ***)(__int64, cocos2d::ccColor3B *))&v17[5].m_unknown2)((__int64)&v17[5].m_unknown2, v54);\n        ++v16;\n      }\n      while ( v16 < cocos2d::CCArray::count(v15) );\n    }\n  }\n  v58 = v74;\n  v18 = a1->m_groundLayer2->m_ground1Sprite->getChildren(a1->m_groundLayer2->m_ground1Sprite);\n  v19 = v18;\n  if ( v18 )\n  {\n    v20 = 0;\n    if ( cocos2d::CCArray::count(v18) )\n    {\n      do\n      {\n        v21 = cocos2d::CCArray::objectAtIndex(v19, v20);\n        (**(void (__fastcall ***)(__int64, cocos2d::ccColor3B *))&v21[5].m_unknown2)((__int64)&v21[5].m_unknown2, &v58);\n        ++v20;\n      }\n      while ( v20 < cocos2d::CCArray::count(v19) );\n    }\n  }\n  v22 = *(__int16 **)&v56.h;\n  v59 = **(_WORD **)&v56.h;\n  v60 = *(_BYTE *)(*(_QWORD *)&v56.h + 2LL);\n  m_ground2Sprite = a1->m_groundLayer->m_ground2Sprite;\n  if ( m_ground2Sprite )\n  {\n    v24 = m_ground2Sprite->getChildren(m_ground2Sprite);\n    v25 = v24;\n    if ( v24 )\n    {\n      v26 = 0;\n      if ( cocos2d::CCArray::count(v24) )\n      {\n        do\n        {\n          v27 = cocos2d::CCArray::objectAtIndex(v25, v26);\n          (**(void (__fastcall ***)(__int64, __int16 *))&v27[5].m_unknown2)((__int64)&v27[5].m_unknown2, &v59);\n          ++v26;\n        }\n        while ( v26 < cocos2d::CCArray::count(v25) );\n      }\n    }\n  }\n  v61 = *v22;\n  v62 = *((_BYTE *)v22 + 2);\n  v28 = a1->m_groundLayer2->m_ground2Sprite;\n  if ( v28 )\n  {\n    v29 = v28->getChildren(v28);\n    v30 = v29;\n    if ( v29 )\n    {\n      v31 = 0;\n      if ( cocos2d::CCArray::count(v29) )\n      {\n        do\n        {\n          v32 = cocos2d::CCArray::objectAtIndex(v30, v31);\n          (**(void (__fastcall ***)(__int64, __int16 *))&v32[5].m_unknown2)((__int64)&v32[5].m_unknown2, &v61);\n          ++v31;\n        }\n        while ( v31 < cocos2d::CCArray::count(v30) );\n      }\n    }\n  }\n  cocos2d::CCNode::visit(a1);\n  a1->m_background->setColor(&a1->m_background->cocos2d::CCRGBAProtocol, v55);\n  m_groundLayer = a1->m_groundLayer;\n  v63 = v6;\n  v64 = v7;\n  v34 = m_groundLayer->m_ground1Sprite->getChildren(m_groundLayer->m_ground1Sprite);\n  v35 = v34;\n  if ( v34 )\n  {\n    v36 = 0;\n    if ( cocos2d::CCArray::count(v34) )\n    {\n      do\n      {\n        v37 = cocos2d::CCArray::objectAtIndex(v35, v36);\n        (**(void (__fastcall ***)(__int64, __int16 *))&v37[5].m_unknown2)((__int64)&v37[5].m_unknown2, &v63);\n        ++v36;\n      }\n      while ( v36 < cocos2d::CCArray::count(v35) );\n    }\n  }\n  m_groundLayer2 = a1->m_groundLayer2;\n  v65 = v6;\n  v66 = v7;\n  v39 = m_groundLayer2->m_ground1Sprite->getChildren(m_groundLayer2->m_ground1Sprite);\n  v40 = v39;\n  if ( v39 )\n  {\n    v41 = 0;\n    if ( cocos2d::CCArray::count(v39) )\n    {\n      do\n      {\n        v42 = cocos2d::CCArray::objectAtIndex(v40, v41);\n        (**(void (__fastcall ***)(__int64, __int16 *))&v42[5].m_unknown2)((__int64)&v42[5].m_unknown2, &v65);\n        ++v41;\n      }\n      while ( v41 < cocos2d::CCArray::count(v40) );\n    }\n  }\n  v43 = a1->m_groundLayer;\n  v67 = v73;\n  v68 = v72;\n  v44 = v43->m_ground2Sprite;\n  if ( v44 )\n  {\n    v45 = v44->getChildren(v44);\n    v46 = v45;\n    if ( v45 )\n    {\n      v47 = 0;\n      if ( cocos2d::CCArray::count(v45) )\n      {\n        do\n        {\n          v48 = cocos2d::CCArray::objectAtIndex(v46, v47);\n          (**(void (__fastcall ***)(__int64, __int16 *))&v48[5].m_unknown2)((__int64)&v48[5].m_unknown2, &v67);\n          ++v47;\n        }\n        while ( v47 < cocos2d::CCArray::count(v46) );\n      }\n    }\n  }\n  v49 = a1->m_groundLayer2;\n  v69 = v73;\n  v70 = v72;\n  v50 = v49->m_ground2Sprite;\n  if ( v50 )\n  {\n    v51 = v50->getChildren(v50);\n    v52 = v51;\n    if ( v51 )\n    {\n      if ( cocos2d::CCArray::count(v51) )\n      {\n        do\n        {\n          v53 = cocos2d::CCArray::objectAtIndex(v52, v14);\n          (**(void (__fastcall ***)(__int64, __int16 *))&v53[5].m_unknown2)((__int64)&v53[5].m_unknown2, &v69);\n          ++v14;\n        }\n        while ( v14 < cocos2d::CCArray::count(v52) );\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::visitWithColorFlash from 0x1402482c0 to 0x14024887e (1470 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::visit @ 0x140247ff9\n; > <???> @ 0x1406ce784\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1402482c0\npush    rbx                                                            ; +0x2, 0x1402482c2\npush    rsi                                                            ; +0x3, 0x1402482c3\npush    rdi                                                            ; +0x4, 0x1402482c4\npush    r12                                                            ; +0x5, 0x1402482c5\npush    r13                                                            ; +0x7, 0x1402482c7\npush    r14                                                            ; +0x9, 0x1402482c9\npush    r15                                                            ; +0xb, 0x1402482cb\nlea     rbp, [rsp-1Fh]                                                 ; +0xd, 0x1402482cd\nsub     rsp, 0E8h                                                      ; +0x12, 0x1402482d2\nmov     r14, rcx                                                       ; +0x19, 0x1402482d9\nmov     edx, 3E8h                                                      ; +0x1c, 0x1402482dc\nmov     rcx, [rcx+950h]                                                ; +0x21, 0x1402482e1\ncall    GJEffectManager__getColorSprite                                ; +0x28, 0x1402482e8\ntest    rax, rax                                                       ; +0x2d, 0x1402482ed\njz      short loc_140248307                                            ; +0x30, 0x1402482f0\nmovzx   edx, word ptr [rax+147h]                                       ; +0x32, 0x1402482f2\nmov     [rsp+120h+var_F0], dx                                          ; +0x39, 0x1402482f9\nmovzx   eax, byte ptr [rax+149h]                                       ; +0x3e, 0x1402482fe\njmp     short loc_14024831A                                            ; +0x45, 0x140248305\nmovzx   eax, cs:word_140529AB0                                         ; +0x47, 0x140248307\nmov     [rsp+120h+var_F0], ax                                          ; +0x4e, 0x14024830e\nmovzx   eax, cs:byte_140529AB2                                         ; +0x53, 0x140248313\nmov     rcx, [r14+950h]                                                ; +0x5a, 0x14024831a\nmov     edx, 3E9h                                                      ; +0x61, 0x140248321\nmov     [rsp+120h+var_EE], al                                          ; +0x66, 0x140248326\ncall    GJEffectManager__getColorSprite                                ; +0x6a, 0x14024832a\ntest    rax, rax                                                       ; +0x6f, 0x14024832f\njz      short loc_140248346                                            ; +0x72, 0x140248332\nmovzx   r12d, word ptr [rax+147h]                                      ; +0x74, 0x140248334\nmovzx   r15d, byte ptr [rax+149h]                                      ; +0x7c, 0x14024833c\njmp     short loc_140248356                                            ; +0x84, 0x140248344\nmovzx   r12d, cs:word_140529AB0                                        ; +0x86, 0x140248346\nmovzx   r15d, cs:byte_140529AB2                                        ; +0x8e, 0x14024834e\nmov     rcx, [r14+950h]                                                ; +0x96, 0x140248356\nmov     edx, 3F1h                                                      ; +0x9d, 0x14024835d\nmov     [rbp+57h+arg_12], r15b                                         ; +0xa2, 0x140248362\nmov     [rbp+57h+arg_10], r12w                                         ; +0xa6, 0x140248366\ncall    GJEffectManager__getColorSprite                                ; +0xab, 0x14024836b\ntest    rax, rax                                                       ; +0xb0, 0x140248370\njz      short loc_140248385                                            ; +0xb3, 0x140248373\nmovzx   edi, word ptr [rax+147h]                                       ; +0xb5, 0x140248375\nmovzx   ebx, byte ptr [rax+149h]                                       ; +0xbc, 0x14024837c\njmp     short loc_140248393                                            ; +0xc3, 0x140248383\nmovzx   edi, cs:word_140529AB0                                         ; +0xc5, 0x140248385\nmovzx   ebx, cs:byte_140529AB2                                         ; +0xcc, 0x14024838c\nmov     word ptr [rbp+57h+var_44], 101h                                ; +0xd3, 0x140248393\nlea     r8, [rsp+120h+var_E0]                                          ; +0xd9, 0x140248399\nmovss   xmm1, [rbp+57h+var_44]                                         ; +0xde, 0x14024839e\nlea     rdx, [rsp+120h+var_F0]                                         ; +0xe3, 0x1402483a3\nlea     rcx, [rsp+120h+var_100]                                        ; +0xe8, 0x1402483a8\nmovss   [rbp+57h+var_D4], xmm1                                         ; +0xed, 0x1402483ad\nmov     [rbp+57h+arg_1A], bl                                           ; +0xf2, 0x1402483b2\nmov     [rbp+57h+arg_0], bl                                            ; +0xf8, 0x1402483b8\nmov     [rbp+57h+arg_18], di                                           ; +0xfb, 0x1402483bb\nmov     [rbp+57h+arg_8], di                                            ; +0xff, 0x1402483bf\nmov     dword ptr [rsp+120h+var_E0], 0                                 ; +0x103, 0x1402483c3\nmov     dword ptr [rsp+120h+var_E0+4], 0BE4CCCCDh                      ; +0x10b, 0x1402483cb\nmov     [rsp+120h+var_D8], 3E4CCCCDh                                   ; +0x113, 0x1402483d3\ncall    GameToolbox__transformColor                                    ; +0x11b, 0x1402483db\nmovzx   eax, [rsp+120h+var_100]                                        ; +0x120, 0x1402483e0\nmov     [rbp+57h+var_D0], ax                                           ; +0x125, 0x1402483e5\nmovzx   eax, [rsp+120h+var_FE]                                         ; +0x129, 0x1402483e9\nmov     [rbp+57h+var_CE], al                                           ; +0x12e, 0x1402483ee\ntest    r12b, r12b                                                     ; +0x131, 0x1402483f1\njnz     short loc_14024840C                                            ; +0x134, 0x1402483f4\ncmp     byte ptr [rbp+57h+arg_10+1], r12b                              ; +0x136, 0x1402483f6\njnz     short loc_14024840C                                            ; +0x13a, 0x1402483fa\ntest    r15b, r15b                                                     ; +0x13c, 0x1402483fc\njnz     short loc_14024840C                                            ; +0x13f, 0x1402483ff\nmov     [rbp+57h+arg_10], r12w                                         ; +0x141, 0x140248401\nmov     [rbp+57h+arg_12], r15b                                         ; +0x146, 0x140248406\njmp     short loc_140248458                                            ; +0x14a, 0x14024840a\nmov     word ptr [rbp+57h+var_44], 101h                                ; +0x14c, 0x14024840c\nlea     r8, [rsp+120h+var_E0]                                          ; +0x152, 0x140248412\nmovss   xmm0, [rbp+57h+var_44]                                         ; +0x157, 0x140248417\nlea     rdx, [rbp+57h+arg_10]                                          ; +0x15c, 0x14024841c\nlea     rcx, [rsp+120h+var_100]                                        ; +0x160, 0x140248420\nmovss   [rbp+57h+var_D4], xmm0                                         ; +0x165, 0x140248425\nmov     dword ptr [rsp+120h+var_E0], 0                                 ; +0x16a, 0x14024842a\nmov     dword ptr [rsp+120h+var_E0+4], 0BE4CCCCDh                      ; +0x172, 0x140248432\nmov     [rsp+120h+var_D8], 3E4CCCCDh                                   ; +0x17a, 0x14024843a\ncall    GameToolbox__transformColor                                    ; +0x182, 0x140248442\nmovzx   eax, [rsp+120h+var_100]                                        ; +0x187, 0x140248447\nmov     [rbp+57h+arg_10], ax                                           ; +0x18c, 0x14024844c\nmovzx   eax, [rsp+120h+var_FE]                                         ; +0x190, 0x140248450\nmov     [rbp+57h+arg_12], al                                           ; +0x195, 0x140248455\nlea     r13, [rbp+57h+arg_10]                                          ; +0x198, 0x140248458\ntest    dil, dil                                                       ; +0x19c, 0x14024845c\njnz     short loc_14024847A                                            ; +0x19f, 0x14024845f\ncmp     byte ptr [rbp+57h+arg_18+1], dil                               ; +0x1a1, 0x140248461\njnz     short loc_14024847A                                            ; +0x1a8, 0x140248468\ntest    bl, bl                                                         ; +0x1aa, 0x14024846a\njnz     short loc_14024847A                                            ; +0x1ac, 0x14024846c\nmov     [rbp+57h+arg_18], di                                           ; +0x1ae, 0x14024846e\nmov     [rbp+57h+arg_1A], bl                                           ; +0x1b2, 0x140248472\njmp     short loc_1402484C9                                            ; +0x1b8, 0x140248478\nmov     word ptr [rbp+57h+var_44], 101h                                ; +0x1ba, 0x14024847a\nlea     r8, [rsp+120h+var_E0]                                          ; +0x1c0, 0x140248480\nmovss   xmm0, [rbp+57h+var_44]                                         ; +0x1c5, 0x140248485\nlea     rdx, [rbp+57h+arg_18]                                          ; +0x1ca, 0x14024848a\nlea     rcx, [rsp+120h+var_100]                                        ; +0x1ce, 0x14024848e\nmovss   [rbp+57h+var_D4], xmm0                                         ; +0x1d3, 0x140248493\nmov     dword ptr [rsp+120h+var_E0], 0                                 ; +0x1d8, 0x140248498\nmov     dword ptr [rsp+120h+var_E0+4], 0BE4CCCCDh                      ; +0x1e0, 0x1402484a0\nmov     [rsp+120h+var_D8], 3E4CCCCDh                                   ; +0x1e8, 0x1402484a8\ncall    GameToolbox__transformColor                                    ; +0x1f0, 0x1402484b0\nmovzx   eax, [rsp+120h+var_100]                                        ; +0x1f5, 0x1402484b5\nmov     [rbp+57h+arg_18], ax                                           ; +0x1fa, 0x1402484ba\nmovzx   eax, [rsp+120h+var_FE]                                         ; +0x1fe, 0x1402484be\nmov     [rbp+57h+arg_1A], al                                           ; +0x203, 0x1402484c3\nmov     rcx, [r14+1000h]                                               ; +0x209, 0x1402484c9\nlea     rax, [rbp+57h+arg_18]                                          ; +0x210, 0x1402484d0\nadd     rcx, 140h                                                      ; +0x214, 0x1402484d4\nmov     [rsp+120h+var_E0], rax                                         ; +0x21b, 0x1402484db\nlea     rdx, [rbp+57h+var_D0]                                          ; +0x220, 0x1402484e0\nmov     rax, [rcx]                                                     ; +0x224, 0x1402484e4\ncall    qword ptr [rax]                                                ; +0x227, 0x1402484e7\nmovzx   eax, word ptr [r13+0]                                          ; +0x229, 0x1402484e9\nmov     [rsp+120h+var_100], ax                                         ; +0x22e, 0x1402484ee\nmovzx   eax, byte ptr [r13+2]                                          ; +0x233, 0x1402484f3\nmov     [rsp+120h+var_FE], al                                          ; +0x238, 0x1402484f8\nmov     rax, [r14+1010h]                                               ; +0x23c, 0x1402484fc\nmov     rcx, [rax+198h]                                                ; +0x243, 0x140248503\nmov     rax, [rcx]                                                     ; +0x24a, 0x14024850a\ncall    qword ptr [rax+1D0h]                                           ; +0x24d, 0x14024850d\nxor     ebx, ebx                                                       ; +0x253, 0x140248513\nmov     rsi, rax                                                       ; +0x255, 0x140248515\ntest    rax, rax                                                       ; +0x258, 0x140248518\njz      short loc_14024855B                                            ; +0x25b, 0x14024851b\nmov     rcx, rax                                                       ; +0x25d, 0x14024851d\nmov     edi, ebx                                                       ; +0x260, 0x140248520\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x262, 0x140248522\ntest    eax, eax                                                       ; +0x268, 0x140248528\njz      short loc_14024855B                                            ; +0x26a, 0x14024852a\nnop     dword ptr [rax+00h]                                            ; +0x26c, 0x14024852c\nmov     edx, edi                                                       ; +0x270, 0x140248530\nmov     rcx, rsi                                                       ; +0x272, 0x140248532\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x275, 0x140248535\nlea     rdx, [rsp+120h+var_100]                                        ; +0x27b, 0x14024853b\nlea     rcx, [rax+140h]                                                ; +0x280, 0x140248540\nmov     rax, [rcx]                                                     ; +0x287, 0x140248547\ncall    qword ptr [rax]                                                ; +0x28a, 0x14024854a\nmov     rcx, rsi                                                       ; +0x28c, 0x14024854c\ninc     edi                                                            ; +0x28f, 0x14024854f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x291, 0x140248551\ncmp     edi, eax                                                       ; +0x297, 0x140248557\njb      short loc_140248530                                            ; +0x299, 0x140248559\nmovzx   eax, word ptr [r13+0]                                          ; +0x29b, 0x14024855b\nmov     [rbp+57h+var_C0], ax                                           ; +0x2a0, 0x140248560\nmovzx   eax, byte ptr [r13+2]                                          ; +0x2a4, 0x140248564\nmov     [rbp+57h+var_BE], al                                           ; +0x2a9, 0x140248569\nmov     rax, [r14+1018h]                                               ; +0x2ac, 0x14024856c\nmov     rcx, [rax+198h]                                                ; +0x2b3, 0x140248573\nmov     rax, [rcx]                                                     ; +0x2ba, 0x14024857a\ncall    qword ptr [rax+1D0h]                                           ; +0x2bd, 0x14024857d\nmov     rsi, rax                                                       ; +0x2c3, 0x140248583\ntest    rax, rax                                                       ; +0x2c6, 0x140248586\njz      short loc_1402485CA                                            ; +0x2c9, 0x140248589\nmov     rcx, rax                                                       ; +0x2cb, 0x14024858b\nmov     edi, ebx                                                       ; +0x2ce, 0x14024858e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2d0, 0x140248590\ntest    eax, eax                                                       ; +0x2d6, 0x140248596\njz      short loc_1402485CA                                            ; +0x2d8, 0x140248598\nnop     word ptr [rax+rax+00h]                                         ; +0x2da, 0x14024859a\nmov     edx, edi                                                       ; +0x2e0, 0x1402485a0\nmov     rcx, rsi                                                       ; +0x2e2, 0x1402485a2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x2e5, 0x1402485a5\nlea     rdx, [rbp+57h+var_C0]                                          ; +0x2eb, 0x1402485ab\nlea     rcx, [rax+140h]                                                ; +0x2ef, 0x1402485af\nmov     rax, [rcx]                                                     ; +0x2f6, 0x1402485b6\ncall    qword ptr [rax]                                                ; +0x2f9, 0x1402485b9\nmov     rcx, rsi                                                       ; +0x2fb, 0x1402485bb\ninc     edi                                                            ; +0x2fe, 0x1402485be\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x300, 0x1402485c0\ncmp     edi, eax                                                       ; +0x306, 0x1402485c6\njb      short loc_1402485A0                                            ; +0x308, 0x1402485c8\nmov     r13, [rsp+120h+var_E0]                                         ; +0x30a, 0x1402485ca\nmovzx   eax, word ptr [r13+0]                                          ; +0x30f, 0x1402485cf\nmov     [rbp+57h+var_B0], ax                                           ; +0x314, 0x1402485d4\nmovzx   eax, byte ptr [r13+2]                                          ; +0x318, 0x1402485d8\nmov     [rbp+57h+var_AE], al                                           ; +0x31d, 0x1402485dd\nmov     rax, [r14+1010h]                                               ; +0x320, 0x1402485e0\nmov     rcx, [rax+1A0h]                                                ; +0x327, 0x1402485e7\ntest    rcx, rcx                                                       ; +0x32e, 0x1402485ee\njz      short loc_14024863D                                            ; +0x331, 0x1402485f1\nmov     rax, [rcx]                                                     ; +0x333, 0x1402485f3\ncall    qword ptr [rax+1D0h]                                           ; +0x336, 0x1402485f6\nmov     rsi, rax                                                       ; +0x33c, 0x1402485fc\ntest    rax, rax                                                       ; +0x33f, 0x1402485ff\njz      short loc_14024863D                                            ; +0x342, 0x140248602\nmov     rcx, rax                                                       ; +0x344, 0x140248604\nmov     edi, ebx                                                       ; +0x347, 0x140248607\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x349, 0x140248609\ntest    eax, eax                                                       ; +0x34f, 0x14024860f\njz      short loc_14024863D                                            ; +0x351, 0x140248611\nmov     edx, edi                                                       ; +0x353, 0x140248613\nmov     rcx, rsi                                                       ; +0x355, 0x140248615\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x358, 0x140248618\nlea     rdx, [rbp+57h+var_B0]                                          ; +0x35e, 0x14024861e\nlea     rcx, [rax+140h]                                                ; +0x362, 0x140248622\nmov     rax, [rcx]                                                     ; +0x369, 0x140248629\ncall    qword ptr [rax]                                                ; +0x36c, 0x14024862c\nmov     rcx, rsi                                                       ; +0x36e, 0x14024862e\ninc     edi                                                            ; +0x371, 0x140248631\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x373, 0x140248633\ncmp     edi, eax                                                       ; +0x379, 0x140248639\njb      short loc_140248613                                            ; +0x37b, 0x14024863b\nmovzx   eax, word ptr [r13+0]                                          ; +0x37d, 0x14024863d\nmov     [rbp+57h+var_A0], ax                                           ; +0x382, 0x140248642\nmovzx   eax, byte ptr [r13+2]                                          ; +0x386, 0x140248646\nmov     [rbp+57h+var_9E], al                                           ; +0x38b, 0x14024864b\nmov     rax, [r14+1018h]                                               ; +0x38e, 0x14024864e\nmov     rcx, [rax+1A0h]                                                ; +0x395, 0x140248655\ntest    rcx, rcx                                                       ; +0x39c, 0x14024865c\njz      short loc_1402486AB                                            ; +0x39f, 0x14024865f\nmov     rax, [rcx]                                                     ; +0x3a1, 0x140248661\ncall    qword ptr [rax+1D0h]                                           ; +0x3a4, 0x140248664\nmov     rsi, rax                                                       ; +0x3aa, 0x14024866a\ntest    rax, rax                                                       ; +0x3ad, 0x14024866d\njz      short loc_1402486AB                                            ; +0x3b0, 0x140248670\nmov     rcx, rax                                                       ; +0x3b2, 0x140248672\nmov     edi, ebx                                                       ; +0x3b5, 0x140248675\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3b7, 0x140248677\ntest    eax, eax                                                       ; +0x3bd, 0x14024867d\njz      short loc_1402486AB                                            ; +0x3bf, 0x14024867f\nmov     edx, edi                                                       ; +0x3c1, 0x140248681\nmov     rcx, rsi                                                       ; +0x3c3, 0x140248683\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c6, 0x140248686\nlea     rdx, [rbp+57h+var_A0]                                          ; +0x3cc, 0x14024868c\nlea     rcx, [rax+140h]                                                ; +0x3d0, 0x140248690\nmov     rax, [rcx]                                                     ; +0x3d7, 0x140248697\ncall    qword ptr [rax]                                                ; +0x3da, 0x14024869a\nmov     rcx, rsi                                                       ; +0x3dc, 0x14024869c\ninc     edi                                                            ; +0x3df, 0x14024869f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3e1, 0x1402486a1\ncmp     edi, eax                                                       ; +0x3e7, 0x1402486a7\njb      short loc_140248681                                            ; +0x3e9, 0x1402486a9\nmov     rcx, r14                                                       ; +0x3eb, 0x1402486ab\ncall    cs:__imp_?visit@CCNode@cocos2d@@UEAAXXZ; cocos2d::CCNode::visit(void) ; +0x3ee, 0x1402486ae\nmov     rcx, [r14+1000h]                                               ; +0x3f4, 0x1402486b4\nlea     rdx, [rsp+120h+var_F0]                                         ; +0x3fb, 0x1402486bb\nadd     rcx, 140h                                                      ; +0x400, 0x1402486c0\nmov     rax, [rcx]                                                     ; +0x407, 0x1402486c7\ncall    qword ptr [rax]                                                ; +0x40a, 0x1402486ca\nmov     rax, [r14+1010h]                                               ; +0x40c, 0x1402486cc\nmov     [rbp+57h+var_90], r12w                                         ; +0x413, 0x1402486d3\nmov     [rbp+57h+var_8E], r15b                                         ; +0x418, 0x1402486d8\nmov     rcx, [rax+198h]                                                ; +0x41c, 0x1402486dc\nmov     rax, [rcx]                                                     ; +0x423, 0x1402486e3\ncall    qword ptr [rax+1D0h]                                           ; +0x426, 0x1402486e6\nmov     rsi, rax                                                       ; +0x42c, 0x1402486ec\ntest    rax, rax                                                       ; +0x42f, 0x1402486ef\njz      short loc_14024872D                                            ; +0x432, 0x1402486f2\nmov     rcx, rax                                                       ; +0x434, 0x1402486f4\nmov     edi, ebx                                                       ; +0x437, 0x1402486f7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x439, 0x1402486f9\ntest    eax, eax                                                       ; +0x43f, 0x1402486ff\njz      short loc_14024872D                                            ; +0x441, 0x140248701\nmov     edx, edi                                                       ; +0x443, 0x140248703\nmov     rcx, rsi                                                       ; +0x445, 0x140248705\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x448, 0x140248708\nlea     rdx, [rbp+57h+var_90]                                          ; +0x44e, 0x14024870e\nlea     rcx, [rax+140h]                                                ; +0x452, 0x140248712\nmov     rax, [rcx]                                                     ; +0x459, 0x140248719\ncall    qword ptr [rax]                                                ; +0x45c, 0x14024871c\nmov     rcx, rsi                                                       ; +0x45e, 0x14024871e\ninc     edi                                                            ; +0x461, 0x140248721\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x463, 0x140248723\ncmp     edi, eax                                                       ; +0x469, 0x140248729\njb      short loc_140248703                                            ; +0x46b, 0x14024872b\nmov     rax, [r14+1018h]                                               ; +0x46d, 0x14024872d\nmov     [rbp+57h+var_80], r12w                                         ; +0x474, 0x140248734\nmov     [rbp+57h+var_7E], r15b                                         ; +0x479, 0x140248739\nmov     rcx, [rax+198h]                                                ; +0x47d, 0x14024873d\nmov     rax, [rcx]                                                     ; +0x484, 0x140248744\ncall    qword ptr [rax+1D0h]                                           ; +0x487, 0x140248747\nmov     rsi, rax                                                       ; +0x48d, 0x14024874d\ntest    rax, rax                                                       ; +0x490, 0x140248750\njz      short loc_14024878E                                            ; +0x493, 0x140248753\nmov     rcx, rax                                                       ; +0x495, 0x140248755\nmov     edi, ebx                                                       ; +0x498, 0x140248758\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x49a, 0x14024875a\ntest    eax, eax                                                       ; +0x4a0, 0x140248760\njz      short loc_14024878E                                            ; +0x4a2, 0x140248762\nmov     edx, edi                                                       ; +0x4a4, 0x140248764\nmov     rcx, rsi                                                       ; +0x4a6, 0x140248766\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4a9, 0x140248769\nlea     rdx, [rbp+57h+var_80]                                          ; +0x4af, 0x14024876f\nlea     rcx, [rax+140h]                                                ; +0x4b3, 0x140248773\nmov     rax, [rcx]                                                     ; +0x4ba, 0x14024877a\ncall    qword ptr [rax]                                                ; +0x4bd, 0x14024877d\nmov     rcx, rsi                                                       ; +0x4bf, 0x14024877f\ninc     edi                                                            ; +0x4c2, 0x140248782\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4c4, 0x140248784\ncmp     edi, eax                                                       ; +0x4ca, 0x14024878a\njb      short loc_140248764                                            ; +0x4cc, 0x14024878c\nmov     rax, [r14+1010h]                                               ; +0x4ce, 0x14024878e\nmovzx   r12d, [rbp+57h+arg_8]                                          ; +0x4d5, 0x140248795\nmovzx   r15d, [rbp+57h+arg_0]                                          ; +0x4da, 0x14024879a\nmov     [rbp+57h+var_70], r12w                                         ; +0x4df, 0x14024879f\nmov     [rbp+57h+var_6E], r15b                                         ; +0x4e4, 0x1402487a4\nmov     rcx, [rax+1A0h]                                                ; +0x4e8, 0x1402487a8\ntest    rcx, rcx                                                       ; +0x4ef, 0x1402487af\njz      short loc_1402487FE                                            ; +0x4f2, 0x1402487b2\nmov     rax, [rcx]                                                     ; +0x4f4, 0x1402487b4\ncall    qword ptr [rax+1D0h]                                           ; +0x4f7, 0x1402487b7\nmov     rsi, rax                                                       ; +0x4fd, 0x1402487bd\ntest    rax, rax                                                       ; +0x500, 0x1402487c0\njz      short loc_1402487FE                                            ; +0x503, 0x1402487c3\nmov     rcx, rax                                                       ; +0x505, 0x1402487c5\nmov     edi, ebx                                                       ; +0x508, 0x1402487c8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x50a, 0x1402487ca\ntest    eax, eax                                                       ; +0x510, 0x1402487d0\njz      short loc_1402487FE                                            ; +0x512, 0x1402487d2\nmov     edx, edi                                                       ; +0x514, 0x1402487d4\nmov     rcx, rsi                                                       ; +0x516, 0x1402487d6\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x519, 0x1402487d9\nlea     rdx, [rbp+57h+var_70]                                          ; +0x51f, 0x1402487df\nlea     rcx, [rax+140h]                                                ; +0x523, 0x1402487e3\nmov     rax, [rcx]                                                     ; +0x52a, 0x1402487ea\ncall    qword ptr [rax]                                                ; +0x52d, 0x1402487ed\nmov     rcx, rsi                                                       ; +0x52f, 0x1402487ef\ninc     edi                                                            ; +0x532, 0x1402487f2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x534, 0x1402487f4\ncmp     edi, eax                                                       ; +0x53a, 0x1402487fa\njb      short loc_1402487D4                                            ; +0x53c, 0x1402487fc\nmov     rax, [r14+1018h]                                               ; +0x53e, 0x1402487fe\nmov     [rbp+57h+var_60], r12w                                         ; +0x545, 0x140248805\nmov     [rbp+57h+var_5E], r15b                                         ; +0x54a, 0x14024880a\nmov     rcx, [rax+1A0h]                                                ; +0x54e, 0x14024880e\ntest    rcx, rcx                                                       ; +0x555, 0x140248815\njz      short loc_14024886A                                            ; +0x558, 0x140248818\nmov     rax, [rcx]                                                     ; +0x55a, 0x14024881a\ncall    qword ptr [rax+1D0h]                                           ; +0x55d, 0x14024881d\nmov     rdi, rax                                                       ; +0x563, 0x140248823\ntest    rax, rax                                                       ; +0x566, 0x140248826\njz      short loc_14024886A                                            ; +0x569, 0x140248829\nmov     rcx, rax                                                       ; +0x56b, 0x14024882b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x56e, 0x14024882e\ntest    eax, eax                                                       ; +0x574, 0x140248834\njz      short loc_14024886A                                            ; +0x576, 0x140248836\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x578, 0x140248838\nmov     edx, ebx                                                       ; +0x580, 0x140248840\nmov     rcx, rdi                                                       ; +0x582, 0x140248842\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x585, 0x140248845\nlea     rdx, [rbp+57h+var_60]                                          ; +0x58b, 0x14024884b\nlea     rcx, [rax+140h]                                                ; +0x58f, 0x14024884f\nmov     rax, [rcx]                                                     ; +0x596, 0x140248856\ncall    qword ptr [rax]                                                ; +0x599, 0x140248859\nmov     rcx, rdi                                                       ; +0x59b, 0x14024885b\ninc     ebx                                                            ; +0x59e, 0x14024885e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5a0, 0x140248860\ncmp     ebx, eax                                                       ; +0x5a6, 0x140248866\njb      short loc_140248840                                            ; +0x5a8, 0x140248868\nadd     rsp, 0E8h                                                      ; +0x5aa, 0x14024886a\npop     r15                                                            ; +0x5b1, 0x140248871\npop     r14                                                            ; +0x5b3, 0x140248873\npop     r13                                                            ; +0x5b5, 0x140248875\npop     r12                                                            ; +0x5b7, 0x140248877\npop     rdi                                                            ; +0x5b9, 0x140248879\npop     rsi                                                            ; +0x5ba, 0x14024887a\npop     rbx                                                            ; +0x5bb, 0x14024887b\npop     rbp                                                            ; +0x5bc, 0x14024887c\nretn                                                                   ; +0x5bd, 0x14024887d", "xrefs": ["GJBaseGameLayer::visit @ 0x140247ff9", "<???> @ 0x1406ce784"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}