{"type": "func", "start": 4296598636, "end": 4296598724, "name": "GJColorSetupLayer::onPage", "pseudocode": "// \n// GJColorSetupLayer::onPage from 0x10018e46c to 0x10018e4c4 (88 bytes)\n// \n// 1 xrefs:\n// > GJColorSetupLayer::init @ 0x10018e090\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::onPage(GJColorSetupLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int m_page; // w8\n  int v5; // w8\n  int v6; // w8\n  int v7; // w1\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))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 ( a1->m_totalPages - 1 >= v6 )\n    v7 = v6;\n  else\n    v7 = a1->m_totalPages - 1;\n  a1->m_page = v7;\n  GJColorSetupLayer::showPage(a1, v7);\n}", "assembly": "; \n; GJColorSetupLayer::onPage from 0x10018e46c to 0x10018e4c4 (88 bytes)\n; \n; 1 xrefs:\n; > GJColorSetupLayer::init @ 0x10018e090\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, 0x10018e46c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10018e470\nADD             X29, SP, #0x10                                         ; +0x8, 0x10018e474\nMOV             X19, X0                                                ; +0xc, 0x10018e478\nLDR             X8, [X1]                                               ; +0x10, 0x10018e47c\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x10018e480\nMOV             X0, X1                                                 ; +0x18, 0x10018e484\nBLR             X8                                                     ; +0x1c, 0x10018e488\nLDR             W8, [X19,#0x2B0]                                       ; +0x20, 0x10018e48c\nSUB             W9, W8, #1                                             ; +0x24, 0x10018e490\nCMP             W0, #0                                                 ; +0x28, 0x10018e494\nCSINC           W8, W9, W8, NE                                         ; +0x2c, 0x10018e498\nBIC             W8, W8, W8,ASR#31                                      ; +0x30, 0x10018e49c\nLDR             W9, [X19,#0x2B8]                                       ; +0x34, 0x10018e4a0\nSUB             W9, W9, #1                                             ; +0x38, 0x10018e4a4\nCMP             W9, W8                                                 ; +0x3c, 0x10018e4a8\nCSEL            W1, W9, W8, LT                                         ; +0x40, 0x10018e4ac\nSTR             W1, [X19,#0x2B0]                                       ; +0x44, 0x10018e4b0\nMOV             X0, X19                                                ; +0x48, 0x10018e4b4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x10018e4b8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x10018e4bc\nB               GJColorSetupLayer__showPage                            ; +0x54, 0x10018e4c0", "xrefs": ["GJColorSetupLayer::init @ 0x10018e090"], "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"}