{"type": "func", "start": 4300341008, "end": 4300341169, "name": "GameLevelManager::onUpdateLevelCompleted", "pseudocode": "// \n// GameLevelManager::onUpdateLevelCompleted from 0x10051ff10 to 0x10051ffb1 (161 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x10051ccc0\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 __fastcall GameLevelManager::onUpdateLevelCompleted(__int64 a1, __int64 a2, __int128 *a3, __m128 a4)\n{\n  __m128 v5; // [rsp+0h] [rbp-50h] BYREF\n  void *v6; // [rsp+10h] [rbp-40h]\n  __int128 v7; // [rsp+20h] [rbp-30h] BYREF\n  void *__p; // [rsp+30h] [rbp-20h]\n\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n  {\n    sub_100006B70(&v5, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8), *(double *)a4.i64);\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    v6 = *(void **)(a2 + 16);\n    a4 = *(__m128 *)a2;\n    v5 = *(__m128 *)a2;\n    if ( (*(_BYTE *)a3 & 1) != 0 )\n    {\nLABEL_3:\n      sub_100006B70(&v7, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), *(double *)a4.i64);\n      goto LABEL_6;\n    }\n  }\n  __p = *((void **)a3 + 2);\n  v7 = *a3;\nLABEL_6:\n  GameLevelManager::processOnDownloadLevelCompleted(a1, &v5, &v7, 1);\n  if ( (v7 & 1) != 0 )\n    operator delete(__p);\n  if ( (v5.i8[0] & 1) != 0 )\n    operator delete(v6);\n}", "assembly": "; \n; GameLevelManager::onUpdateLevelCompleted from 0x10051ff10 to 0x10051ffb1 (161 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x10051ccc0\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\npush    rbp                                                            ; +0x0, 0x10051ff10\nmov     rbp, rsp                                                       ; +0x1, 0x10051ff11\npush    r14                                                            ; +0x4, 0x10051ff14\npush    rbx                                                            ; +0x6, 0x10051ff16\nsub     rsp, 40h                                                       ; +0x7, 0x10051ff17\nmov     r14, rdx                                                       ; +0xb, 0x10051ff1b\nmov     rbx, rdi                                                       ; +0xe, 0x10051ff1e\ntest    byte ptr [rsi], 1                                              ; +0x11, 0x10051ff21\njnz     short loc_10051FF4E                                            ; +0x14, 0x10051ff24\nmov     rax, [rsi+10h]                                                 ; +0x16, 0x10051ff26\nmov     [rbp+var_40], rax                                              ; +0x1a, 0x10051ff2a\nmovups  xmm0, xmmword ptr [rsi]                                        ; +0x1e, 0x10051ff2e\nmovaps  [rbp+var_50], xmm0                                             ; +0x21, 0x10051ff31\ntest    byte ptr [r14], 1                                              ; +0x25, 0x10051ff35\njz      short loc_10051FF65                                            ; +0x29, 0x10051ff39\nmov     rdx, [r14+8]                                                   ; +0x2b, 0x10051ff3b\nmov     rsi, [r14+10h]                                                 ; +0x2f, 0x10051ff3f\nlea     rdi, [rbp+var_30]                                              ; +0x33, 0x10051ff43\ncall    sub_100006B70                                                  ; +0x37, 0x10051ff47\njmp     short loc_10051FF75                                            ; +0x3c, 0x10051ff4c\nmov     rdx, [rsi+8]                                                   ; +0x3e, 0x10051ff4e\nmov     rsi, [rsi+10h]                                                 ; +0x42, 0x10051ff52\nlea     rdi, [rbp+var_50]                                              ; +0x46, 0x10051ff56\ncall    sub_100006B70                                                  ; +0x4a, 0x10051ff5a\ntest    byte ptr [r14], 1                                              ; +0x4f, 0x10051ff5f\njnz     short loc_10051FF3B                                            ; +0x53, 0x10051ff63\nmov     rax, [r14+10h]                                                 ; +0x55, 0x10051ff65\nmov     [rbp+__p], rax                                                 ; +0x59, 0x10051ff69\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x5d, 0x10051ff6d\nmovaps  [rbp+var_30], xmm0                                             ; +0x61, 0x10051ff71\nlea     rsi, [rbp+var_50]                                              ; +0x65, 0x10051ff75\nlea     rdx, [rbp+var_30]                                              ; +0x69, 0x10051ff79\nmov     rdi, rbx                                                       ; +0x6d, 0x10051ff7d\nmov     ecx, 1                                                         ; +0x70, 0x10051ff80\ncall    GameLevelManager__processOnDownloadLevelCompleted              ; +0x75, 0x10051ff85\ntest    byte ptr [rbp+var_30], 1                                       ; +0x7a, 0x10051ff8a\njz      short loc_10051FF99                                            ; +0x7e, 0x10051ff8e\nmov     rdi, [rbp+__p]; __p                                            ; +0x80, 0x10051ff90\ncall    __ZdlPv; operator delete(void *)                               ; +0x84, 0x10051ff94\ntest    byte ptr [rbp+var_50], 1                                       ; +0x89, 0x10051ff99\njz      short loc_10051FFA8                                            ; +0x8d, 0x10051ff9d\nmov     rdi, [rbp+var_40]; __p                                         ; +0x8f, 0x10051ff9f\ncall    __ZdlPv; operator delete(void *)                               ; +0x93, 0x10051ffa3\nadd     rsp, 40h                                                       ; +0x98, 0x10051ffa8\npop     rbx                                                            ; +0x9c, 0x10051ffac\npop     r14                                                            ; +0x9d, 0x10051ffad\npop     rbp                                                            ; +0x9f, 0x10051ffaf\nretn                                                                   ; +0xa0, 0x10051ffb0", "xrefs": ["GameLevelManager::handleIt @ 0x10051ccc0"], "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"}