{"type": "func", "start": 6442459600, "end": 6442459742, "name": "sub_1800021D0", "pseudocode": "// \n// sub_1800021D0 from 0x1800021d0 to 0x18000225e (142 bytes)\n// \n// 2 xrefs:\n// > cocos2d::extension::AssetsManager::downLoad @ 0x18000240f\n// > <???> @ 0x18004b108\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 12:15:34 +0000\n// \n\n__int64 __fastcall sub_1800021D0(__int64 a1, double a2, double a3)\n{\n  __int64 v4; // rbx\n  __int64 v5; // rax\n\n  v4 = sub_18001F040(0x10u);\n  *(_QWORD *)(v4 + 8) = 0;\n  *(_DWORD *)v4 = 2;\n  v5 = sub_18001F040(0x10u);\n  *(_DWORD *)(v5 + 4) = 0;\n  *(_QWORD *)(v5 + 8) = a1;\n  *(_DWORD *)v5 = (int)(a3 / a2 * 100.0);\n  *(_QWORD *)(v4 + 8) = v5;\n  sub_180002890(*(_QWORD *)(a1 + 176), v4);\n  return 0;\n}", "assembly": "; \n; sub_1800021D0 from 0x1800021d0 to 0x18000225e (142 bytes)\n; \n; 2 xrefs:\n; > cocos2d::extension::AssetsManager::downLoad @ 0x18000240f\n; > <???> @ 0x18004b108\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 12:15:34 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800021d0\npush    rdi                                                            ; +0x5, 0x1800021d5\nsub     rsp, 40h                                                       ; +0x6, 0x1800021d6\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xa, 0x1800021da\nmov     rdi, rcx                                                       ; +0xf, 0x1800021df\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x12, 0x1800021e2\nmov     ecx, 10h; Size                                                 ; +0x17, 0x1800021e7\nmovaps  xmm7, xmm2                                                     ; +0x1c, 0x1800021ec\nmovaps  xmm6, xmm1                                                     ; +0x1f, 0x1800021ef\ncall    sub_18001F040                                                  ; +0x22, 0x1800021f2\nmov     ecx, 10h; Size                                                 ; +0x27, 0x1800021f7\nmov     [rsp+48h+arg_0], rax                                           ; +0x2c, 0x1800021fc\nmov     rbx, rax                                                       ; +0x31, 0x180002201\nmov     qword ptr [rax+8], 0                                           ; +0x34, 0x180002204\nmov     dword ptr [rax], 2                                             ; +0x3c, 0x18000220c\ncall    sub_18001F040                                                  ; +0x42, 0x180002212\ndivsd   xmm7, xmm6                                                     ; +0x47, 0x180002217\nmov     rdx, rbx                                                       ; +0x4b, 0x18000221b\nmov     dword ptr [rax+4], 0                                           ; +0x4e, 0x18000221e\nmov     [rax+8], rdi                                                   ; +0x55, 0x180002225\nmulsd   xmm7, cs:qword_18002BC30                                       ; +0x59, 0x180002229\ncvttsd2si ecx, xmm7                                                    ; +0x61, 0x180002231\nmov     [rax], ecx                                                     ; +0x65, 0x180002235\nmov     [rbx+8], rax                                                   ; +0x67, 0x180002237\nmov     rcx, [rdi+0B0h]                                                ; +0x6b, 0x18000223b\ncall    sub_180002890                                                  ; +0x72, 0x180002242\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x77, 0x180002247\nxor     eax, eax                                                       ; +0x7c, 0x18000224c\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x7e, 0x18000224e\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x83, 0x180002253\nadd     rsp, 40h                                                       ; +0x88, 0x180002258\npop     rdi                                                            ; +0x8c, 0x18000225c\nretn                                                                   ; +0x8d, 0x18000225d", "xrefs": ["cocos2d::extension::AssetsManager::downLoad @ 0x18000240f", "<???> @ 0x18004b108"], "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"}