{"type": "func", "start": 6442460288, "end": 6442460430, "name": "sub_180002480", "pseudocode": "// \n// sub_180002480 from 0x180002480 to 0x18000250e (142 bytes)\n// \n// 2 xrefs:\n// > cocos2d::extension::AssetsManager::downLoad @ 0x180002705\n// > <???> @ 0x180049138\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_180002480(__int64 a1, double a2, double a3)\n{\n  _QWORD *v4; // rbx\n  _DWORD *v5; // rax\n\n  v4 = operator new(0x10u);\n  v4[1] = 0;\n  *(_DWORD *)v4 = 2;\n  v5 = operator new(0x10u);\n  v5[1] = 0;\n  *((_QWORD *)v5 + 1) = a1;\n  *v5 = (int)(a3 / a2 * 100.0);\n  v4[1] = v5;\n  sub_180002B70(*(_QWORD *)(a1 + 176), v4);\n  return 0;\n}", "assembly": "; \n; sub_180002480 from 0x180002480 to 0x18000250e (142 bytes)\n; \n; 2 xrefs:\n; > cocos2d::extension::AssetsManager::downLoad @ 0x180002705\n; > <???> @ 0x180049138\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_8], rbx                                               ; +0x0, 0x180002480\npush    rdi                                                            ; +0x5, 0x180002485\nsub     rsp, 40h                                                       ; +0x6, 0x180002486\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xa, 0x18000248a\nmov     rdi, rcx                                                       ; +0xf, 0x18000248f\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x12, 0x180002492\nmov     ecx, 10h; Size                                                 ; +0x17, 0x180002497\nmovaps  xmm7, xmm2                                                     ; +0x1c, 0x18000249c\nmovaps  xmm6, xmm1                                                     ; +0x1f, 0x18000249f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x1800024a2\nmov     ecx, 10h; Size                                                 ; +0x27, 0x1800024a7\nmov     [rsp+48h+arg_0], rax                                           ; +0x2c, 0x1800024ac\nmov     rbx, rax                                                       ; +0x31, 0x1800024b1\nmov     qword ptr [rax+8], 0                                           ; +0x34, 0x1800024b4\nmov     dword ptr [rax], 2                                             ; +0x3c, 0x1800024bc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x42, 0x1800024c2\ndivsd   xmm7, xmm6                                                     ; +0x47, 0x1800024c7\nmov     rdx, rbx                                                       ; +0x4b, 0x1800024cb\nmov     dword ptr [rax+4], 0                                           ; +0x4e, 0x1800024ce\nmov     [rax+8], rdi                                                   ; +0x55, 0x1800024d5\nmulsd   xmm7, cs:qword_180029568                                       ; +0x59, 0x1800024d9\ncvttsd2si ecx, xmm7                                                    ; +0x61, 0x1800024e1\nmov     [rax], ecx                                                     ; +0x65, 0x1800024e5\nmov     [rbx+8], rax                                                   ; +0x67, 0x1800024e7\nmov     rcx, [rdi+0B0h]                                                ; +0x6b, 0x1800024eb\ncall    sub_180002B70                                                  ; +0x72, 0x1800024f2\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x77, 0x1800024f7\nxor     eax, eax                                                       ; +0x7c, 0x1800024fc\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x7e, 0x1800024fe\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x83, 0x180002503\nadd     rsp, 40h                                                       ; +0x88, 0x180002508\npop     rdi                                                            ; +0x8c, 0x18000250c\nretn                                                                   ; +0x8d, 0x18000250d", "xrefs": ["cocos2d::extension::AssetsManager::downLoad @ 0x180002705", "<???> @ 0x180049138"], "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"}