{"type": "func", "start": 9053260, "end": 9053356, "name": "GJColorSetupLayer::onPage", "pseudocode": "// \n// GJColorSetupLayer::onPage from 0x8a244c to 0x8a24ac (96 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x68cb8\n// > GJColorSetupLayer::init @ 0x8a20c0\n// > GJColorSetupLayer::init @ 0x8a2178\n// > <???> @ 0x122b668\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; // w0\n  int m_page; // w2\n  int v5; // w2\n  int v6; // w1\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  if ( v5 < 0 )\n    v5 = 0;\n  v6 = a1->m_totalPages - 1;\n  if ( v5 <= v6 )\n    v6 = v5;\n  a1->m_page = v6;\n  GJColorSetupLayer::showPage(a1, v6);\n}", "assembly": "; \n; GJColorSetupLayer::onPage from 0x8a244c to 0x8a24ac (96 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x68cb8\n; > GJColorSetupLayer::init @ 0x8a20c0\n; > GJColorSetupLayer::init @ 0x8a2178\n; > <???> @ 0x122b668\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0x8a244c\nMOV             X29, SP                                                ; +0x4, 0x8a2450\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x8a2454\nMOV             X19, X0                                                ; +0xc, 0x8a2458\nMOV             X0, X1                                                 ; +0x10, 0x8a245c\nLDR             X1, [X1]                                               ; +0x14, 0x8a2460\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0x8a2464\nBLR             X1                                                     ; +0x1c, 0x8a2468\nLDR             W2, [X19,#0x2B0]                                       ; +0x20, 0x8a246c\nCBZ             W0, loc_8A24A4                                         ; +0x24, 0x8a2470\nSUB             W2, W2, #1                                             ; +0x28, 0x8a2474\nLDR             W1, [X19,#0x2B8]                                       ; +0x2c, 0x8a2478\nCMP             W2, WZR                                                ; +0x30, 0x8a247c\nCSEL            W2, W2, WZR, GE                                        ; +0x34, 0x8a2480\nMOV             X0, X19; this                                          ; +0x38, 0x8a2484\nSUB             W1, W1, #1                                             ; +0x3c, 0x8a2488\nCMP             W2, W1                                                 ; +0x40, 0x8a248c\nCSEL            W1, W2, W1, LE; int                                    ; +0x44, 0x8a2490\nSTR             W1, [X19,#0x2B0]                                       ; +0x48, 0x8a2494\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x4c, 0x8a2498\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x50, 0x8a249c\nB               _ZN17GJColorSetupLayer8showPageEi; GJColorSetupLayer::showPage(int) ; +0x54, 0x8a24a0\nADD             W2, W2, #1                                             ; +0x58, 0x8a24a4\nB               loc_8A2478                                             ; +0x5c, 0x8a24a8", "xrefs": ["<???> @ 0x68cb8", "GJColorSetupLayer::init @ 0x8a20c0", "GJColorSetupLayer::init @ 0x8a2178", "<???> @ 0x122b668"], "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"}