{"type": "func", "start": 413512, "end": 413572, "name": "sub_64F48", "pseudocode": "// \n// sub_64F48 from 0x64f48 to 0x64f84 (60 bytes)\n// \n// 5 xrefs:\n// > sub_444D8 @ 0x44760\n// > sub_46B58 @ 0x46f76\n// > sub_479CC @ 0x479fe\n// > sub_AA0BC @ 0xaa0ee\n// > sub_B2B6C @ 0xb2d74\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\nint __fastcall sub_64F48(int a1)\n{\n  _DWORD *v1; // r4\n  int v2; // r2\n  int result; // r0\n\n  if ( !*(_DWORD *)(a1 + 68608) )\n    return 0;\n  v1 = (_DWORD *)(a1 + 68608);\n  v2 = *(_DWORD *)(a1 + 69172);\n  if ( !v2 )\n    return 28;\n  *(_BYTE *)(a1 + 69176) = 0;\n  *(_DWORD *)(a1 + 69172) = 0;\n  result = sub_57B9C(a1, 1048580, v2, 0);\n  if ( !result )\n  {\n    result = j_FMOD_OS_CriticalSection_Leave(*v1);\n    if ( !result )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_64F48 from 0x64f48 to 0x64f84 (60 bytes)\n; \n; 5 xrefs:\n; > sub_444D8 @ 0x44760\n; > sub_46B58 @ 0x46f76\n; > sub_479CC @ 0x479fe\n; > sub_AA0BC @ 0xaa0ee\n; > sub_B2B6C @ 0xb2d74\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\nPUSH            {R4,R6,R7,LR}                                          ; +0x0, 0x64f48\nADD             R7, SP, #8                                             ; +0x2, 0x64f4a\nMOV.W           R1, #0x10C00                                           ; +0x4, 0x64f4c\nLDR             R1, [R0,R1]                                            ; +0x8, 0x64f50\nCBZ             R1, loc_64F7C                                          ; +0xa, 0x64f52\nADD.W           R4, R0, #0x10C00                                       ; +0xc, 0x64f54\nLDR.W           R2, [R4,#0x234]                                        ; +0x10, 0x64f58\nCBZ             R2, loc_64F80                                          ; +0x14, 0x64f5c\nMOVS            R1, #0                                                 ; +0x16, 0x64f5e\nMOVS            R3, #0                                                 ; +0x18, 0x64f60\nSTRB.W          R1, [R4,#0x238]                                        ; +0x1a, 0x64f62\nSTR.W           R1, [R4,#0x234]                                        ; +0x1e, 0x64f66\nLDR             R1, =0x100004                                          ; +0x22, 0x64f6a\nBL              sub_57B9C                                              ; +0x24, 0x64f6c\nCBNZ            R0, locret_64F7A                                       ; +0x28, 0x64f70\nLDR             R0, [R4]                                               ; +0x2a, 0x64f72\nBLX             j_FMOD_OS_CriticalSection_Leave                        ; +0x2c, 0x64f74\nCBZ             R0, loc_64F7C                                          ; +0x30, 0x64f78\nPOP             {R4,R6,R7,PC}                                          ; +0x32, 0x64f7a\nMOVS            R0, #0                                                 ; +0x34, 0x64f7c\nPOP             {R4,R6,R7,PC}                                          ; +0x36, 0x64f7e\nMOVS            R0, #0x1C                                              ; +0x38, 0x64f80\nPOP             {R4,R6,R7,PC}                                          ; +0x3a, 0x64f82", "xrefs": ["sub_444D8 @ 0x44760", "sub_46B58 @ 0x46f76", "sub_479CC @ 0x479fe", "sub_AA0BC @ 0xaa0ee", "sub_B2B6C @ 0xb2d74"], "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"}