{"type": "func", "start": 4297113280, "end": 4297113432, "name": "GJColorSetupLayer::onPage", "pseudocode": "// \n// GJColorSetupLayer::onPage from 0x10020bec0 to 0x10020bf58 (152 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::init @ 0x10020b9ce\n// > GJColorSetupLayer::init @ 0x10020ba9f\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 v2; // eax\n  int v3; // r14d\n\n  v2 = a1->m_page + (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 0 ? -1 : 1);\n  if ( v2 <= 0 )\n    v2 = 0;\n  v3 = a1->m_totalPages - 1;\n  if ( v3 >= v2 )\n    v3 = v2;\n  a1->m_page = v3;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevButton->setVisible)(a1->m_prevButton, v3 != 0);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextButton->setVisible)(\n    a1->m_nextButton,\n    a1->m_totalPages - 1 != v3);\n  a1->m_settingsObject->m_colorPage = v3;\n  GJColorSetupLayer::updateSpriteColors(a1);\n}", "assembly": "; \n; GJColorSetupLayer::onPage from 0x10020bec0 to 0x10020bf58 (152 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::init @ 0x10020b9ce\n; > GJColorSetupLayer::init @ 0x10020ba9f\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    rbp                                                            ; +0x0, 0x10020bec0\nmov     rbp, rsp                                                       ; +0x1, 0x10020bec1\npush    r14                                                            ; +0x4, 0x10020bec4\npush    rbx                                                            ; +0x6, 0x10020bec6\nmov     rbx, rdi                                                       ; +0x7, 0x10020bec7\nmov     rax, [rsi]                                                     ; +0xa, 0x10020beca\nmov     rdi, rsi                                                       ; +0xd, 0x10020becd\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x10020bed0\nxor     ecx, ecx                                                       ; +0x13, 0x10020bed3\nneg     eax                                                            ; +0x15, 0x10020bed5\nmov     eax, 0                                                         ; +0x17, 0x10020bed7\nsbb     eax, eax                                                       ; +0x1c, 0x10020bedc\nor      eax, 1                                                         ; +0x1e, 0x10020bede\nadd     eax, [rbx+2B0h]                                                ; +0x21, 0x10020bee1\ntest    eax, eax                                                       ; +0x27, 0x10020bee7\ncmovle  eax, ecx                                                       ; +0x29, 0x10020bee9\nmov     r14d, [rbx+2B8h]                                               ; +0x2c, 0x10020beec\ndec     r14d                                                           ; +0x33, 0x10020bef3\ncmp     r14d, eax                                                      ; +0x36, 0x10020bef6\ncmovge  r14d, eax                                                      ; +0x39, 0x10020bef9\nmov     [rbx+2B0h], r14d                                               ; +0x3d, 0x10020befd\nmov     rdi, [rbx+2C0h]                                                ; +0x44, 0x10020bf04\nxor     esi, esi                                                       ; +0x4b, 0x10020bf0b\ntest    r14d, r14d                                                     ; +0x4d, 0x10020bf0d\nsetnz   sil                                                            ; +0x50, 0x10020bf10\nmov     rax, [rdi]                                                     ; +0x54, 0x10020bf14\ncall    qword ptr [rax+148h]                                           ; +0x57, 0x10020bf17\nmov     rdi, [rbx+2C8h]                                                ; +0x5d, 0x10020bf1d\nmov     eax, [rbx+2B8h]                                                ; +0x64, 0x10020bf24\ndec     eax                                                            ; +0x6a, 0x10020bf2a\nxor     esi, esi                                                       ; +0x6c, 0x10020bf2c\ncmp     eax, r14d                                                      ; +0x6e, 0x10020bf2e\nsetnz   sil                                                            ; +0x71, 0x10020bf31\nmov     rax, [rdi]                                                     ; +0x75, 0x10020bf35\ncall    qword ptr [rax+148h]                                           ; +0x78, 0x10020bf38\nmov     rax, [rbx+288h]                                                ; +0x7e, 0x10020bf3e\nmov     [rax+1A4h], r14d                                               ; +0x85, 0x10020bf45\nmov     rdi, rbx                                                       ; +0x8c, 0x10020bf4c\npop     rbx                                                            ; +0x8f, 0x10020bf4f\npop     r14                                                            ; +0x90, 0x10020bf50\npop     rbp                                                            ; +0x92, 0x10020bf52\njmp     GJColorSetupLayer__updateSpriteColors                          ; +0x93, 0x10020bf53", "xrefs": ["GJColorSetupLayer::init @ 0x10020b9ce", "GJColorSetupLayer::init @ 0x10020ba9f"], "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"}