{"type": "func", "start": 6442920400, "end": 6442920481, "name": "cocos2d::CCTime::timersubCocos2d", "pseudocode": "// \n// cocos2d::CCTime::timersubCocos2d from 0x1800729d0 to 0x180072a21 (81 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801438a8\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\ndouble __fastcall cocos2d::CCTime::timersubCocos2d(struct cocos2d::cc_timeval *a1, struct cocos2d::cc_timeval *a2)\n{\n  if ( a1 && a2 )\n    return (double)a2->tv_usec / 1000.0\n         + (double)a2->tv_sec * 1000.0\n         - ((double)a1->tv_usec / 1000.0\n          + (double)a1->tv_sec * 1000.0);\n  else\n    return 0.0;\n}", "assembly": "; \n; cocos2d::CCTime::timersubCocos2d from 0x1800729d0 to 0x180072a21 (81 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801438a8\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\ntest    rcx, rcx                                                       ; +0x0, 0x1800729d0\njz      short loc_180072A1D                                            ; +0x3, 0x1800729d3\ntest    rdx, rdx                                                       ; +0x5, 0x1800729d5\njz      short loc_180072A1D                                            ; +0x8, 0x1800729d8\nmovsd   xmm3, cs:qword_180100610                                       ; +0xa, 0x1800729da\nxorps   xmm0, xmm0                                                     ; +0x12, 0x1800729e2\ncvtsi2sd xmm0, dword ptr [rdx+4]                                       ; +0x15, 0x1800729e5\nxorps   xmm1, xmm1                                                     ; +0x1a, 0x1800729ea\nxorps   xmm2, xmm2                                                     ; +0x1d, 0x1800729ed\ncvtsi2sd xmm1, dword ptr [rdx]                                         ; +0x20, 0x1800729f0\ncvtsi2sd xmm2, dword ptr [rcx+4]                                       ; +0x24, 0x1800729f4\nmulsd   xmm1, xmm3                                                     ; +0x29, 0x1800729f9\ndivsd   xmm0, xmm3                                                     ; +0x2d, 0x1800729fd\ndivsd   xmm2, xmm3                                                     ; +0x31, 0x180072a01\naddsd   xmm0, xmm1                                                     ; +0x35, 0x180072a05\nxorps   xmm1, xmm1                                                     ; +0x39, 0x180072a09\ncvtsi2sd xmm1, dword ptr [rcx]                                         ; +0x3c, 0x180072a0c\nmulsd   xmm1, xmm3                                                     ; +0x40, 0x180072a10\naddsd   xmm2, xmm1                                                     ; +0x44, 0x180072a14\nsubsd   xmm0, xmm2                                                     ; +0x48, 0x180072a18\nretn                                                                   ; +0x4c, 0x180072a1c\nxorps   xmm0, xmm0                                                     ; +0x4d, 0x180072a1d\nretn                                                                   ; +0x50, 0x180072a20", "xrefs": ["<???> @ 0x1801438a8"], "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"}