{"type": "func", "start": 4295148000, "end": 4295148128, "name": "GJGroundLayer::updateGround01Color", "pseudocode": "// \n// GJGroundLayer::updateGround01Color from 0x10002c1e0 to 0x10002c260 (128 bytes)\n// \n// 11 xrefs:\n// > GJGroundLayer::init @ 0x10002bd6c\n// > GJGroundLayer::init @ 0x10002be44\n// > GJBaseGameLayer::updateLevelColors @ 0x1001ddec4\n// > GJBaseGameLayer::updateLevelColors @ 0x1001dded0\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100209070\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10020907c\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002090c4\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002090d8\n// > LevelEditorLayer::updateEditorMode @ 0x100358f88\n// > MenuGameLayer::updateColors @ 0x10039b360\n// > LevelSelectLayer::scrollLayerMoved @ 0x100403608\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::updateGround01Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)\n{\n  __int64 v2; // x0\n  __int64 v3; // x19\n  __int64 v4; // x20\n  __int64 v5; // x0\n  cocos2d::ccColor3B v6; // [xsp+Ch] [xbp-14h] BYREF\n\n  v6 = a2;\n  v2 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_ground1Sprite->getChildren)(a1->m_ground1Sprite);\n  if ( v2 )\n  {\n    v3 = v2;\n    if ( (unsigned int)sub_10024A36C(v2) )\n    {\n      v4 = 0;\n      do\n      {\n        v5 = sub_10024A388(v3, v4);\n        (*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v5 + 944LL))(v5, &v6);\n        v4 = (unsigned int)(v4 + 1);\n      }\n      while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(v3) );\n    }\n  }\n}", "assembly": "; \n; GJGroundLayer::updateGround01Color from 0x10002c1e0 to 0x10002c260 (128 bytes)\n; \n; 11 xrefs:\n; > GJGroundLayer::init @ 0x10002bd6c\n; > GJGroundLayer::init @ 0x10002be44\n; > GJBaseGameLayer::updateLevelColors @ 0x1001ddec4\n; > GJBaseGameLayer::updateLevelColors @ 0x1001dded0\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100209070\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10020907c\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002090c4\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002090d8\n; > LevelEditorLayer::updateEditorMode @ 0x100358f88\n; > MenuGameLayer::updateColors @ 0x10039b360\n; > LevelSelectLayer::scrollLayerMoved @ 0x100403608\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, 0x10002c1e0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002c1e4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002c1e8\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002c1ec\nSTRH            W1, [SP,#0x20+var_14]                                  ; +0x10, 0x10002c1f0\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x14, 0x10002c1f4\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x18, 0x10002c1f8\nLDR             X0, [X0,#0x198]                                        ; +0x1c, 0x10002c1fc\nLDR             X8, [X0]                                               ; +0x20, 0x10002c200\nLDR             X8, [X8,#0x1D8]                                        ; +0x24, 0x10002c204\nBLR             X8                                                     ; +0x28, 0x10002c208\nCBZ             X0, loc_10002C250                                      ; +0x2c, 0x10002c20c\nMOV             X19, X0                                                ; +0x30, 0x10002c210\nBL              sub_10024A36C                                          ; +0x34, 0x10002c214\nCBZ             W0, loc_10002C250                                      ; +0x38, 0x10002c218\nMOV             W20, #0                                                ; +0x3c, 0x10002c21c\nMOV             X0, X19                                                ; +0x40, 0x10002c220\nMOV             X1, X20                                                ; +0x44, 0x10002c224\nBL              sub_10024A388                                          ; +0x48, 0x10002c228\nLDR             X8, [X0]                                               ; +0x4c, 0x10002c22c\nLDR             X8, [X8,#0x3B0]                                        ; +0x50, 0x10002c230\nADD             X1, SP, #0x20+var_14                                   ; +0x54, 0x10002c234\nBLR             X8                                                     ; +0x58, 0x10002c238\nADD             W20, W20, #1                                           ; +0x5c, 0x10002c23c\nMOV             X0, X19                                                ; +0x60, 0x10002c240\nBL              sub_10024A36C                                          ; +0x64, 0x10002c244\nCMP             W20, W0                                                ; +0x68, 0x10002c248\nB.CC            loc_10002C220                                          ; +0x6c, 0x10002c24c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x10002c250\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x10002c254\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x10002c258\nRET                                                                    ; +0x7c, 0x10002c25c", "xrefs": ["GJGroundLayer::init @ 0x10002bd6c", "GJGroundLayer::init @ 0x10002be44", "GJBaseGameLayer::updateLevelColors @ 0x1001ddec4", "GJBaseGameLayer::updateLevelColors @ 0x1001dded0", "GJBaseGameLayer::visitWithColorFlash @ 0x100209070", "GJBaseGameLayer::visitWithColorFlash @ 0x10020907c", "GJBaseGameLayer::visitWithColorFlash @ 0x1002090c4", "GJBaseGameLayer::visitWithColorFlash @ 0x1002090d8", "LevelEditorLayer::updateEditorMode @ 0x100358f88", "MenuGameLayer::updateColors @ 0x10039b360", "LevelSelectLayer::scrollLayerMoved @ 0x100403608"], "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"}