{"type": "func", "start": 8305360, "end": 8305484, "name": "GJGroundLayer::updateGround02Color", "pseudocode": "// \n// GJGroundLayer::updateGround02Color from 0x7ebad0 to 0x7ebb4c (124 bytes)\n// \n// 10 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x662574\n// > MenuGameLayer::updateColors @ 0x6c8fe8\n// > LevelSelectLayer::scrollLayerMoved @ 0x79ce40\n// > GJBaseGameLayer::updateLevelColors @ 0x857e0c\n// > GJBaseGameLayer::updateLevelColors @ 0x857e18\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86abdc\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86abe8\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac2c\n// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac38\n// > <???> @ 0xc4bf0\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::updateGround02Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCSprite *m_ground2Sprite; // x0\n  unsigned int v3; // w19\n  cocos2d::CCArray *v4; // x20\n  __int64 v5; // x0\n  bool v6; // cf\n  unsigned int v7; // w1\n  __int64 v8; // [xsp+38h] [xbp+38h] BYREF\n\n  v8 = *(_QWORD *)&a2.r;\n  m_ground2Sprite = a1->m_ground2Sprite;\n  if ( m_ground2Sprite )\n  {\n    v3 = 0;\n    v4 = m_ground2Sprite->getChildren(m_ground2Sprite);\n    if ( v4 )\n    {\n      while ( 1 )\n      {\n        v6 = v3 >= (unsigned int)cocos2d::CCArray::count(v4);\n        v7 = v3++;\n        if ( v6 )\n          break;\n        v5 = cocos2d::CCArray::objectAtIndex(v4, v7);\n        (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 944LL))(v5, &v8);\n      }\n    }\n  }\n}", "assembly": "; \n; GJGroundLayer::updateGround02Color from 0x7ebad0 to 0x7ebb4c (124 bytes)\n; \n; 10 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x662574\n; > MenuGameLayer::updateColors @ 0x6c8fe8\n; > LevelSelectLayer::scrollLayerMoved @ 0x79ce40\n; > GJBaseGameLayer::updateLevelColors @ 0x857e0c\n; > GJBaseGameLayer::updateLevelColors @ 0x857e18\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86abdc\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86abe8\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86ac2c\n; > GJBaseGameLayer::visitWithColorFlash @ 0x86ac38\n; > <???> @ 0xc4bf0\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, 0x7ebad0\nMOV             X29, SP                                                ; +0x4, 0x7ebad4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7ebad8\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0x7ebadc\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x10, 0x7ebae0\nLDR             X0, [X0,#0x1A0]                                        ; +0x14, 0x7ebae4\nCBZ             X0, loc_7EBB3C                                         ; +0x18, 0x7ebae8\nLDR             X1, [X0]                                               ; +0x1c, 0x7ebaec\nMOV             W19, #0                                                ; +0x20, 0x7ebaf0\nADD             X21, X29, #0x40+var_8                                  ; +0x24, 0x7ebaf4\nLDR             X1, [X1,#0x1D8]                                        ; +0x28, 0x7ebaf8\nBLR             X1                                                     ; +0x2c, 0x7ebafc\nMOV             X20, X0                                                ; +0x30, 0x7ebb00\nCBNZ            X0, loc_7EBB20                                         ; +0x34, 0x7ebb04\nB               loc_7EBB3C                                             ; +0x38, 0x7ebb08\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x7ebb0c\nLDR             X2, [X0]                                               ; +0x40, 0x7ebb10\nMOV             X1, X21                                                ; +0x44, 0x7ebb14\nLDR             X2, [X2,#0x3B0]                                        ; +0x48, 0x7ebb18\nBLR             X2                                                     ; +0x4c, 0x7ebb1c\nMOV             X0, X20; this                                          ; +0x50, 0x7ebb20\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x54, 0x7ebb24\nCMP             W19, W0                                                ; +0x58, 0x7ebb28\nMOV             W1, W19; unsigned int                                  ; +0x5c, 0x7ebb2c\nMOV             X0, X20; this                                          ; +0x60, 0x7ebb30\nADD             W19, W19, #1                                           ; +0x64, 0x7ebb34\nB.CC            loc_7EBB0C                                             ; +0x68, 0x7ebb38\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x6c, 0x7ebb3c\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x70, 0x7ebb40\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x7ebb44\nRET                                                                    ; +0x78, 0x7ebb48", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x662574", "MenuGameLayer::updateColors @ 0x6c8fe8", "LevelSelectLayer::scrollLayerMoved @ 0x79ce40", "GJBaseGameLayer::updateLevelColors @ 0x857e0c", "GJBaseGameLayer::updateLevelColors @ 0x857e18", "GJBaseGameLayer::visitWithColorFlash @ 0x86abdc", "GJBaseGameLayer::visitWithColorFlash @ 0x86abe8", "GJBaseGameLayer::visitWithColorFlash @ 0x86ac2c", "GJBaseGameLayer::visitWithColorFlash @ 0x86ac38", "<???> @ 0xc4bf0"], "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"}