{"type": "func", "start": 743024, "end": 743174, "name": "FMOD::Sound::getTag", "pseudocode": "// \n// FMOD::Sound::getTag from 0xb5670 to 0xb5706 (150 bytes)\n// \n// 1 xrefs:\n// > FMOD::Sound::getTag @ 0xe05b8\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:43 +0000\n// \n\nint __fastcall FMOD::Sound::getTag(int a1, int a2, int a3, int a4)\n{\n  int v8; // r6\n  int v9; // r0\n  int v10; // r0\n  _BYTE v12[256]; // [sp+8h] [bp-120h] BYREF\n  int v13; // [sp+108h] [bp-20h] BYREF\n  _DWORD *v14; // [sp+10Ch] [bp-1Ch] BYREF\n\n  v13 = 0;\n  v8 = sub_54E84(a1, &v14, (int)&v13);\n  if ( !v8 )\n  {\n    v9 = v14[47];\n    __dmb(0xBu);\n    if ( v9 && (v10 = v14[47], __dmb(0xBu), v10 != 7) )\n    {\n      v8 = 46;\n    }\n    else\n    {\n      v8 = (*(int (__fastcall **)(_DWORD *, int, int, int))(*v14 + 92))(v14, a2, a3, a4);\n      if ( !v8 )\n      {\n        v8 = 0;\n        goto LABEL_9;\n      }\n    }\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_B5710(v12, 256, a2, a3, a4);\n    sub_BAB40(v8, 5, a1, \"Sound::getTag\", v12);\n  }\nLABEL_9:\n  sub_6429C(&v13);\n  return v8;\n}", "assembly": "; \n; FMOD::Sound::getTag from 0xb5670 to 0xb5706 (150 bytes)\n; \n; 1 xrefs:\n; > FMOD::Sound::getTag @ 0xe05b8\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:43 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xb5670\nADD             R7, SP, #0xC                                           ; +0x2, 0xb5672\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0xb5674\nSUB             SP, SP, #0x110                                         ; +0x8, 0xb5678\nMOV             R8, R2                                                 ; +0xa, 0xb567a\nMOV             R9, R1                                                 ; +0xc, 0xb567c\nMOV             R4, R0                                                 ; +0xe, 0xb567e\nMOVS            R0, #0                                                 ; +0x10, 0xb5680\nADD             R1, SP, #0x110+var_4                                   ; +0x12, 0xb5682\nADD             R2, SP, #0x110+var_8                                   ; +0x14, 0xb5684\nSTR             R0, [SP,#0x110+var_8]                                  ; +0x16, 0xb5686\nMOV             R0, R4                                                 ; +0x18, 0xb5688\nMOV             R5, R3                                                 ; +0x1a, 0xb568a\nBL              sub_54E84                                              ; +0x1c, 0xb568c\nMOV             R6, R0                                                 ; +0x20, 0xb5690\nCBNZ            R0, loc_B56C6                                          ; +0x22, 0xb5692\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x24, 0xb5694\nLDR.W           R0, [R0,#0xBC]                                         ; +0x26, 0xb5696\nDMB.W           ISH                                                    ; +0x2a, 0xb569a\nCBZ             R0, loc_B56AE                                          ; +0x2e, 0xb569e\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x30, 0xb56a0\nLDR.W           R0, [R0,#0xBC]                                         ; +0x32, 0xb56a2\nDMB.W           ISH                                                    ; +0x36, 0xb56a6\nCMP             R0, #7                                                 ; +0x3a, 0xb56aa\nBNE             loc_B56C4                                              ; +0x3c, 0xb56ac\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x3e, 0xb56ae\nMOV             R2, R8                                                 ; +0x40, 0xb56b0\nMOV             R3, R5                                                 ; +0x42, 0xb56b2\nLDR             R1, [R0]                                               ; +0x44, 0xb56b4\nLDR             R6, [R1,#0x5C]                                         ; +0x46, 0xb56b6\nMOV             R1, R9                                                 ; +0x48, 0xb56b8\nBLX             R6                                                     ; +0x4a, 0xb56ba\nMOV             R6, R0                                                 ; +0x4c, 0xb56bc\nCBNZ            R0, loc_B56C6                                          ; +0x4e, 0xb56be\nMOVS            R6, #0                                                 ; +0x50, 0xb56c0\nB               loc_B56F6                                              ; +0x52, 0xb56c2\nMOVS            R6, #0x2E ; '.'                                        ; +0x54, 0xb56c4\nLDR             R0, =(off_E6144 - 0xB56CC)                             ; +0x56, 0xb56c6\nADD             R0, PC; off_E6144                                      ; +0x58, 0xb56c8\nLDR             R0, [R0]; off_E8000                                    ; +0x5a, 0xb56ca\nLDR             R0, [R0]; dword_F2488                                  ; +0x5c, 0xb56cc\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x5e, 0xb56ce\nLSLS            R0, R0, #0x18                                          ; +0x60, 0xb56d0\nBPL             loc_B56F6                                              ; +0x62, 0xb56d2\nSTR             R5, [SP,#0x110+var_110]                                ; +0x64, 0xb56d4\nADD             R5, SP, #0x110+var_108                                 ; +0x66, 0xb56d6\nMOV.W           R1, #0x100                                             ; +0x68, 0xb56d8\nMOV             R2, R9                                                 ; +0x6c, 0xb56dc\nMOV             R0, R5                                                 ; +0x6e, 0xb56de\nMOV             R3, R8                                                 ; +0x70, 0xb56e0\nBL              sub_B5710                                              ; +0x72, 0xb56e2\nSTR             R5, [SP,#0x110+var_110]                                ; +0x76, 0xb56e6\nMOV             R0, R6                                                 ; +0x78, 0xb56e8\nLDR             R3, =(aSoundGettag - 0xB56F4); \"Sound::getTag\" ...     ; +0x7a, 0xb56ea\nMOVS            R1, #5                                                 ; +0x7c, 0xb56ec\nMOV             R2, R4                                                 ; +0x7e, 0xb56ee\nADD             R3, PC; \"Sound::getTag\"                                ; +0x80, 0xb56f0\nBL              sub_BAB40                                              ; +0x82, 0xb56f2\nADD             R0, SP, #0x110+var_8                                   ; +0x86, 0xb56f6\nBL              sub_6429C                                              ; +0x88, 0xb56f8\nMOV             R0, R6                                                 ; +0x8c, 0xb56fc\nADD             SP, SP, #0x110                                         ; +0x8e, 0xb56fe\nPOP.W           {R8,R9,R11}                                            ; +0x90, 0xb5700\nPOP             {R4-R7,PC}                                             ; +0x94, 0xb5704", "xrefs": ["FMOD::Sound::getTag @ 0xe05b8"], "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"}