{"type": "func", "start": 6442592320, "end": 6442592434, "name": "sub_180022840", "pseudocode": "// \n// sub_180022840 from 0x180022840 to 0x1800228b2 (114 bytes)\n// \n// 4 xrefs:\n// > sub_18001FF20 @ 0x18001ff62\n// > <???> @ 0x18017f914\n// > <???> @ 0x18017f924\n// > <???> @ 0x1801f7524\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\n__int64 __fastcall sub_180022840(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  unsigned int v4; // eax\n  unsigned int v5; // edi\n  int v7; // xmm6_4\n\n  v4 = *(_DWORD *)(a1 + 15296);\n  v5 = a3;\n  if ( (_DWORD)a3 != v4 )\n  {\n    if ( (unsigned int)a3 < v4 )\n    {\n      v7 = *(_DWORD *)(a1 + 15352);\n      sub_180020EF0(a1, 0, a3, a4);\n      v4 = *(_DWORD *)(a1 + 15296);\n      *(_DWORD *)(a1 + 15352) = v7;\n    }\n    if ( v4 < v5 )\n    {\n      do\n      {\n        LOBYTE(a2) = 1;\n        sub_1800250E0(a1, a2);\n      }\n      while ( *(_DWORD *)(a1 + 15296) < v5 );\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_180022840 from 0x180022840 to 0x1800228b2 (114 bytes)\n; \n; 4 xrefs:\n; > sub_18001FF20 @ 0x18001ff62\n; > <???> @ 0x18017f914\n; > <???> @ 0x18017f924\n; > <???> @ 0x1801f7524\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, 0x180022840\npush    rdi                                                            ; +0x5, 0x180022845\nsub     rsp, 30h                                                       ; +0x6, 0x180022846\nmov     eax, [rcx+3BC0h]                                               ; +0xa, 0x18002284a\nmov     edi, r8d                                                       ; +0x10, 0x180022850\nmov     rbx, rcx                                                       ; +0x13, 0x180022853\ncmp     r8d, eax                                                       ; +0x16, 0x180022856\njz      short loc_1800228A5                                            ; +0x19, 0x180022859\njnb     short loc_180022884                                            ; +0x1b, 0x18002285b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x1d, 0x18002285d\nxor     edx, edx                                                       ; +0x22, 0x180022862\nmovss   xmm6, dword ptr [rcx+3BF8h]                                    ; +0x24, 0x180022864\ncall    sub_180020EF0                                                  ; +0x2c, 0x18002286c\nmov     eax, [rbx+3BC0h]                                               ; +0x31, 0x180022871\nmovss   dword ptr [rbx+3BF8h], xmm6                                    ; +0x37, 0x180022877\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x3f, 0x18002287f\ncmp     eax, edi                                                       ; +0x44, 0x180022884\njnb     short loc_1800228A5                                            ; +0x46, 0x180022886\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x180022888\nxor     r8d, r8d                                                       ; +0x50, 0x180022890\nmov     dl, 1                                                          ; +0x53, 0x180022893\nmov     rcx, rbx                                                       ; +0x55, 0x180022895\ncall    sub_1800250E0                                                  ; +0x58, 0x180022898\ncmp     [rbx+3BC0h], edi                                               ; +0x5d, 0x18002289d\njb      short loc_180022890                                            ; +0x63, 0x1800228a3\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x65, 0x1800228a5\nxor     eax, eax                                                       ; +0x6a, 0x1800228aa\nadd     rsp, 30h                                                       ; +0x6c, 0x1800228ac\npop     rdi                                                            ; +0x70, 0x1800228b0\nretn                                                                   ; +0x71, 0x1800228b1", "xrefs": ["sub_18001FF20 @ 0x18001ff62", "<???> @ 0x18017f914", "<???> @ 0x18017f924", "<???> @ 0x1801f7524"], "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"}