{"type": "func", "start": 4818856, "end": 4818910, "name": "GJColorSetupLayer::onPage", "pseudocode": "// \n// GJColorSetupLayer::onPage from 0x4987a8 to 0x4987de (54 bytes)\n// \n// 0 xrefs:\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::onPage(GJColorSetupLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int m_page; // r1\n  int v5; // r1\n  int v6; // r1\n\n  v3 = a2->getTag(a2);\n  m_page = a1->m_page;\n  if ( v3 )\n    v5 = m_page - 1;\n  else\n    v5 = m_page + 1;\n  v6 = v5 & ~(v5 >> 31);\n  if ( v6 >= a1->m_totalPages - 1 )\n    v6 = a1->m_totalPages - 1;\n  a1->m_page = v6;\n  GJColorSetupLayer::showPage(a1, v6);\n}", "assembly": "; \n; GJColorSetupLayer::onPage from 0x4987a8 to 0x4987de (54 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, [R1]                                               ; +0x0, 0x4987a8\nPUSH            {R4,LR}                                                ; +0x2, 0x4987aa\nMOV             R4, R0                                                 ; +0x4, 0x4987ac\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x4987ae\nMOV             R0, R1                                                 ; +0x8, 0x4987b0\nBLX             R3                                                     ; +0xa, 0x4987b2\nLDR.W           R1, [R4,#0x20C]                                        ; +0xc, 0x4987b4\nCBNZ            R0, loc_4987BE                                         ; +0x10, 0x4987b8\nADDS            R1, #1                                                 ; +0x12, 0x4987ba\nB               loc_4987C0                                             ; +0x14, 0x4987bc\nSUBS            R1, #1                                                 ; +0x16, 0x4987be\nLDR.W           R3, [R4,#0x214]                                        ; +0x18, 0x4987c0\nBIC.W           R1, R1, R1,ASR#31                                      ; +0x1c, 0x4987c4\nMOV             R0, R4; this                                           ; +0x20, 0x4987c8\nSUBS            R3, #1                                                 ; +0x22, 0x4987ca\nCMP             R1, R3                                                 ; +0x24, 0x4987cc\nIT GE                                                                  ; +0x26, 0x4987ce\nMOVGE           R1, R3; int                                            ; +0x28, 0x4987d0\nSTR.W           R1, [R4,#0x20C]                                        ; +0x2a, 0x4987d2\nPOP.W           {R4,LR}                                                ; +0x2e, 0x4987d6\nB.W             _ZN17GJColorSetupLayer8showPageEi; GJColorSetupLayer::showPage(int) ; +0x32, 0x4987da", "xrefs": [], "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"}