{"type": "func", "start": 4295148300, "end": 4295148432, "name": "GJGroundLayer::updateGround02Color", "pseudocode": "// \n// GJGroundLayer::updateGround02Color from 0x10002c30c to 0x10002c390 (132 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x1001ddef8\n// > GJBaseGameLayer::updateLevelColors @ 0x1001ddf04\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100209088\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100209094\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002090ec\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100209100\n// > LevelEditorLayer::updateEditorMode @ 0x100358f98\n// > MenuGameLayer::updateColors @ 0x10039b394\n// > LevelSelectLayer::scrollLayerMoved @ 0x100403654\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 __fastcall GJGroundLayer::updateGround02Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCSprite *m_ground2Sprite; // x0\n  __int64 v3; // x0\n  __int64 v4; // x19\n  __int64 v5; // x20\n  __int64 v6; // x0\n  cocos2d::ccColor3B v7; // [xsp+Ch] [xbp-14h] BYREF\n\n  v7 = a2;\n  m_ground2Sprite = a1->m_ground2Sprite;\n  if ( m_ground2Sprite )\n  {\n    v3 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_ground2Sprite->getChildren)(m_ground2Sprite);\n    if ( v3 )\n    {\n      v4 = v3;\n      if ( (unsigned int)sub_10024A36C(v3) )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = sub_10024A388(v4, v5);\n          (*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v6 + 944LL))(v6, &v7);\n          v5 = (unsigned int)(v5 + 1);\n        }\n        while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(v4) );\n      }\n    }\n  }\n}", "assembly": "; \n; GJGroundLayer::updateGround02Color from 0x10002c30c to 0x10002c390 (132 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x1001ddef8\n; > GJBaseGameLayer::updateLevelColors @ 0x1001ddf04\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100209088\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100209094\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002090ec\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100209100\n; > LevelEditorLayer::updateEditorMode @ 0x100358f98\n; > MenuGameLayer::updateColors @ 0x10039b394\n; > LevelSelectLayer::scrollLayerMoved @ 0x100403654\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10002c30c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002c310\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002c314\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002c318\nSTRH            W1, [SP,#0x20+var_14]                                  ; +0x10, 0x10002c31c\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x14, 0x10002c320\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x18, 0x10002c324\nLDR             X0, [X0,#0x1A0]                                        ; +0x1c, 0x10002c328\nCBZ             X0, loc_10002C380                                      ; +0x20, 0x10002c32c\nLDR             X8, [X0]                                               ; +0x24, 0x10002c330\nLDR             X8, [X8,#0x1D8]                                        ; +0x28, 0x10002c334\nBLR             X8                                                     ; +0x2c, 0x10002c338\nCBZ             X0, loc_10002C380                                      ; +0x30, 0x10002c33c\nMOV             X19, X0                                                ; +0x34, 0x10002c340\nBL              sub_10024A36C                                          ; +0x38, 0x10002c344\nCBZ             W0, loc_10002C380                                      ; +0x3c, 0x10002c348\nMOV             W20, #0                                                ; +0x40, 0x10002c34c\nMOV             X0, X19                                                ; +0x44, 0x10002c350\nMOV             X1, X20                                                ; +0x48, 0x10002c354\nBL              sub_10024A388                                          ; +0x4c, 0x10002c358\nLDR             X8, [X0]                                               ; +0x50, 0x10002c35c\nLDR             X8, [X8,#0x3B0]                                        ; +0x54, 0x10002c360\nADD             X1, SP, #0x20+var_14                                   ; +0x58, 0x10002c364\nBLR             X8                                                     ; +0x5c, 0x10002c368\nADD             W20, W20, #1                                           ; +0x60, 0x10002c36c\nMOV             X0, X19                                                ; +0x64, 0x10002c370\nBL              sub_10024A36C                                          ; +0x68, 0x10002c374\nCMP             W20, W0                                                ; +0x6c, 0x10002c378\nB.CC            loc_10002C350                                          ; +0x70, 0x10002c37c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x10002c380\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x10002c384\nADD             SP, SP, #0x30 ; '0'                                    ; +0x7c, 0x10002c388\nRET                                                                    ; +0x80, 0x10002c38c", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x1001ddef8", "GJBaseGameLayer::updateLevelColors @ 0x1001ddf04", "GJBaseGameLayer::visitWithColorFlash @ 0x100209088", "GJBaseGameLayer::visitWithColorFlash @ 0x100209094", "GJBaseGameLayer::visitWithColorFlash @ 0x1002090ec", "GJBaseGameLayer::visitWithColorFlash @ 0x100209100", "LevelEditorLayer::updateEditorMode @ 0x100358f98", "MenuGameLayer::updateColors @ 0x10039b394", "LevelSelectLayer::scrollLayerMoved @ 0x100403654"], "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"}