{"type": "func", "start": 4817152, "end": 4817218, "name": "GJColorSetupLayer::showPage", "pseudocode": "// \n// GJColorSetupLayer::showPage from 0x498100 to 0x498142 (66 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::init @ 0x498662\n// > GJColorSetupLayer::onPage @ 0x4987da\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 GJColorSetupLayer::showPage(GJColorSetupLayer *a1, int a2)\n{\n  a1->m_prevButton->setVisible(a1->m_prevButton, a2 != 0);\n  a1->m_nextButton->setVisible(a1->m_nextButton, a2 != a1->m_totalPages - 1);\n  a1->m_settingsObject->m_colorPage = a2;\n  GJColorSetupLayer::updateSpriteColors(a1);\n}", "assembly": "; \n; GJColorSetupLayer::showPage from 0x498100 to 0x498142 (66 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::init @ 0x498662\n; > GJColorSetupLayer::onPage @ 0x4987da\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x498100\nMOV             R4, R0                                                 ; +0x2, 0x498102\nLDR.W           R0, [R0,#0x218]                                        ; +0x4, 0x498104\nMOV             R5, R1                                                 ; +0x8, 0x498108\nADDS            R1, #0                                                 ; +0xa, 0x49810a\nLDR             R3, [R0]                                               ; +0xc, 0x49810c\nIT NE                                                                  ; +0xe, 0x49810e\nMOVNE           R1, #1                                                 ; +0x10, 0x498110\nLDR.W           R3, [R3,#0xA4]                                         ; +0x12, 0x498112\nBLX             R3                                                     ; +0x16, 0x498116\nLDR.W           R0, [R4,#0x21C]                                        ; +0x18, 0x498118\nLDR.W           R1, [R4,#0x214]                                        ; +0x1c, 0x49811c\nLDR             R3, [R0]                                               ; +0x20, 0x498120\nSUBS            R1, #1                                                 ; +0x22, 0x498122\nSUBS            R1, R5, R1                                             ; +0x24, 0x498124\nLDR.W           R3, [R3,#0xA4]                                         ; +0x26, 0x498126\nIT NE                                                                  ; +0x2a, 0x49812a\nMOVNE           R1, #1                                                 ; +0x2c, 0x49812c\nBLX             R3                                                     ; +0x2e, 0x49812e\nLDR.W           R3, [R4,#0x1F8]                                        ; +0x30, 0x498130\nMOV             R0, R4; this                                           ; +0x34, 0x498134\nSTR.W           R5, [R3,#0x14C]                                        ; +0x36, 0x498136\nPOP.W           {R3-R5,LR}                                             ; +0x3a, 0x49813a\nB.W             _ZN17GJColorSetupLayer18updateSpriteColorsEv; GJColorSetupLayer::updateSpriteColors(void) ; +0x3e, 0x49813e", "xrefs": ["GJColorSetupLayer::init @ 0x498662", "GJColorSetupLayer::onPage @ 0x4987da"], "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"}