{"type": "func", "start": 5369669184, "end": 5369669599, "name": "LevelPickerPopup::setupPageInfo", "pseudocode": "// \n// LevelPickerPopup::setupPageInfo from 0x1400ea640 to 0x1400ea7df (415 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14072cee8\n// > <???> @ 0x140914ea0\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:26:34 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall LevelPickerPopup::setupPageInfo(__int64 a1, _QWORD *a2, _BYTE *a3)\n{\n  size_t v6; // rbx\n  __int64 v7; // rax\n  const void *v8; // rcx\n  size_t v9; // r8\n  _BYTE *v10; // rdx\n  cocos2d::CCArray *v11; // rbx\n  void *v12; // r8\n  cocos2d::CCString *v13; // rax\n  cocos2d::CCString *v14; // rax\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __m128i si128; // [rsp+48h] [rbp-20h]\n\n  v6 = -1;\n  if ( !a3 )\n    goto LABEL_9;\n  v7 = -1;\n  do\n    ++v7;\n  while ( a3[v7] );\n  v8 = (const void *)(a1 + 64);\n  if ( *(_QWORD *)(a1 + 88) > 0xFu )\n    v8 = *(const void **)(a1 + 64);\n  v9 = *(_QWORD *)(a1 + 80);\n  if ( v9 == v7 && (!v9 || !memcmp(v8, a3, v9)) )\n  {\nLABEL_9:\n    v10 = a2;\n    if ( a2[3] > 0xFu )\n      v10 = (_BYTE *)*a2;\n    *(_OWORD *)Block = 0;\n    si128 = 0;\n    do\n      ++v6;\n    while ( v10[v6] );\n    sub_14003D230(Block, v10, v6);\n    v11 = sub_1400D2840((__int64 *)Block, \":\");\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v12 = Block[0];\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v12 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v12);\n    }\n    si128 = _mm_load_si128((const __m128i *)&Size);\n    LOBYTE(Block[0]) = 0;\n    if ( v11 && cocos2d::CCArray::count(v11) >= 2 )\n    {\n      v13 = cocos2d::CCArray::stringAtIndex(v11, 0);\n      *(_DWORD *)(a1 + 96) = cocos2d::CCString::intValue(v13);\n      v14 = cocos2d::CCArray::stringAtIndex(v11, 1u);\n      *(_DWORD *)(a1 + 100) = cocos2d::CCString::intValue(v14);\n    }\n  }\n  sub_14003D310((__int64)a2);\n}", "assembly": "; \n; LevelPickerPopup::setupPageInfo from 0x1400ea640 to 0x1400ea7df (415 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14072cee8\n; > <???> @ 0x140914ea0\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:26:34 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400ea640\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1400ea645\npush    rdi                                                            ; +0xa, 0x1400ea64a\nsub     rsp, 60h                                                       ; +0xb, 0x1400ea64b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1400ea64f\nxor     rax, rsp                                                       ; +0x16, 0x1400ea656\nmov     [rsp+68h+var_10], rax                                          ; +0x19, 0x1400ea659\nmov     r9, r8                                                         ; +0x1e, 0x1400ea65e\nmov     rdi, rdx                                                       ; +0x21, 0x1400ea661\nmov     rsi, rcx                                                       ; +0x24, 0x1400ea664\nmov     [rsp+68h+var_38], rdx                                          ; +0x27, 0x1400ea667\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x2c, 0x1400ea66c\ntest    r8, r8                                                         ; +0x33, 0x1400ea673\njz      short loc_1400EA6BB                                            ; +0x36, 0x1400ea676\nmov     rax, rbx                                                       ; +0x38, 0x1400ea678\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x1400ea67b\ninc     rax                                                            ; +0x40, 0x1400ea680\ncmp     byte ptr [r8+rax], 0                                           ; +0x43, 0x1400ea683\njnz     short loc_1400EA680                                            ; +0x48, 0x1400ea688\nadd     rcx, 40h ; '@'                                                 ; +0x4a, 0x1400ea68a\ncmp     qword ptr [rsi+58h], 0Fh                                       ; +0x4e, 0x1400ea68e\njbe     short loc_1400EA699                                            ; +0x53, 0x1400ea693\nmov     rcx, [rsi+40h]; Buf1                                           ; +0x55, 0x1400ea695\nmov     r8, [rsi+50h]; Size                                            ; +0x59, 0x1400ea699\ncmp     r8, rax                                                        ; +0x5d, 0x1400ea69d\njnz     loc_1400EA7B8                                                  ; +0x60, 0x1400ea6a0\ntest    r8, r8                                                         ; +0x66, 0x1400ea6a6\njz      short loc_1400EA6BB                                            ; +0x69, 0x1400ea6a9\nmov     rdx, r9; Buf2                                                  ; +0x6b, 0x1400ea6ab\ncall    memcmp                                                         ; +0x6e, 0x1400ea6ae\ntest    eax, eax                                                       ; +0x73, 0x1400ea6b3\njnz     loc_1400EA7B8                                                  ; +0x75, 0x1400ea6b5\nmov     rdx, rdi                                                       ; +0x7b, 0x1400ea6bb\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x7e, 0x1400ea6be\njbe     short loc_1400EA6C8                                            ; +0x83, 0x1400ea6c3\nmov     rdx, [rdi]                                                     ; +0x85, 0x1400ea6c5\nxorps   xmm0, xmm0                                                     ; +0x88, 0x1400ea6c8\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x8b, 0x1400ea6cb\nxorps   xmm1, xmm1                                                     ; +0x90, 0x1400ea6d0\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x93, 0x1400ea6d3\nnop     dword ptr [rax+00000000h]                                      ; +0x99, 0x1400ea6d9\ninc     rbx                                                            ; +0xa0, 0x1400ea6e0\ncmp     byte ptr [rdx+rbx], 0                                          ; +0xa3, 0x1400ea6e3\njnz     short loc_1400EA6E0                                            ; +0xa7, 0x1400ea6e7\nmov     r8, rbx                                                        ; +0xa9, 0x1400ea6e9\nlea     rcx, [rsp+68h+Block]                                           ; +0xac, 0x1400ea6ec\ncall    sub_14003D230                                                  ; +0xb1, 0x1400ea6f1\nnop                                                                    ; +0xb6, 0x1400ea6f6\nlea     rdx, asc_140727520; \":\"                                        ; +0xb7, 0x1400ea6f7\nlea     rcx, [rsp+68h+Block]                                           ; +0xbe, 0x1400ea6fe\ncall    sub_1400D2840                                                  ; +0xc3, 0x1400ea703\nmov     rbx, rax                                                       ; +0xc8, 0x1400ea708\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0xcb, 0x1400ea70b\ncmp     rdx, 0Fh                                                       ; +0xd0, 0x1400ea710\njbe     short loc_1400EA761                                            ; +0xd4, 0x1400ea714\ninc     rdx                                                            ; +0xd6, 0x1400ea716\nmov     r8, [rsp+68h+Block]                                            ; +0xd9, 0x1400ea719\nmov     rcx, r8                                                        ; +0xde, 0x1400ea71e\ncmp     rdx, 1000h                                                     ; +0xe1, 0x1400ea721\njb      short loc_1400EA759                                            ; +0xe8, 0x1400ea728\nadd     rdx, 27h ; '''                                                 ; +0xea, 0x1400ea72a\nmov     r8, [r8-8]                                                     ; +0xee, 0x1400ea72e\nsub     rcx, r8                                                        ; +0xf2, 0x1400ea732\nsub     rcx, 8                                                         ; +0xf5, 0x1400ea735\ncmp     rcx, 1Fh                                                       ; +0xf9, 0x1400ea739\njbe     short loc_1400EA759                                            ; +0xfd, 0x1400ea73d\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xff, 0x1400ea73f\nxor     r9d, r9d; LineNo                                               ; +0x108, 0x1400ea748\nxor     r8d, r8d; FileName                                             ; +0x10b, 0x1400ea74b\nxor     edx, edx; FunctionName                                         ; +0x10e, 0x1400ea74e\nxor     ecx, ecx; Expression                                           ; +0x110, 0x1400ea750\ncall    cs:_invoke_watson                                              ; +0x112, 0x1400ea752\ndb 0CCh                                                                ; +0x118, 0x1400ea758\nmov     rcx, r8; Block                                                 ; +0x119, 0x1400ea759\ncall    j_j_free                                                       ; +0x11c, 0x1400ea75c\nmovdqa  xmm0, cs:Size                                                  ; +0x121, 0x1400ea761\nmovdqu  [rsp+68h+var_20], xmm0                                         ; +0x129, 0x1400ea769\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0x12f, 0x1400ea76f\ntest    rbx, rbx                                                       ; +0x134, 0x1400ea774\njz      short loc_1400EA7B8                                            ; +0x137, 0x1400ea777\nmov     rcx, rbx                                                       ; +0x139, 0x1400ea779\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13c, 0x1400ea77c\ncmp     eax, 2                                                         ; +0x142, 0x1400ea782\njb      short loc_1400EA7B8                                            ; +0x145, 0x1400ea785\nxor     edx, edx                                                       ; +0x147, 0x1400ea787\nmov     rcx, rbx                                                       ; +0x149, 0x1400ea789\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x14c, 0x1400ea78c\nmov     rcx, rax                                                       ; +0x152, 0x1400ea792\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x155, 0x1400ea795\nmov     [rsi+60h], eax                                                 ; +0x15b, 0x1400ea79b\nmov     edx, 1                                                         ; +0x15e, 0x1400ea79e\nmov     rcx, rbx                                                       ; +0x163, 0x1400ea7a3\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x166, 0x1400ea7a6\nmov     rcx, rax                                                       ; +0x16c, 0x1400ea7ac\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x16f, 0x1400ea7af\nmov     [rsi+64h], eax                                                 ; +0x175, 0x1400ea7b5\nmov     rcx, rdi                                                       ; +0x178, 0x1400ea7b8\ncall    sub_14003D310                                                  ; +0x17b, 0x1400ea7bb\nmov     rcx, [rsp+68h+var_10]                                          ; +0x180, 0x1400ea7c0\nxor     rcx, rsp; StackCookie                                          ; +0x185, 0x1400ea7c5\ncall    __security_check_cookie                                        ; +0x188, 0x1400ea7c8\nlea     r11, [rsp+68h+var_8]                                           ; +0x18d, 0x1400ea7cd\nmov     rbx, [r11+20h]                                                 ; +0x192, 0x1400ea7d2\nmov     rsi, [r11+28h]                                                 ; +0x196, 0x1400ea7d6\nmov     rsp, r11                                                       ; +0x19a, 0x1400ea7da\npop     rdi                                                            ; +0x19d, 0x1400ea7dd\nretn                                                                   ; +0x19e, 0x1400ea7de", "xrefs": ["<???> @ 0x14072cee8", "<???> @ 0x140914ea0"], "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"}