{"type": "func", "start": 787060, "end": 787140, "name": "FMOD_OS_Time_GetUs", "pseudocode": "// \n// FMOD_OS_Time_GetUs from 0xc0274 to 0xc02c4 (80 bytes)\n// \n// 1 xrefs:\n// > j_FMOD_OS_Time_GetUs @ 0xe2df8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:41:48 +0000\n// \n\nint __fastcall FMOD_OS_Time_GetUs(_DWORD *a1)\n{\n  int v3; // r0\n  int v4; // r1\n  int v5; // [sp+0h] [bp-10h] BYREF\n  unsigned int v6; // [sp+4h] [bp-Ch]\n\n  v5 = 0;\n  v6 = 0;\n  if ( clock_gettime(1, (struct timespec *)&v5) )\n    return 28;\n  v3 = v5;\n  v4 = *(int *)((char *)&dword_150 + (_DWORD)off_E8000);\n  if ( !v4 )\n  {\n    v4 = v5;\n    *(int *)((char *)&dword_150 + (_DWORD)off_E8000) = v5;\n  }\n  *a1 = v6 / 0x3E8 + 1000000 * (v3 - v4);\n  return 0;\n}", "assembly": "; \n; FMOD_OS_Time_GetUs from 0xc0274 to 0xc02c4 (80 bytes)\n; \n; 1 xrefs:\n; > j_FMOD_OS_Time_GetUs @ 0xe2df8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:41:48 +0000\n; \nPUSH            {R2-R5,R7,LR}                                          ; +0x0, 0xc0274\nADD             R7, SP, #0x10                                          ; +0x2, 0xc0276\nMOV             R4, R0                                                 ; +0x4, 0xc0278\nMOVS            R0, #0                                                 ; +0x6, 0xc027a\nSTRD.W          R0, R0, [SP,#8+var_8]                                  ; +0x8, 0xc027c\nMOV             R1, SP; tp                                             ; +0xc, 0xc0280\nMOVS            R0, #1; clock_id                                       ; +0xe, 0xc0282\nBLX             clock_gettime                                          ; +0x10, 0xc0284\nCBZ             R0, loc_C028E                                          ; +0x14, 0xc0288\nMOVS            R0, #0x1C                                              ; +0x16, 0xc028a\nB               loc_C02C0                                              ; +0x18, 0xc028c\nLDR             R0, =(off_E6144 - 0xC0294)                             ; +0x1a, 0xc028e\nADD             R0, PC; off_E6144                                      ; +0x1c, 0xc0290\nLDR             R0, [R0]; off_E8000                                    ; +0x1e, 0xc0292\nLDR             R2, [R0]; dword_F2488                                  ; +0x20, 0xc0294\nLDR             R0, [SP,#8+var_8]                                      ; +0x22, 0xc0296\nLDR.W           R1, [R2,#(dword_F25D8 - 0xF2488)]                      ; +0x24, 0xc0298\nCBNZ            R1, loc_C02A4                                          ; +0x28, 0xc029c\nMOV             R1, R0                                                 ; +0x2a, 0xc029e\nSTR.W           R0, [R2,#(dword_F25D8 - 0xF2488)]                      ; +0x2c, 0xc02a0\nSUBS            R0, R0, R1                                             ; +0x30, 0xc02a4\nMOVW            R1, #0x3D09                                            ; +0x32, 0xc02a6\nMUL             R5, R0, R1                                             ; +0x36, 0xc02aa\nLDR             R0, [SP,#8+var_4]                                      ; +0x3a, 0xc02ae\nMOV.W           R1, #0x3E8                                             ; +0x3c, 0xc02b0\nBLX             j___aeabi_uidiv                                        ; +0x40, 0xc02b4\nADD.W           R0, R0, R5,LSL#6                                       ; +0x44, 0xc02b8\nSTR             R0, [R4]                                               ; +0x48, 0xc02bc\nMOVS            R0, #0                                                 ; +0x4a, 0xc02be\nADD             SP, SP, #8                                             ; +0x4c, 0xc02c0\nPOP             {R4,R5,R7,PC}                                          ; +0x4e, 0xc02c2", "xrefs": ["j_FMOD_OS_Time_GetUs @ 0xe2df8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}