{"type": "func", "start": 786228, "end": 786344, "name": "FMOD_Android_JNI_Close", "pseudocode": "// \n// FMOD_Android_JNI_Close from 0xbff34 to 0xbffa8 (116 bytes)\n// \n// 0 xrefs:\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_Android_JNI_Close(int a1, int a2, int a3)\n{\n  int result; // r0\n  int v4; // r0\n  int v5; // r3\n  int v7; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = 0;\n  result = sub_BFE7C((int)&v7);\n  if ( !result )\n  {\n    v4 = (*(int (__fastcall **)(int, int, const char *, const char *, int))(*(_DWORD *)v7 + 452))(\n           v7,\n           gFMODClass,\n           \"close\",\n           \"()V\",\n           a3);\n    if ( v4 && (sub_BFF16(v7, gFMODClass, v4, v5), !(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 912))(v7)) )\n    {\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 88))(v7, gAudioDeviceClass);\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 88))(v7, gMediaCodecClass);\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 88))(v7, gFMODClass);\n      *(int *)((char *)&dword_158 + (_DWORD)off_E8000) = 0;\n      return 0;\n    }\n    else\n    {\n      return 28;\n    }\n  }\n  return result;\n}", "assembly": "; \n; FMOD_Android_JNI_Close from 0xbff34 to 0xbffa8 (116 bytes)\n; \n; 0 xrefs:\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, 0xbff34\nADD             R7, SP, #0x10                                          ; +0x2, 0xbff36\nMOVS            R0, #0                                                 ; +0x4, 0xbff38\nSTR             R0, [SP,#8+var_4]                                      ; +0x6, 0xbff3a\nADD             R0, SP, #8+var_4                                       ; +0x8, 0xbff3c\nBL              sub_BFE7C                                              ; +0xa, 0xbff3e\nCBNZ            R0, loc_BFFA4                                          ; +0xe, 0xbff42\nLDR             R4, =(gAudioDeviceClass - 0xBFF4C)                     ; +0x10, 0xbff44\nLDR             R0, [SP,#8+var_4]                                      ; +0x12, 0xbff46\nADD             R4, PC; gAudioDeviceClass                              ; +0x14, 0xbff48\nLDR             R2, [R0]                                               ; +0x16, 0xbff4a\nLDR             R1, [R4,#(gFMODClass - 0x1261B8)]                      ; +0x18, 0xbff4c\nLDR.W           R5, [R2,#0x1C4]                                        ; +0x1a, 0xbff4e\nLDR             R2, =(aClose_0 - 0xBFF5A); \"close\" ...                 ; +0x1e, 0xbff52\nLDR             R3, =(aV - 0xBFF5C); \"()V\" ...                         ; +0x20, 0xbff54\nADD             R2, PC; \"close\"                                        ; +0x22, 0xbff56\nADD             R3, PC; \"()V\"                                          ; +0x24, 0xbff58\nBLX             R5                                                     ; +0x26, 0xbff5a\nCBZ             R0, loc_BFF74                                          ; +0x28, 0xbff5c\nMOV             R2, R0                                                 ; +0x2a, 0xbff5e\nLDR             R1, [R4,#(gFMODClass - 0x1261B8)]                      ; +0x2c, 0xbff60\nLDR             R0, [SP,#8+var_4]                                      ; +0x2e, 0xbff62\nBL              sub_BFF16                                              ; +0x30, 0xbff64\nLDR             R0, [SP,#8+var_4]                                      ; +0x34, 0xbff68\nLDR             R1, [R0]                                               ; +0x36, 0xbff6a\nLDR.W           R1, [R1,#0x390]                                        ; +0x38, 0xbff6c\nBLX             R1                                                     ; +0x3c, 0xbff70\nCBZ             R0, loc_BFF78                                          ; +0x3e, 0xbff72\nMOVS            R0, #0x1C                                              ; +0x40, 0xbff74\nB               loc_BFFA4                                              ; +0x42, 0xbff76\nLDR             R0, [SP,#8+var_4]                                      ; +0x44, 0xbff78\nLDR             R1, [R4]                                               ; +0x46, 0xbff7a\nLDR             R2, [R0]                                               ; +0x48, 0xbff7c\nLDR             R2, [R2,#0x58]                                         ; +0x4a, 0xbff7e\nBLX             R2                                                     ; +0x4c, 0xbff80\nLDR             R0, [SP,#8+var_4]                                      ; +0x4e, 0xbff82\nLDR             R1, [R4,#(gMediaCodecClass - 0x1261B8)]                ; +0x50, 0xbff84\nLDR             R2, [R0]                                               ; +0x52, 0xbff86\nLDR             R2, [R2,#0x58]                                         ; +0x54, 0xbff88\nBLX             R2                                                     ; +0x56, 0xbff8a\nLDR             R0, [SP,#8+var_4]                                      ; +0x58, 0xbff8c\nLDR             R1, [R4,#(gFMODClass - 0x1261B8)]                      ; +0x5a, 0xbff8e\nLDR             R2, [R0]                                               ; +0x5c, 0xbff90\nLDR             R2, [R2,#0x58]                                         ; +0x5e, 0xbff92\nBLX             R2                                                     ; +0x60, 0xbff94\nLDR             R0, =(off_E6144 - 0xBFF9C)                             ; +0x62, 0xbff96\nADD             R0, PC; off_E6144                                      ; +0x64, 0xbff98\nLDR             R0, [R0]; off_E8000                                    ; +0x66, 0xbff9a\nLDR             R1, [R0]; dword_F2488                                  ; +0x68, 0xbff9c\nMOVS            R0, #0                                                 ; +0x6a, 0xbff9e\nSTR.W           R0, [R1,#(dword_F25E0 - 0xF2488)]                      ; +0x6c, 0xbffa0\nADD             SP, SP, #8                                             ; +0x70, 0xbffa4\nPOP             {R4,R5,R7,PC}                                          ; +0x72, 0xbffa6", "xrefs": [], "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"}