{"type": "func", "start": 8305236, "end": 8305360, "name": "GJGroundLayer::updateGround01Color", "pseudocode": "// \n// GJGroundLayer::updateGround01Color from 0x7eba54 to 0x7ebad0 (124 bytes)\n// \n// 12 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x662568\n// > MenuGameLayer::updateColors @ 0x6c8fb8\n// > LevelSelectLayer::scrollLayerMoved @ 0x79cdf4\n// > GJGroundLayer::init @ 0x7ec158\n// > GJGroundLayer::init @ 0x7ec228\n// > GJBaseGameLayer::updateLevelColors @ 0x857dc4\n// > GJBaseGameLayer::updateLevelColors @ 0x857dd0\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86abc4\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86abd0\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac14\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac20\n// > <???> @ 0xac3e0\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\n// local variable allocation has failed, the output may be wrong!\nvoid GJGroundLayer::updateGround01Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)\n{\n  unsigned int v2; // w19\n  cocos2d::CCArray *v3; // x20\n  __int64 v4; // x0\n  bool v5; // cf\n  unsigned int v6; // w1\n  __int64 v7; // [xsp+38h] [xbp+38h] BYREF\n\n  v2 = 0;\n  v7 = *(_QWORD *)&a2.r;\n  v3 = a1->m_ground1Sprite->getChildren(a1->m_ground1Sprite);\n  if ( v3 )\n  {\n    while ( 1 )\n    {\n      v5 = v2 >= (unsigned int)cocos2d::CCArray::count(v3);\n      v6 = v2++;\n      if ( v5 )\n        break;\n      v4 = cocos2d::CCArray::objectAtIndex(v3, v6);\n      (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 944LL))(v4, &v7);\n    }\n  }\n}", "assembly": "; \n; GJGroundLayer::updateGround01Color from 0x7eba54 to 0x7ebad0 (124 bytes)\n; \n; 12 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x662568\n; > MenuGameLayer::updateColors @ 0x6c8fb8\n; > LevelSelectLayer::scrollLayerMoved @ 0x79cdf4\n; > GJGroundLayer::init @ 0x7ec158\n; > GJGroundLayer::init @ 0x7ec228\n; > GJBaseGameLayer::updateLevelColors @ 0x857dc4\n; > GJBaseGameLayer::updateLevelColors @ 0x857dd0\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86abc4\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86abd0\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86ac14\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86ac20\n; > <???> @ 0xac3e0\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7eba54\nMOV             X29, SP                                                ; +0x4, 0x7eba58\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7eba5c\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0x7eba60\nMOV             W19, #0                                                ; +0x10, 0x7eba64\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x14, 0x7eba68\nADD             X21, X29, #0x40+var_8                                  ; +0x18, 0x7eba6c\nLDR             X1, [X0,#0x198]                                        ; +0x1c, 0x7eba70\nMOV             X0, X1                                                 ; +0x20, 0x7eba74\nLDR             X1, [X1]                                               ; +0x24, 0x7eba78\nLDR             X1, [X1,#0x1D8]                                        ; +0x28, 0x7eba7c\nBLR             X1                                                     ; +0x2c, 0x7eba80\nMOV             X20, X0                                                ; +0x30, 0x7eba84\nCBNZ            X0, loc_7EBAA4                                         ; +0x34, 0x7eba88\nB               loc_7EBAC0                                             ; +0x38, 0x7eba8c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x7eba90\nLDR             X2, [X0]                                               ; +0x40, 0x7eba94\nMOV             X1, X21                                                ; +0x44, 0x7eba98\nLDR             X2, [X2,#0x3B0]                                        ; +0x48, 0x7eba9c\nBLR             X2                                                     ; +0x4c, 0x7ebaa0\nMOV             X0, X20; this                                          ; +0x50, 0x7ebaa4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x54, 0x7ebaa8\nCMP             W19, W0                                                ; +0x58, 0x7ebaac\nMOV             W1, W19; unsigned int                                  ; +0x5c, 0x7ebab0\nMOV             X0, X20; this                                          ; +0x60, 0x7ebab4\nADD             W19, W19, #1                                           ; +0x64, 0x7ebab8\nB.CC            loc_7EBA90                                             ; +0x68, 0x7ebabc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x6c, 0x7ebac0\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x70, 0x7ebac4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x7ebac8\nRET                                                                    ; +0x78, 0x7ebacc", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x662568", "MenuGameLayer::updateColors @ 0x6c8fb8", "LevelSelectLayer::scrollLayerMoved @ 0x79cdf4", "GJGroundLayer::init @ 0x7ec158", "GJGroundLayer::init @ 0x7ec228", "GJBaseGameLayer::updateLevelColors @ 0x857dc4", "GJBaseGameLayer::updateLevelColors @ 0x857dd0", "GJBaseGameLayer::visitWithColorFlash @ 0x86abc4", "GJBaseGameLayer::visitWithColorFlash @ 0x86abd0", "GJBaseGameLayer::visitWithColorFlash @ 0x86ac14", "GJBaseGameLayer::visitWithColorFlash @ 0x86ac20", "<???> @ 0xac3e0"], "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"}