{"type": "func", "start": 747060, "end": 747164, "name": "FMOD::Sound::setUserData", "pseudocode": "// \n// FMOD::Sound::setUserData from 0xb6634 to 0xb669c (104 bytes)\n// \n// 1 xrefs:\n// > FMOD::Sound::setUserData @ 0xe0718\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::setUserData(FMOD::Sound *this, void *a2)\n{\n  int v4; // r5\n  _BYTE v6[256]; // [sp+4h] [bp-114h] BYREF\n  int v7; // [sp+104h] [bp-14h] BYREF\n\n  v4 = sub_54E84((int)this, &v7, 0);\n  if ( !v4 )\n  {\n    v4 = (*(int (__fastcall **)(int, void *))(*(_DWORD *)v7 + 184))(v7, a2);\n    if ( !v4 )\n      return 0;\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_5CBD8((int)v6, 256, a2);\n    sub_BAB40(v4, 5, this, \"Sound::setUserData\", v6);\n  }\n  return v4;\n}", "assembly": "; \n; FMOD::Sound::setUserData from 0xb6634 to 0xb669c (104 bytes)\n; \n; 1 xrefs:\n; > FMOD::Sound::setUserData @ 0xe0718\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, 0xb6634\nADD             R7, SP, #0xC                                           ; +0x2, 0xb6636\nPUSH.W          {R8}                                                   ; +0x4, 0xb6638\nSUB             SP, SP, #0x108                                         ; +0x8, 0xb663c\nMOV             R6, R1                                                 ; +0xa, 0xb663e\nADD             R1, SP, #0x108+var_4                                   ; +0xc, 0xb6640\nMOVS            R2, #0                                                 ; +0xe, 0xb6642\nMOV             R4, R0                                                 ; +0x10, 0xb6644\nBL              sub_54E84                                              ; +0x12, 0xb6646\nMOV             R5, R0                                                 ; +0x16, 0xb664a\nCBNZ            R0, loc_B665E                                          ; +0x18, 0xb664c\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x1a, 0xb664e\nLDR             R1, [R0]                                               ; +0x1c, 0xb6650\nLDR.W           R2, [R1,#0xB8]                                         ; +0x1e, 0xb6652\nMOV             R1, R6                                                 ; +0x22, 0xb6656\nBLX             R2                                                     ; +0x24, 0xb6658\nMOV             R5, R0                                                 ; +0x26, 0xb665a\nCBZ             R0, loc_B6690                                          ; +0x28, 0xb665c\nLDR             R0, =(off_E6144 - 0xB6664)                             ; +0x2a, 0xb665e\nADD             R0, PC; off_E6144                                      ; +0x2c, 0xb6660\nLDR             R0, [R0]; off_E8000                                    ; +0x2e, 0xb6662\nLDR             R0, [R0]; dword_F2488                                  ; +0x30, 0xb6664\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x32, 0xb6666\nLSLS            R0, R0, #0x18                                          ; +0x34, 0xb6668\nBPL             loc_B6692                                              ; +0x36, 0xb666a\nADD.W           R8, SP, #0x108+var_104                                 ; +0x38, 0xb666c\nMOV.W           R1, #0x100                                             ; +0x3c, 0xb6670\nMOV             R2, R6                                                 ; +0x40, 0xb6674\nMOV             R0, R8                                                 ; +0x42, 0xb6676\nBL              sub_5CBD8                                              ; +0x44, 0xb6678\nSTR.W           R8, [SP,#0x108+var_108]                                ; +0x48, 0xb667c\nMOV             R0, R5                                                 ; +0x4c, 0xb6680\nLDR             R3, =(aSoundSetuserda - 0xB668C); \"Sound::setUserData\" ... ; +0x4e, 0xb6682\nMOVS            R1, #5                                                 ; +0x50, 0xb6684\nMOV             R2, R4                                                 ; +0x52, 0xb6686\nADD             R3, PC; \"Sound::setUserData\"                           ; +0x54, 0xb6688\nBL              sub_BAB40                                              ; +0x56, 0xb668a\nB               loc_B6692                                              ; +0x5a, 0xb668e\nMOVS            R5, #0                                                 ; +0x5c, 0xb6690\nMOV             R0, R5                                                 ; +0x5e, 0xb6692\nADD             SP, SP, #0x108                                         ; +0x60, 0xb6694\nPOP.W           {R8}                                                   ; +0x62, 0xb6696\nPOP             {R4-R7,PC}                                             ; +0x66, 0xb669a", "xrefs": ["FMOD::Sound::setUserData @ 0xe0718"], "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"}