{"type": "func", "start": 4295329600, "end": 4295329748, "name": "CustomizeObjectLayer::onNextColorChannel", "pseudocode": "// \n// CustomizeObjectLayer::onNextColorChannel from 0x100058740 to 0x1000587d4 (148 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x1000577a8\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:46 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::onNextColorChannel(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 NextColorChannel; // x0\n  __int64 v4; // x20\n  __int64 v5; // x21\n  __int64 ButtonByTag; // x0\n\n  v2 = GameManager::sharedState(a1);\n  NextColorChannel = LevelEditorLayer::getNextColorChannel(*(_QWORD *)(v2 + 552));\n  v4 = NextColorChannel;\n  v5 = NextColorChannel;\n  if ( (unsigned int)(NextColorChannel - 10) <= 0x3DD )\n  {\n    *(_DWORD *)(a1 + 748) = NextColorChannel;\n    *(_BYTE *)(a1 + 922) = 1;\n    CustomizeObjectLayer::updateCustomColorLabels(a1);\n    *(_BYTE *)(a1 + 922) = 0;\n    v5 = 1008;\n  }\n  CustomizeObjectLayer::updateSelected(a1, v4);\n  ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v5);\n  CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  return CustomizeObjectLayer::updateChannelLabel(a1, v4);\n}", "assembly": "; \n; CustomizeObjectLayer::onNextColorChannel from 0x100058740 to 0x1000587d4 (148 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x1000577a8\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:46 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100058740\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100058744\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100058748\nADD             X29, SP, #0x20                                         ; +0xc, 0x10005874c\nMOV             X19, X0                                                ; +0x10, 0x100058750\nBL              GameManager__sharedState                               ; +0x14, 0x100058754\nLDR             X0, [X0,#0x228]                                        ; +0x18, 0x100058758\nBL              LevelEditorLayer__getNextColorChannel                  ; +0x1c, 0x10005875c\nMOV             X20, X0                                                ; +0x20, 0x100058760\nSUB             W8, W0, #0xA                                           ; +0x24, 0x100058764\nMOV             X21, X0                                                ; +0x28, 0x100058768\nCMP             W8, #0x3DD                                             ; +0x2c, 0x10005876c\nB.HI            loc_100058790                                          ; +0x30, 0x100058770\nSTR             W20, [X19,#0x2EC]                                      ; +0x34, 0x100058774\nMOV             W8, #1                                                 ; +0x38, 0x100058778\nSTRB            W8, [X19,#0x39A]                                       ; +0x3c, 0x10005877c\nMOV             X0, X19                                                ; +0x40, 0x100058780\nBL              CustomizeObjectLayer__updateCustomColorLabels          ; +0x44, 0x100058784\nSTRB            WZR, [X19,#0x39A]                                      ; +0x48, 0x100058788\nMOV             W21, #0x3F0                                            ; +0x4c, 0x10005878c\nMOV             X0, X19                                                ; +0x50, 0x100058790\nMOV             X1, X20                                                ; +0x54, 0x100058794\nBL              CustomizeObjectLayer__updateSelected                   ; +0x58, 0x100058798\nMOV             X0, X19                                                ; +0x5c, 0x10005879c\nMOV             X1, X21                                                ; +0x60, 0x1000587a0\nBL              CustomizeObjectLayer__getButtonByTag                   ; +0x64, 0x1000587a4\nMOV             X1, X0                                                 ; +0x68, 0x1000587a8\nMOV             X0, X19                                                ; +0x6c, 0x1000587ac\nBL              CustomizeObjectLayer__highlightSelected                ; +0x70, 0x1000587b0\nMOV             X0, X19                                                ; +0x74, 0x1000587b4\nBL              CustomizeObjectLayer__updateColorSprite                ; +0x78, 0x1000587b8\nMOV             X0, X19                                                ; +0x7c, 0x1000587bc\nMOV             X1, X20                                                ; +0x80, 0x1000587c0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1000587c4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1000587c8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1000587cc\nB               CustomizeObjectLayer__updateChannelLabel               ; +0x90, 0x1000587d0", "xrefs": ["CustomizeObjectLayer::init @ 0x1000577a8"], "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"}