{"type": "func", "start": 4295162860, "end": 4295162992, "name": "GJGroundLayer::updateGround02Color", "pseudocode": "// \n// GJGroundLayer::updateGround02Color from 0x10002fbec to 0x10002fc70 (132 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x100278410\n// > GJBaseGameLayer::updateLevelColors @ 0x10027841c\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6168\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6174\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61cc\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61e0\n// > LevelEditorLayer::updateEditorMode @ 0x1003f8c34\n// > MenuGameLayer::updateColors @ 0x10044296c\n// > LevelSelectLayer::scrollLayerMoved @ 0x100484004\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::updateGround02Color(__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 = *(_QWORD *)(a1 + 416);\n  if ( result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 488LL))(result);\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  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::updateGround02Color from 0x10002fbec to 0x10002fc70 (132 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x100278410\n; > GJBaseGameLayer::updateLevelColors @ 0x10027841c\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6168\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6174\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61cc\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1002a61e0\n; > LevelEditorLayer::updateEditorMode @ 0x1003f8c34\n; > MenuGameLayer::updateColors @ 0x10044296c\n; > LevelSelectLayer::scrollLayerMoved @ 0x100484004\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, 0x10002fbec\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10002fbf0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10002fbf4\nADD             X29, SP, #0x20                                         ; +0xc, 0x10002fbf8\nSTRH            W1, [SP,#0x20+var_14]                                  ; +0x10, 0x10002fbfc\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x14, 0x10002fc00\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x18, 0x10002fc04\nLDR             X0, [X0,#0x1A0]                                        ; +0x1c, 0x10002fc08\nCBZ             X0, loc_10002FC60                                      ; +0x20, 0x10002fc0c\nLDR             X8, [X0]                                               ; +0x24, 0x10002fc10\nLDR             X8, [X8,#0x1E8]                                        ; +0x28, 0x10002fc14\nBLR             X8                                                     ; +0x2c, 0x10002fc18\nCBZ             X0, loc_10002FC60                                      ; +0x30, 0x10002fc1c\nMOV             X19, X0                                                ; +0x34, 0x10002fc20\nBL              sub_1002E757C                                          ; +0x38, 0x10002fc24\nCBZ             W0, loc_10002FC60                                      ; +0x3c, 0x10002fc28\nMOV             W20, #0                                                ; +0x40, 0x10002fc2c\nMOV             X0, X19                                                ; +0x44, 0x10002fc30\nMOV             X1, X20                                                ; +0x48, 0x10002fc34\nBL              sub_1002E75A0                                          ; +0x4c, 0x10002fc38\nLDR             X8, [X0]                                               ; +0x50, 0x10002fc3c\nLDR             X8, [X8,#0x3C0]                                        ; +0x54, 0x10002fc40\nADD             X1, SP, #0x20+var_14                                   ; +0x58, 0x10002fc44\nBLR             X8                                                     ; +0x5c, 0x10002fc48\nADD             W20, W20, #1                                           ; +0x60, 0x10002fc4c\nMOV             X0, X19                                                ; +0x64, 0x10002fc50\nBL              sub_1002E757C                                          ; +0x68, 0x10002fc54\nCMP             W20, W0                                                ; +0x6c, 0x10002fc58\nB.CC            loc_10002FC30                                          ; +0x70, 0x10002fc5c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x10002fc60\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x10002fc64\nADD             SP, SP, #0x30 ; '0'                                    ; +0x7c, 0x10002fc68\nRET                                                                    ; +0x80, 0x10002fc6c", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x100278410", "GJBaseGameLayer::updateLevelColors @ 0x10027841c", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a6168", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a6174", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a61cc", "GJBaseGameLayer::visitWithColorFlash @ 0x1002a61e0", "LevelEditorLayer::updateEditorMode @ 0x1003f8c34", "MenuGameLayer::updateColors @ 0x10044296c", "LevelSelectLayer::scrollLayerMoved @ 0x100484004"], "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"}