{"type": "func", "start": 5371960240, "end": 5371960341, "name": "LevelSelectLayer::onInfo", "pseudocode": "// \n// LevelSelectLayer::onInfo from 0x140319bb0 to 0x140319c15 (101 bytes)\n// \n// 2 xrefs:\n// > LevelSelectLayer::init @ 0x1403190ba\n// > <???> @ 0x1406d4ab4\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 LevelSelectLayer::onInfo(LevelSelectLayer *a1, cocos2d::CCObject *a2)\n{\n  BoomScrollLayer *m_scrollLayer; // rdi\n  signed int m_page; // ebx\n  cocos2d::CCArray *m_pages; // rcx\n  signed int v5; // ecx\n  LevelPage *v6; // rax\n  cocos2d::CCObject *v7; // rdx\n\n  m_scrollLayer = a1->m_scrollLayer;\n  m_page = m_scrollLayer->m_page;\n  m_pages = m_scrollLayer->m_pages;\n  if ( m_scrollLayer->m_dynamic )\n  {\n    v5 = cocos2d::CCArray::count(m_pages);\n    if ( m_page <= 0 )\n    {\n      for ( ; m_page < 0; m_page += v5 )\n        ;\n    }\n    else\n    {\n      m_page %= v5;\n    }\n    m_pages = m_scrollLayer->m_pages;\n  }\n  v6 = (LevelPage *)cocos2d::CCArray::objectAtIndex(m_pages, m_page);\n  LevelPage::onInfo(v6, v7);\n}", "assembly": "; \n; LevelSelectLayer::onInfo from 0x140319bb0 to 0x140319c15 (101 bytes)\n; \n; 2 xrefs:\n; > LevelSelectLayer::init @ 0x1403190ba\n; > <???> @ 0x1406d4ab4\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, 0x140319bb0\npush    rdi                                                            ; +0x5, 0x140319bb5\nsub     rsp, 20h                                                       ; +0x6, 0x140319bb6\nmov     rdi, [rcx+1C0h]                                                ; +0xa, 0x140319bba\ncmp     byte ptr [rdi+1C0h], 0                                         ; +0x11, 0x140319bc1\nmov     ebx, [rdi+244h]                                                ; +0x18, 0x140319bc8\nmov     rcx, [rdi+1D8h]                                                ; +0x1e, 0x140319bce\njz      short loc_140319BFB                                            ; +0x25, 0x140319bd5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x27, 0x140319bd7\nmov     ecx, eax                                                       ; +0x2d, 0x140319bdd\ntest    ebx, ebx                                                       ; +0x2f, 0x140319bdf\njle     short loc_140319BEC                                            ; +0x31, 0x140319be1\nmov     eax, ebx                                                       ; +0x33, 0x140319be3\ncdq                                                                    ; +0x35, 0x140319be5\nidiv    ecx                                                            ; +0x36, 0x140319be6\nmov     ebx, edx                                                       ; +0x38, 0x140319be8\njmp     short loc_140319BF4                                            ; +0x3a, 0x140319bea\njns     short loc_140319BF4                                            ; +0x3c, 0x140319bec\nxchg    ax, ax                                                         ; +0x3e, 0x140319bee\nadd     ebx, ecx                                                       ; +0x40, 0x140319bf0\njs      short loc_140319BF0                                            ; +0x42, 0x140319bf2\nmov     rcx, [rdi+1D8h]                                                ; +0x44, 0x140319bf4\nmov     edx, ebx                                                       ; +0x4b, 0x140319bfb\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4d, 0x140319bfd\nmov     rcx, rax                                                       ; +0x53, 0x140319c03\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x140319c06\nadd     rsp, 20h                                                       ; +0x5b, 0x140319c0b\npop     rdi                                                            ; +0x5f, 0x140319c0f\njmp     LevelPage__onInfo                                              ; +0x60, 0x140319c10", "xrefs": ["LevelSelectLayer::init @ 0x1403190ba", "<???> @ 0x1406d4ab4"], "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"}