{"type": "func", "start": 4296598820, "end": 4296598920, "name": "GJColorSetupLayer::showPage", "pseudocode": "// \n// GJColorSetupLayer::showPage from 0x10018e524 to 0x10018e588 (100 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::init @ 0x10018e290\n// > GJColorSetupLayer::onPage @ 0x10018e4c0\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 GJColorSetupLayer::showPage(GJColorSetupLayer *a1, int a2)\n{\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevButton->setVisible)(a1->m_prevButton, a2 != 0);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextButton->setVisible)(\n    a1->m_nextButton,\n    a1->m_totalPages - 1 != a2);\n  a1->m_settingsObject->m_colorPage = a2;\n  GJColorSetupLayer::updateSpriteColors(a1);\n}", "assembly": "; \n; GJColorSetupLayer::showPage from 0x10018e524 to 0x10018e588 (100 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::init @ 0x10018e290\n; > GJColorSetupLayer::onPage @ 0x10018e4c0\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10018e524\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10018e528\nADD             X29, SP, #0x10                                         ; +0x8, 0x10018e52c\nMOV             X19, X1                                                ; +0xc, 0x10018e530\nMOV             X20, X0                                                ; +0x10, 0x10018e534\nLDR             X0, [X0,#0x2C0]                                        ; +0x14, 0x10018e538\nCMP             W1, #0                                                 ; +0x18, 0x10018e53c\nCSET            W1, NE                                                 ; +0x1c, 0x10018e540\nLDR             X8, [X0]                                               ; +0x20, 0x10018e544\nLDR             X8, [X8,#0x148]                                        ; +0x24, 0x10018e548\nBLR             X8                                                     ; +0x28, 0x10018e54c\nLDR             X0, [X20,#0x2C8]                                       ; +0x2c, 0x10018e550\nLDR             W8, [X20,#0x2B8]                                       ; +0x30, 0x10018e554\nSUB             W8, W8, #1                                             ; +0x34, 0x10018e558\nCMP             W8, W19                                                ; +0x38, 0x10018e55c\nCSET            W1, NE                                                 ; +0x3c, 0x10018e560\nLDR             X8, [X0]                                               ; +0x40, 0x10018e564\nLDR             X8, [X8,#0x148]                                        ; +0x44, 0x10018e568\nBLR             X8                                                     ; +0x48, 0x10018e56c\nLDR             X8, [X20,#0x288]                                       ; +0x4c, 0x10018e570\nSTR             W19, [X8,#0x1A4]                                       ; +0x50, 0x10018e574\nMOV             X0, X20                                                ; +0x54, 0x10018e578\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x10018e57c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x10018e580\nB               GJColorSetupLayer__updateSpriteColors                  ; +0x60, 0x10018e584", "xrefs": ["GJColorSetupLayer::init @ 0x10018e290", "GJColorSetupLayer::onPage @ 0x10018e4c0"], "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"}