{"type": "func", "start": 4295162560, "end": 4295162688, "name": "GJGroundLayer::updateGround01Color", "pseudocode": "// \n// GJGroundLayer::updateGround01Color from 0x10002fac0 to 0x10002fb40 (128 bytes)\n// \n// 11 xrefs:\n// > GJGroundLayer::init @ 0x10002f64c\n// > GJGroundLayer::init @ 0x10002f724\n// > GJBaseGameLayer::updateLevelColors @ 0x1002783dc\n// > GJBaseGameLayer::updateLevelColors @ 0x1002783e8\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6150\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a615c\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61a4\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61b8\n// > LevelEditorLayer::updateEditorMode @ 0x1003f8c24\n// > MenuGameLayer::updateColors @ 0x100442938\n// > LevelSelectLayer::scrollLayerMoved @ 0x100483fb8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:57:30 +0000\n// \n\n__int64 __fastcall GJGroundLayer::updateGround01Color(__int64 a1, int a2)\n{\n  __int64 result; // x0\n  __int64 v3; // x19\n  __int64 v4; // x20\n  __int64 v5; // x0\n  __int16 v6; // [xsp+Ch] [xbp-14h] BYREF\n  char v7; // [xsp+Eh] [xbp-12h]\n\n  v6 = a2;\n  v7 = BYTE2(a2);\n  result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 488LL))(*(_QWORD *)(a1 + 408));\n  if ( result )\n  {\n    v3 = result;\n    result = sub_1002E757C(result);\n    if ( (_DWORD)result )\n    {\n      v4 = 0;\n      do\n      {\n        v5 = sub_1002E75A0(v3, v4);\n        (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 960LL))(v5, &v6);\n        v4 = (unsigned int)(v4 + 1);\n        result = sub_1002E757C(v3);\n      }\n      while ( (unsigned int)v4 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::updateGround01Color from 0x10002fac0 to 0x10002fb40 (128 bytes)\n; \n; 11 xrefs:\n; > GJGroundLayer::init @ 0x10002f64c\n; > GJGroundLayer::init @ 0x10002f724\n; > GJBaseGameLayer::updateLevelColors @ 0x1002783dc\n; > GJBaseGameLayer::updateLevelColors @ 0x1002783e8\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6150\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a615c\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61a4\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61b8\n; > LevelEditorLayer::updateEditorMode @ 0x1003f8c24\n; > MenuGameLayer::updateColors @ 0x100442938\n; > LevelSelectLayer::scrollLayerMoved @ 0x100483fb8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:57:30 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x10002fac0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002fac4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002fac8\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002facc\nSTRH            W1, [SP,#0x20+var_14]                                  ; +0x10, 0x10002fad0\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x14, 0x10002fad4\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x18, 0x10002fad8\nLDR             X0, [X0,#0x198]                                        ; +0x1c, 0x10002fadc\nLDR             X8, [X0]                                               ; +0x20, 0x10002fae0\nLDR             X8, [X8,#0x1E8]                                        ; +0x24, 0x10002fae4\nBLR             X8                                                     ; +0x28, 0x10002fae8\nCBZ             X0, loc_10002FB30                                      ; +0x2c, 0x10002faec\nMOV             X19, X0                                                ; +0x30, 0x10002faf0\nBL              sub_1002E757C                                          ; +0x34, 0x10002faf4\nCBZ             W0, loc_10002FB30                                      ; +0x38, 0x10002faf8\nMOV             W20, #0                                                ; +0x3c, 0x10002fafc\nMOV             X0, X19                                                ; +0x40, 0x10002fb00\nMOV             X1, X20                                                ; +0x44, 0x10002fb04\nBL              sub_1002E75A0                                          ; +0x48, 0x10002fb08\nLDR             X8, [X0]                                               ; +0x4c, 0x10002fb0c\nLDR             X8, [X8,#0x3C0]                                        ; +0x50, 0x10002fb10\nADD             X1, SP, #0x20+var_14                                   ; +0x54, 0x10002fb14\nBLR             X8                                                     ; +0x58, 0x10002fb18\nADD             W20, W20, #1                                           ; +0x5c, 0x10002fb1c\nMOV             X0, X19                                                ; +0x60, 0x10002fb20\nBL              sub_1002E757C                                          ; +0x64, 0x10002fb24\nCMP             W20, W0                                                ; +0x68, 0x10002fb28\nB.CC            loc_10002FB00                                          ; +0x6c, 0x10002fb2c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x10002fb30\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x10002fb34\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x10002fb38\nRET                                                                    ; +0x7c, 0x10002fb3c", "xrefs": ["GJGroundLayer::init @ 0x10002f64c", "GJGroundLayer::init @ 0x10002f724", "GJBaseGameLayer::updateLevelColors @ 0x1002783dc", "GJBaseGameLayer::updateLevelColors @ 0x1002783e8", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a6150", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a615c", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a61a4", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a61b8", "LevelEditorLayer::updateEditorMode @ 0x1003f8c24", "MenuGameLayer::updateColors @ 0x100442938", "LevelSelectLayer::scrollLayerMoved @ 0x100483fb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}