{"type": "func", "start": 891900, "end": 892028, "name": "FMOD::Sound::setMode", "pseudocode": "// \n// FMOD::Sound::setMode from 0xd9bfc to 0xd9c7c (128 bytes)\n// \n// 4 xrefs:\n// > FMOD::Sound::setMode @ 0x10731c\n// > <???> @ 0x49c0\n// > FMOD::Sound::setMode @ 0x107314\n// > <???> @ 0x110250\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:54 +0000\n// \n\n__int64 __fastcall FMOD::Sound::setMode(FMOD::Sound *this)\n{\n  unsigned int v1; // w21\n  __int64 v2; // x0\n  char v3; // w8\n  __int64 v4; // x0\n  __int64 v6; // x0\n  int v7; // w8\n  char v8; // zf\n  __int64 v9; // x0\n  __int64 v10; // x8\n\n  v1 = sub_DA3C4(this);\n  if ( !v1 )\n  {\n    v6 = sub_DA368();\n    if ( !v7 || (v6 = sub_DA358(v6), v8) )\n    {\n      v9 = sub_DA608(v6);\n      v2 = (*(__int64 (__fastcall **)(__int64))(v10 + 280))(v9);\n      v1 = v2;\n      if ( !(_DWORD)v2 )\n        goto LABEL_4;\n    }\n    else\n    {\n      v1 = 46;\n    }\n  }\n  v2 = sub_DA344();\n  if ( v3 < 0 )\n  {\n    v4 = sub_DA648(v2);\n    v2 = sub_DA388(v4);\n  }\nLABEL_4:\n  sub_DA538(v2);\n  return v1;\n}", "assembly": "; \n; FMOD::Sound::setMode from 0xd9bfc to 0xd9c7c (128 bytes)\n; \n; 4 xrefs:\n; > FMOD::Sound::setMode @ 0x10731c\n; > <???> @ 0x49c0\n; > FMOD::Sound::setMode @ 0x107314\n; > <???> @ 0x110250\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:54 +0000\n; \nSUB             SP, SP, #0x140                                         ; +0x0, 0xd9bfc\nSTP             X29, X30, [SP,#0x130+var_s0]                           ; +0x4, 0xd9c00\nADD             X29, SP, #0x130                                        ; +0x8, 0xd9c04\nSTP             X20, X19, [SP,#0x130+var_10]                           ; +0xc, 0xd9c08\nMOV             W20, W1                                                ; +0x10, 0xd9c0c\nBL              sub_DA3C4                                              ; +0x14, 0xd9c10\nMOV             W21, W0                                                ; +0x18, 0xd9c14\nCBZ             W0, loc_D9C48                                          ; +0x1c, 0xd9c18\nBL              sub_DA344                                              ; +0x20, 0xd9c1c\nTBZ             W8, #7, loc_D9C38                                      ; +0x24, 0xd9c20\nBL              sub_DA648                                              ; +0x28, 0xd9c24\nADRL            X3, aSoundSetmode; \"Sound::setMode\"                    ; +0x2c, 0xd9c28\nMOV             X4, SP                                                 ; +0x34, 0xd9c30\nBL              sub_DA388                                              ; +0x38, 0xd9c34\nBL              sub_DA538                                              ; +0x3c, 0xd9c38\nMOV             W0, W21                                                ; +0x40, 0xd9c3c\nLDP             X29, X30, [SP,#0x130+var_s0]                           ; +0x44, 0xd9c40\nB               loc_DA378                                              ; +0x48, 0xd9c44\nBL              sub_DA368                                              ; +0x4c, 0xd9c48\nCBZ             W8, loc_D9C5C                                          ; +0x50, 0xd9c4c\nLDUR            X8, [X29,#var_28]                                      ; +0x54, 0xd9c50\nBL              sub_DA358                                              ; +0x58, 0xd9c54\nB.NE            loc_D9C74                                              ; +0x5c, 0xd9c58\nBL              sub_DA608                                              ; +0x60, 0xd9c5c\nLDR             X8, [X8,#0x118]                                        ; +0x64, 0xd9c60\nBLR             X8                                                     ; +0x68, 0xd9c64\nMOV             W21, W0                                                ; +0x6c, 0xd9c68\nCBNZ            W0, loc_D9C1C                                          ; +0x70, 0xd9c6c\nB               loc_D9C38                                              ; +0x74, 0xd9c70\nMOV             W21, #0x2E ; '.'                                       ; +0x78, 0xd9c74\nB               loc_D9C1C                                              ; +0x7c, 0xd9c78", "xrefs": ["FMOD::Sound::setMode @ 0x10731c", "<???> @ 0x49c0", "FMOD::Sound::setMode @ 0x107314", "<???> @ 0x110250"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}