{"type": "func", "start": 5373177760, "end": 5373177861, "name": "LevelSelectLayer::onInfo", "pseudocode": "// \n// LevelSelectLayer::onInfo from 0x140442fa0 to 0x140443005 (101 bytes)\n// \n// 2 xrefs:\n// > LevelSelectLayer::init @ 0x140442393\n// > <???> @ 0x14092717c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:22 +0000\n// \n\n__int64 __fastcall LevelSelectLayer::onInfo(__int64 a1)\n{\n  __int64 v1; // rdi\n  signed int v2; // ebx\n  cocos2d::CCArray *v3; // rcx\n  signed int v4; // ecx\n  struct cocos2d::CCObject *v5; // rax\n\n  v1 = *(_QWORD *)(a1 + 448);\n  v2 = *(_DWORD *)(v1 + 588);\n  v3 = *(cocos2d::CCArray **)(v1 + 480);\n  if ( *(_BYTE *)(v1 + 456) )\n  {\n    v4 = cocos2d::CCArray::count(v3);\n    if ( v2 <= 0 )\n    {\n      for ( ; v2 < 0; v2 += v4 )\n        ;\n    }\n    else\n    {\n      v2 %= v4;\n    }\n    v3 = *(cocos2d::CCArray **)(v1 + 480);\n  }\n  v5 = cocos2d::CCArray::objectAtIndex(v3, v2);\n  return LevelPage::onInfo(v5);\n}", "assembly": "; \n; LevelSelectLayer::onInfo from 0x140442fa0 to 0x140443005 (101 bytes)\n; \n; 2 xrefs:\n; > LevelSelectLayer::init @ 0x140442393\n; > <???> @ 0x14092717c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140442fa0\npush    rdi                                                            ; +0x5, 0x140442fa5\nsub     rsp, 20h                                                       ; +0x6, 0x140442fa6\nmov     rdi, [rcx+1C0h]                                                ; +0xa, 0x140442faa\ncmp     byte ptr [rdi+1C8h], 0                                         ; +0x11, 0x140442fb1\nmov     ebx, [rdi+24Ch]                                                ; +0x18, 0x140442fb8\nmov     rcx, [rdi+1E0h]                                                ; +0x1e, 0x140442fbe\njz      short loc_140442FEB                                            ; +0x25, 0x140442fc5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x27, 0x140442fc7\nmov     ecx, eax                                                       ; +0x2d, 0x140442fcd\ntest    ebx, ebx                                                       ; +0x2f, 0x140442fcf\njle     short loc_140442FDC                                            ; +0x31, 0x140442fd1\nmov     eax, ebx                                                       ; +0x33, 0x140442fd3\ncdq                                                                    ; +0x35, 0x140442fd5\nidiv    ecx                                                            ; +0x36, 0x140442fd6\nmov     ebx, edx                                                       ; +0x38, 0x140442fd8\njmp     short loc_140442FE4                                            ; +0x3a, 0x140442fda\njns     short loc_140442FE4                                            ; +0x3c, 0x140442fdc\nxchg    ax, ax                                                         ; +0x3e, 0x140442fde\nadd     ebx, ecx                                                       ; +0x40, 0x140442fe0\njs      short loc_140442FE0                                            ; +0x42, 0x140442fe2\nmov     rcx, [rdi+1E0h]                                                ; +0x44, 0x140442fe4\nmov     edx, ebx                                                       ; +0x4b, 0x140442feb\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4d, 0x140442fed\nmov     rcx, rax                                                       ; +0x53, 0x140442ff3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x140442ff6\nadd     rsp, 20h                                                       ; +0x5b, 0x140442ffb\npop     rdi                                                            ; +0x5f, 0x140442fff\njmp     LevelPage__onInfo                                              ; +0x60, 0x140443000", "xrefs": ["LevelSelectLayer::init @ 0x140442393", "<???> @ 0x14092717c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}