{"type": "func", "start": 5371161472, "end": 5371161549, "name": "GJColorSetupLayer::onPage", "pseudocode": "// \n// GJColorSetupLayer::onPage from 0x140256b80 to 0x140256bcd (77 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::init @ 0x14025657f\n// > <???> @ 0x1406cf990\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; // eax\n  int m_page; // edx\n  int v5; // r8d\n  int v6; // edx\n  int v7; // ecx\n\n  v3 = a2->getTag(a2);\n  m_page = a1->m_page;\n  v5 = m_page - 1;\n  v6 = m_page + 1;\n  if ( v3 )\n    v6 = v5;\n  v7 = 0;\n  if ( v6 >= 0 )\n    v7 = v6;\n  if ( a1->m_totalPages - 1 < v7 )\n    v7 = a1->m_totalPages - 1;\n  a1->m_page = v7;\n  GJColorSetupLayer::showPage(a1, v7);\n}", "assembly": "; \n; GJColorSetupLayer::onPage from 0x140256b80 to 0x140256bcd (77 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::init @ 0x14025657f\n; > <???> @ 0x1406cf990\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    rbx                                                            ; +0x0, 0x140256b80\nsub     rsp, 20h                                                       ; +0x2, 0x140256b82\nmov     rax, [rdx]                                                     ; +0x6, 0x140256b86\nmov     rbx, rcx                                                       ; +0x9, 0x140256b89\nmov     rcx, rdx                                                       ; +0xc, 0x140256b8c\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x140256b8f\nmov     edx, [rbx+2B0h]                                                ; +0x12, 0x140256b92\nlea     r8d, [rdx-1]                                                   ; +0x18, 0x140256b98\ninc     edx                                                            ; +0x1c, 0x140256b9c\ntest    eax, eax                                                       ; +0x1e, 0x140256b9e\nmov     eax, [rbx+2B8h]                                                ; +0x20, 0x140256ba0\ncmovnz  edx, r8d                                                       ; +0x26, 0x140256ba6\nxor     ecx, ecx                                                       ; +0x2a, 0x140256baa\ntest    edx, edx                                                       ; +0x2c, 0x140256bac\ncmovns  ecx, edx                                                       ; +0x2e, 0x140256bae\ndec     eax                                                            ; +0x31, 0x140256bb1\ncmp     eax, ecx                                                       ; +0x33, 0x140256bb3\ncmovl   ecx, eax                                                       ; +0x35, 0x140256bb5\nmov     [rbx+2B0h], ecx                                                ; +0x38, 0x140256bb8\nmov     edx, ecx                                                       ; +0x3e, 0x140256bbe\nmov     rcx, rbx                                                       ; +0x40, 0x140256bc0\nadd     rsp, 20h                                                       ; +0x43, 0x140256bc3\npop     rbx                                                            ; +0x47, 0x140256bc7\njmp     GJColorSetupLayer__showPage                                    ; +0x48, 0x140256bc8", "xrefs": ["GJColorSetupLayer::init @ 0x14025657f", "<???> @ 0x1406cf990"], "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"}