{"type": "func", "start": 5371222064, "end": 5371222348, "name": "GJGameLevel::dtExpandOrder", "pseudocode": "// \n// GJGameLevel::dtExpandOrder from 0x140265830 to 0x14026594c (284 bytes)\n// \n// 24 xrefs:\n// > DeathTrackerPopup::init @ 0x1401046e8\n// > DeathTrackerPopup::parseSessions @ 0x140105fbd\n// > DeathTrackerPopup::parseGlobal @ 0x140106563\n// > DeathTrackerPopup::countsForScope @ 0x1401067a8\n// > DeathTrackerPopup::countsForScope @ 0x140106855\n// > DeathTrackerPopup::countsForScope @ 0x140106928\n// > DeathTrackerPopup::countsForScope @ 0x140106995\n// > DeathTrackerPopup::refreshView @ 0x140106c89\n// > DeathTrackerPopup::refreshView @ 0x140106ce3\n// > DeathTrackerPopup::refreshView @ 0x140106d77\n// > DeathTrackerPopup::refreshView @ 0x140106daf\n// > DeathTrackerPopup::buildAttemptLine @ 0x1401096be\n// > DeathTrackerPopup::buildAttemptLine @ 0x140109782\n// > DeathTrackerPopup::buildList @ 0x14010a651\n// > DeathTrackerPopup::buildList @ 0x14010a6e5\n// > DeathTrackerPopup::buildList @ 0x14010a7e3\n// > DeathTrackerPopup::buildList @ 0x14010a853\n// > DeathTrackerPopup::buildHistory @ 0x14010c419\n// > DeathTrackerPopup::buildHistory @ 0x14010c43a\n// > GJGameLevel::rollSession @ 0x140265f03\n// > PlayLayer::resetLevel @ 0x1405197b1\n// > <???> @ 0x1408ac08c\n// > <???> @ 0x1408ac09c\n// > <???> @ 0x14091c928\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:28:49 +0000\n// \n\nvoid __fastcall GJGameLevel::dtExpandOrder(_QWORD *a1, __int64 a2, __int64 a3)\n{\n  unsigned __int64 v3; // r12\n  unsigned __int64 v4; // rbp\n  _QWORD *v7; // r14\n  unsigned __int64 v8; // rax\n  char *v9; // rdi\n  __int64 v10; // rax\n  unsigned __int64 v11; // r15\n  unsigned __int64 v12; // rdi\n  _QWORD *v13; // rax\n  const char *v14; // r14\n  const char *v15; // rcx\n  int v16; // ebp\n  int v17; // eax\n  __int64 v18; // rdi\n  _BYTE *v19; // rdx\n  int v20; // [rsp+50h] [rbp+8h] BYREF\n\n  v3 = a1[2];\n  v4 = 0;\n  if ( v3 )\n  {\n    while ( 1 )\n    {\n      v7 = a1;\n      if ( a1[3] > 0xFu )\n        v7 = (_QWORD *)*a1;\n      v8 = a1[2];\n      if ( v4 >= v8\n        || (v9 = (char *)v7 + v8,\n            LOBYTE(a3) = 44,\n            v10 = sub_140677120((char *)v7 + v4, (char *)v7 + v8, a3),\n            (char *)v10 == v9)\n        || (v11 = v10 - (_QWORD)v7, v10 - (_QWORD)v7 == -1) )\n      {\n        v11 = v3;\n      }\n      v12 = a1[3];\n      v13 = a1;\n      if ( v12 > 0xF )\n        v13 = (_QWORD *)*a1;\n      v14 = (const char *)memchr((char *)v13 + v4, 120, v11 - v4);\n      v15 = (const char *)a1;\n      if ( v12 > 0xF )\n        v15 = (const char *)*a1;\n      v20 = atoi(&v15[v4]);\n      v16 = v20;\n      if ( !v14 )\n        break;\n      v17 = atoi(v14 + 1);\n      if ( v17 > 0 )\n        goto LABEL_16;\nLABEL_21:\n      v4 = v11 + 1;\n      if ( v11 + 1 >= v3 )\n        return;\n    }\n    v17 = 1;\nLABEL_16:\n    v18 = (unsigned int)v17;\n    do\n    {\n      v19 = *(_BYTE **)(a2 + 8);\n      if ( v19 == *(_BYTE **)(a2 + 16) )\n      {\n        sub_140069B30((const void **)a2, v19, &v20);\n      }\n      else\n      {\n        *(_DWORD *)v19 = v16;\n        *(_QWORD *)(a2 + 8) += 4LL;\n      }\n      --v18;\n    }\n    while ( v18 );\n    goto LABEL_21;\n  }\n}", "assembly": "; \n; GJGameLevel::dtExpandOrder from 0x140265830 to 0x14026594c (284 bytes)\n; \n; 24 xrefs:\n; > DeathTrackerPopup::init @ 0x1401046e8\n; > DeathTrackerPopup::parseSessions @ 0x140105fbd\n; > DeathTrackerPopup::parseGlobal @ 0x140106563\n; > DeathTrackerPopup::countsForScope @ 0x1401067a8\n; > DeathTrackerPopup::countsForScope @ 0x140106855\n; > DeathTrackerPopup::countsForScope @ 0x140106928\n; > DeathTrackerPopup::countsForScope @ 0x140106995\n; > DeathTrackerPopup::refreshView @ 0x140106c89\n; > DeathTrackerPopup::refreshView @ 0x140106ce3\n; > DeathTrackerPopup::refreshView @ 0x140106d77\n; > DeathTrackerPopup::refreshView @ 0x140106daf\n; > DeathTrackerPopup::buildAttemptLine @ 0x1401096be\n; > DeathTrackerPopup::buildAttemptLine @ 0x140109782\n; > DeathTrackerPopup::buildList @ 0x14010a651\n; > DeathTrackerPopup::buildList @ 0x14010a6e5\n; > DeathTrackerPopup::buildList @ 0x14010a7e3\n; > DeathTrackerPopup::buildList @ 0x14010a853\n; > DeathTrackerPopup::buildHistory @ 0x14010c419\n; > DeathTrackerPopup::buildHistory @ 0x14010c43a\n; > GJGameLevel::rollSession @ 0x140265f03\n; > PlayLayer::resetLevel @ 0x1405197b1\n; > <???> @ 0x1408ac08c\n; > <???> @ 0x1408ac09c\n; > <???> @ 0x14091c928\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:28:49 +0000\n; \npush    rbx                                                            ; +0x0, 0x140265830\npush    rbp                                                            ; +0x2, 0x140265832\npush    rsi                                                            ; +0x3, 0x140265833\npush    r12                                                            ; +0x4, 0x140265834\nsub     rsp, 28h                                                       ; +0x6, 0x140265836\nmov     r12, [rcx+10h]                                                 ; +0xa, 0x14026583a\nxor     ebp, ebp                                                       ; +0xe, 0x14026583e\nmov     rbx, rdx                                                       ; +0x10, 0x140265840\nmov     rsi, rcx                                                       ; +0x13, 0x140265843\ntest    r12, r12                                                       ; +0x16, 0x140265846\njz      loc_140265942                                                  ; +0x19, 0x140265849\nmov     [rsp+48h+arg_8], rdi                                           ; +0x1f, 0x14026584f\nmov     [rsp+48h+arg_10], r14                                          ; +0x24, 0x140265854\nmov     [rsp+48h+var_28], r15                                          ; +0x29, 0x140265859\nxchg    ax, ax                                                         ; +0x2e, 0x14026585e\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x30, 0x140265860\nmov     r14, rsi                                                       ; +0x35, 0x140265865\njbe     short loc_14026586D                                            ; +0x38, 0x140265868\nmov     r14, [rsi]                                                     ; +0x3a, 0x14026586a\nmov     rax, [rsi+10h]                                                 ; +0x3d, 0x14026586d\ncmp     rbp, rax                                                       ; +0x41, 0x140265871\njnb     short loc_14026589A                                            ; +0x44, 0x140265874\nlea     rdi, [rax+r14]                                                 ; +0x46, 0x140265876\nmov     r8b, 2Ch ; ','                                                 ; +0x4a, 0x14026587a\nmov     rdx, rdi                                                       ; +0x4d, 0x14026587d\nlea     rcx, [r14+rbp]                                                 ; +0x50, 0x140265880\ncall    sub_140677120                                                  ; +0x54, 0x140265884\nmov     r15, rax                                                       ; +0x59, 0x140265889\ncmp     rax, rdi                                                       ; +0x5c, 0x14026588c\njz      short loc_14026589A                                            ; +0x5f, 0x14026588f\nsub     r15, r14                                                       ; +0x61, 0x140265891\ncmp     r15, 0FFFFFFFFFFFFFFFFh                                        ; +0x64, 0x140265894\njnz     short loc_14026589D                                            ; +0x68, 0x140265898\nmov     r15, r12                                                       ; +0x6a, 0x14026589a\nmov     rdi, [rsi+18h]                                                 ; +0x6d, 0x14026589d\nmov     rax, rsi                                                       ; +0x71, 0x1402658a1\ncmp     rdi, 0Fh                                                       ; +0x74, 0x1402658a4\njbe     short loc_1402658AD                                            ; +0x78, 0x1402658a8\nmov     rax, [rsi]                                                     ; +0x7a, 0x1402658aa\nmov     r8, r15                                                        ; +0x7d, 0x1402658ad\nlea     rcx, [rax+rbp]; Buf                                            ; +0x80, 0x1402658b0\nsub     r8, rbp; MaxCount                                              ; +0x84, 0x1402658b4\nmov     edx, 78h ; 'x'; Val                                            ; +0x87, 0x1402658b7\ncall    memchr                                                         ; +0x8c, 0x1402658bc\nmov     r14, rax                                                       ; +0x91, 0x1402658c1\nmov     rcx, rsi                                                       ; +0x94, 0x1402658c4\ncmp     rdi, 0Fh                                                       ; +0x97, 0x1402658c7\njbe     short loc_1402658D0                                            ; +0x9b, 0x1402658cb\nmov     rcx, [rsi]                                                     ; +0x9d, 0x1402658cd\nadd     rcx, rbp; String                                               ; +0xa0, 0x1402658d0\ncall    cs:atoi                                                        ; +0xa3, 0x1402658d3\nmov     [rsp+48h+arg_0], eax                                           ; +0xa9, 0x1402658d9\nmov     ebp, eax                                                       ; +0xad, 0x1402658dd\ntest    r14, r14                                                       ; +0xaf, 0x1402658df\njz      short loc_1402658F4                                            ; +0xb2, 0x1402658e2\nlea     rcx, [r14+1]; String                                           ; +0xb4, 0x1402658e4\ncall    cs:atoi                                                        ; +0xb8, 0x1402658e8\ntest    eax, eax                                                       ; +0xbe, 0x1402658ee\njle     short loc_140265926                                            ; +0xc0, 0x1402658f0\njmp     short loc_1402658F9                                            ; +0xc2, 0x1402658f2\nmov     eax, 1                                                         ; +0xc4, 0x1402658f4\nmov     edi, eax                                                       ; +0xc9, 0x1402658f9\nnop     dword ptr [rax+rax+00h]                                        ; +0xcb, 0x1402658fb\nmov     rdx, [rbx+8]                                                   ; +0xd0, 0x140265900\ncmp     rdx, [rbx+10h]                                                 ; +0xd4, 0x140265904\njz      short loc_140265913                                            ; +0xd8, 0x140265908\nmov     [rdx], ebp                                                     ; +0xda, 0x14026590a\nadd     qword ptr [rbx+8], 4                                           ; +0xdc, 0x14026590c\njmp     short loc_140265920                                            ; +0xe1, 0x140265911\nlea     r8, [rsp+48h+arg_0]                                            ; +0xe3, 0x140265913\nmov     rcx, rbx                                                       ; +0xe8, 0x140265918\ncall    sub_140069B30                                                  ; +0xeb, 0x14026591b\nsub     rdi, 1                                                         ; +0xf0, 0x140265920\njnz     short loc_140265900                                            ; +0xf4, 0x140265924\nlea     rbp, [r15+1]                                                   ; +0xf6, 0x140265926\ncmp     rbp, r12                                                       ; +0xfa, 0x14026592a\njb      loc_140265860                                                  ; +0xfd, 0x14026592d\nmov     r15, [rsp+48h+var_28]                                          ; +0x103, 0x140265933\nmov     r14, [rsp+48h+arg_10]                                          ; +0x108, 0x140265938\nmov     rdi, [rsp+48h+arg_8]                                           ; +0x10d, 0x14026593d\nadd     rsp, 28h                                                       ; +0x112, 0x140265942\npop     r12                                                            ; +0x116, 0x140265946\npop     rsi                                                            ; +0x118, 0x140265948\npop     rbp                                                            ; +0x119, 0x140265949\npop     rbx                                                            ; +0x11a, 0x14026594a\nretn                                                                   ; +0x11b, 0x14026594b", "xrefs": ["DeathTrackerPopup::init @ 0x1401046e8", "DeathTrackerPopup::parseSessions @ 0x140105fbd", "DeathTrackerPopup::parseGlobal @ 0x140106563", "DeathTrackerPopup::countsForScope @ 0x1401067a8", "DeathTrackerPopup::countsForScope @ 0x140106855", "DeathTrackerPopup::countsForScope @ 0x140106928", "DeathTrackerPopup::countsForScope @ 0x140106995", "DeathTrackerPopup::refreshView @ 0x140106c89", "DeathTrackerPopup::refreshView @ 0x140106ce3", "DeathTrackerPopup::refreshView @ 0x140106d77", "DeathTrackerPopup::refreshView @ 0x140106daf", "DeathTrackerPopup::buildAttemptLine @ 0x1401096be", "DeathTrackerPopup::buildAttemptLine @ 0x140109782", "DeathTrackerPopup::buildList @ 0x14010a651", "DeathTrackerPopup::buildList @ 0x14010a6e5", "DeathTrackerPopup::buildList @ 0x14010a7e3", "DeathTrackerPopup::buildList @ 0x14010a853", "DeathTrackerPopup::buildHistory @ 0x14010c419", "DeathTrackerPopup::buildHistory @ 0x14010c43a", "GJGameLevel::rollSession @ 0x140265f03", "PlayLayer::resetLevel @ 0x1405197b1", "<???> @ 0x1408ac08c", "<???> @ 0x1408ac09c", "<???> @ 0x14091c928"], "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"}