{"type": "func", "start": 5373379280, "end": 5373379387, "name": "SetupTriggerPopup::onPage", "pseudocode": "// \n// SetupTriggerPopup::onPage from 0x1404742d0 to 0x14047433b (107 bytes)\n// \n// 3 xrefs:\n// > SetupTriggerPopup::createPageButtons @ 0x14047411c\n// > SetupTriggerPopup::createPageButtons @ 0x1404741e0\n// > <???> @ 0x1406db414\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 SetupTriggerPopup::onPage(SetupTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v4; // esi\n  int v5; // eax\n  int m_page; // edx\n  bool v7; // sf\n  int v8; // edx\n\n  v4 = cocos2d::CCArray::count(a1->m_pageContainers);\n  v5 = a2->getTag(a2);\n  m_page = a1->m_page;\n  v7 = v5 + m_page < 0;\n  v8 = v5 + m_page;\n  a1->m_page = v8;\n  if ( v7 )\n  {\n    v8 += v4;\nLABEL_5:\n    a1->m_page = v8;\n    goto LABEL_6;\n  }\n  if ( v8 > (int)(v4 - 1) )\n  {\n    v8 -= v4;\n    goto LABEL_5;\n  }\nLABEL_6:\n  SetupTriggerPopup::goToPage(a1, v8, 0);\n}", "assembly": "; \n; SetupTriggerPopup::onPage from 0x1404742d0 to 0x14047433b (107 bytes)\n; \n; 3 xrefs:\n; > SetupTriggerPopup::createPageButtons @ 0x14047411c\n; > SetupTriggerPopup::createPageButtons @ 0x1404741e0\n; > <???> @ 0x1406db414\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404742d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404742d5\npush    rdi                                                            ; +0xa, 0x1404742da\nsub     rsp, 20h                                                       ; +0xb, 0x1404742db\nmov     rdi, rcx                                                       ; +0xf, 0x1404742df\nmov     rbx, rdx                                                       ; +0x12, 0x1404742e2\nmov     rcx, [rcx+350h]                                                ; +0x15, 0x1404742e5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c, 0x1404742ec\nmov     r8, [rbx]                                                      ; +0x22, 0x1404742f2\nmov     rcx, rbx                                                       ; +0x25, 0x1404742f5\nmov     esi, eax                                                       ; +0x28, 0x1404742f8\ncall    qword ptr [r8+38h]                                             ; +0x2a, 0x1404742fa\nmov     edx, [rdi+358h]                                                ; +0x2e, 0x1404742fe\nadd     edx, eax                                                       ; +0x34, 0x140474304\nmov     [rdi+358h], edx                                                ; +0x36, 0x140474306\njns     short loc_140474312                                            ; +0x3c, 0x14047430c\nadd     edx, esi                                                       ; +0x3e, 0x14047430e\njmp     short loc_14047431B                                            ; +0x40, 0x140474310\nlea     eax, [rsi-1]                                                   ; +0x42, 0x140474312\ncmp     edx, eax                                                       ; +0x45, 0x140474315\njle     short loc_140474321                                            ; +0x47, 0x140474317\nsub     edx, esi                                                       ; +0x49, 0x140474319\nmov     [rdi+358h], edx                                                ; +0x4b, 0x14047431b\nxor     r8d, r8d                                                       ; +0x51, 0x140474321\nmov     rcx, rdi                                                       ; +0x54, 0x140474324\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x57, 0x140474327\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5c, 0x14047432c\nadd     rsp, 20h                                                       ; +0x61, 0x140474331\npop     rdi                                                            ; +0x65, 0x140474335\njmp     SetupTriggerPopup__goToPage                                    ; +0x66, 0x140474336", "xrefs": ["SetupTriggerPopup::createPageButtons @ 0x14047411c", "SetupTriggerPopup::createPageButtons @ 0x1404741e0", "<???> @ 0x1406db414"], "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"}