{"type": "func", "start": 3159816, "end": 3159932, "name": "FMODAudioEngine::loadAndPlayMusic", "pseudocode": "// \n// FMODAudioEngine::loadAndPlayMusic from 0x303708 to 0x30377c (116 bytes)\n// \n// 3 xrefs:\n// > CreateGuidelinesLayer::playMusic @ 0x3085dc\n// > FindBPMLayer::playMusic @ 0x30874c\n// > SongOptionsLayer::onPlayback @ 0x45ff38\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall FMODAudioEngine::loadAndPlayMusic(FMODAudioEngine *a1, int a2, unsigned int a3, int a4)\n{\n  int v7; // [sp+18h] [bp-8h] BYREF\n\n  sub_775C20(&v7, a2);\n  FMODAudioEngine::loadMusic((int)a1, &v7, 1.0, 0.0, 1.0, 0, a4, 0, 0);\n  sub_774008(&v7);\n  if ( a3 )\n    FMODAudioEngine::setMusicTimeMS(a1, a3, 0, a4);\n  FMODAudioEngine::resumeMusic(a1, a4);\n}", "assembly": "; \n; FMODAudioEngine::loadAndPlayMusic from 0x303708 to 0x30377c (116 bytes)\n; \n; 3 xrefs:\n; > CreateGuidelinesLayer::playMusic @ 0x3085dc\n; > FindBPMLayer::playMusic @ 0x30874c\n; > SongOptionsLayer::onPlayback @ 0x45ff38\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x303708\nSUB             SP, SP, #0x20                                          ; +0x4, 0x30370c\nLDR             R4, =(__stack_chk_guard_ptr - 0x30371A)                ; +0x6, 0x30370e\nMOV             R6, R3                                                 ; +0x8, 0x303710\nADD             R5, SP, #0x20+var_8                                    ; +0xa, 0x303712\nMOV             R7, R0                                                 ; +0xc, 0x303714\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x303716\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x303718\nMOV             R8, R2                                                 ; +0x12, 0x30371a\nMOV             R0, R5                                                 ; +0x14, 0x30371c\nLDR             R3, [R4]                                               ; +0x16, 0x30371e\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x18, 0x303720\nBL              sub_775C20                                             ; +0x1a, 0x303722\nMOVS            R3, #0                                                 ; +0x1e, 0x303726\nMOV.W           R2, #0x3F800000; int                                   ; +0x20, 0x303728\nSTR             R3, [SP,#0x20+var_1C]; char                            ; +0x24, 0x30372c\nMOV             R0, R7; int                                            ; +0x26, 0x30372e\nSTR             R3, [SP,#0x20+var_14]; int                             ; +0x28, 0x303730\nMOV             R1, R5; int                                            ; +0x2a, 0x303732\nSTR             R3, [SP,#0x20+var_10]; char                            ; +0x2c, 0x303734\nMOVS            R3, #0; int                                            ; +0x2e, 0x303736\nSTR             R2, [SP,#0x20+var_20]; float                           ; +0x30, 0x303738\nSTR             R6, [SP,#0x20+var_18]; int                             ; +0x32, 0x30373a\nBL              _ZN15FMODAudioEngine9loadMusicESsfffbiib; FMODAudioEngine::loadMusic(std::string,float,float,float,bool,int,int,bool) ; +0x34, 0x30373c\nMOV             R0, R5                                                 ; +0x38, 0x303740\nBL              sub_774008                                             ; +0x3a, 0x303742\nCMP.W           R8, #0                                                 ; +0x3e, 0x303746\nBEQ             loc_303758                                             ; +0x42, 0x30374a\nMOV             R0, R7; this                                           ; +0x44, 0x30374c\nMOV             R1, R8; unsigned int                                   ; +0x46, 0x30374e\nMOVS            R2, #0; bool                                           ; +0x48, 0x303750\nMOV             R3, R6; int                                            ; +0x4a, 0x303752\nBL              _ZN15FMODAudioEngine14setMusicTimeMSEjbi; FMODAudioEngine::setMusicTimeMS(uint,bool,int) ; +0x4c, 0x303754\nMOV             R0, R7; this                                           ; +0x50, 0x303758\nMOV             R1, R6; int                                            ; +0x52, 0x30375a\nBL              _ZN15FMODAudioEngine11resumeMusicEi; FMODAudioEngine::resumeMusic(int) ; +0x54, 0x30375c\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x58, 0x303760\nLDR             R3, [R4]                                               ; +0x5a, 0x303762\nCMP             R2, R3                                                 ; +0x5c, 0x303764\nBEQ             loc_303776                                             ; +0x5e, 0x303766\nBLX             __stack_chk_fail                                       ; +0x60, 0x303768\nMOV             R0, R5                                                 ; +0x64, 0x30376c\nBL              sub_774008                                             ; +0x66, 0x30376e\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x303772\nADD             SP, SP, #0x20 ; ' '                                    ; +0x6e, 0x303776\nPOP.W           {R4-R8,PC}                                             ; +0x70, 0x303778", "xrefs": ["CreateGuidelinesLayer::playMusic @ 0x3085dc", "FindBPMLayer::playMusic @ 0x30874c", "SongOptionsLayer::onPlayback @ 0x45ff38"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}