{"type": "func", "start": 745888, "end": 746050, "name": "FMOD::Sound::setLoopPoints", "pseudocode": "// \n// FMOD::Sound::setLoopPoints from 0xb61a0 to 0xb6242 (162 bytes)\n// \n// 1 xrefs:\n// > FMOD::Sound::setLoopPoints @ 0xe06a8\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::setLoopPoints(\n        FMOD::Sound *this,\n        unsigned int a2,\n        unsigned int a3,\n        unsigned int a4,\n        unsigned int a5)\n{\n  int v9; // r6\n  int v10; // r0\n  int v11; // r0\n  _BYTE v13[256]; // [sp+8h] [bp-120h] BYREF\n  int v14; // [sp+108h] [bp-20h] BYREF\n  _DWORD *v15; // [sp+10Ch] [bp-1Ch] BYREF\n\n  v14 = 0;\n  v9 = sub_54E84((int)this, &v15, (int)&v14);\n  if ( !v9 )\n  {\n    v10 = v15[47];\n    __dmb(0xBu);\n    if ( v10 && (v11 = v15[47], __dmb(0xBu), v11 != 7) )\n    {\n      v9 = 46;\n    }\n    else\n    {\n      v9 = (*(int (__fastcall **)(_DWORD *, unsigned int, unsigned int, unsigned int, unsigned int))(*v15 + 156))(\n             v15,\n             a2,\n             a3,\n             a4,\n             a5);\n      if ( !v9 )\n      {\n        v9 = 0;\n        goto LABEL_9;\n      }\n    }\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_AD860(v13, 256, a2, a3, a4, a5);\n    sub_BAB40(v9, 5, this, \"Sound::setLoopPoints\", v13);\n  }\nLABEL_9:\n  sub_6429C(&v14);\n  return v9;\n}", "assembly": "; \n; FMOD::Sound::setLoopPoints from 0xb61a0 to 0xb6242 (162 bytes)\n; \n; 1 xrefs:\n; > FMOD::Sound::setLoopPoints @ 0xe06a8\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, 0xb61a0\nADD             R7, SP, #0xC                                           ; +0x2, 0xb61a2\nPUSH.W          {R8-R10}                                               ; +0x4, 0xb61a4\nSUB             SP, SP, #0x110                                         ; +0x8, 0xb61a8\nMOV             R8, R2                                                 ; +0xa, 0xb61aa\nMOV             R9, R1                                                 ; +0xc, 0xb61ac\nMOV             R4, R0                                                 ; +0xe, 0xb61ae\nMOVS            R0, #0                                                 ; +0x10, 0xb61b0\nADD             R1, SP, #0x110+var_4                                   ; +0x12, 0xb61b2\nADD             R2, SP, #0x110+var_8                                   ; +0x14, 0xb61b4\nSTR             R0, [SP,#0x110+var_8]                                  ; +0x16, 0xb61b6\nMOV             R0, R4                                                 ; +0x18, 0xb61b8\nMOV             R5, R3                                                 ; +0x1a, 0xb61ba\nBL              sub_54E84                                              ; +0x1c, 0xb61bc\nLDR.W           R10, [R7,#-0x18+arg_0]                                 ; +0x20, 0xb61c0\nMOV             R6, R0                                                 ; +0x24, 0xb61c4\nCBNZ            R0, loc_B6200                                          ; +0x26, 0xb61c6\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x28, 0xb61c8\nLDR.W           R0, [R0,#0xBC]                                         ; +0x2a, 0xb61ca\nDMB.W           ISH                                                    ; +0x2e, 0xb61ce\nCBZ             R0, loc_B61E2                                          ; +0x32, 0xb61d2\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x34, 0xb61d4\nLDR.W           R0, [R0,#0xBC]                                         ; +0x36, 0xb61d6\nDMB.W           ISH                                                    ; +0x3a, 0xb61da\nCMP             R0, #7                                                 ; +0x3e, 0xb61de\nBNE             loc_B61FE                                              ; +0x40, 0xb61e0\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x42, 0xb61e2\nMOV             R2, R8                                                 ; +0x44, 0xb61e4\nMOV             R3, R5                                                 ; +0x46, 0xb61e6\nLDR             R1, [R0]                                               ; +0x48, 0xb61e8\nLDR.W           R6, [R1,#0x9C]                                         ; +0x4a, 0xb61ea\nMOV             R1, R9                                                 ; +0x4e, 0xb61ee\nSTR.W           R10, [SP,#0x110+var_110]                               ; +0x50, 0xb61f0\nBLX             R6                                                     ; +0x54, 0xb61f4\nMOV             R6, R0                                                 ; +0x56, 0xb61f6\nCBNZ            R0, loc_B6200                                          ; +0x58, 0xb61f8\nMOVS            R6, #0                                                 ; +0x5a, 0xb61fa\nB               loc_B6232                                              ; +0x5c, 0xb61fc\nMOVS            R6, #0x2E ; '.'                                        ; +0x5e, 0xb61fe\nLDR             R0, =(off_E6144 - 0xB6206)                             ; +0x60, 0xb6200\nADD             R0, PC; off_E6144                                      ; +0x62, 0xb6202\nLDR             R0, [R0]; off_E8000                                    ; +0x64, 0xb6204\nLDR             R0, [R0]; dword_F2488                                  ; +0x66, 0xb6206\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x68, 0xb6208\nLSLS            R0, R0, #0x18                                          ; +0x6a, 0xb620a\nBPL             loc_B6232                                              ; +0x6c, 0xb620c\nSTRD.W          R5, R10, [SP,#0x110+var_110]                           ; +0x6e, 0xb620e\nADD             R5, SP, #0x110+var_108                                 ; +0x72, 0xb6212\nMOV.W           R1, #0x100                                             ; +0x74, 0xb6214\nMOV             R2, R9                                                 ; +0x78, 0xb6218\nMOV             R0, R5                                                 ; +0x7a, 0xb621a\nMOV             R3, R8                                                 ; +0x7c, 0xb621c\nBL              sub_AD860                                              ; +0x7e, 0xb621e\nSTR             R5, [SP,#0x110+var_110]                                ; +0x82, 0xb6222\nMOV             R0, R6                                                 ; +0x84, 0xb6224\nLDR             R3, =(aSoundSetlooppo - 0xB6230); \"Sound::setLoopPoints\" ... ; +0x86, 0xb6226\nMOVS            R1, #5                                                 ; +0x88, 0xb6228\nMOV             R2, R4                                                 ; +0x8a, 0xb622a\nADD             R3, PC; \"Sound::setLoopPoints\"                         ; +0x8c, 0xb622c\nBL              sub_BAB40                                              ; +0x8e, 0xb622e\nADD             R0, SP, #0x110+var_8                                   ; +0x92, 0xb6232\nBL              sub_6429C                                              ; +0x94, 0xb6234\nMOV             R0, R6                                                 ; +0x98, 0xb6238\nADD             SP, SP, #0x110                                         ; +0x9a, 0xb623a\nPOP.W           {R8-R10}                                               ; +0x9c, 0xb623c\nPOP             {R4-R7,PC}                                             ; +0xa0, 0xb6240", "xrefs": ["FMOD::Sound::setLoopPoints @ 0xe06a8"], "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"}