{"type": "func", "start": 3179936, "end": 3180032, "name": "CreateGuidelinesLayer::playMusic", "pseudocode": "// \n// CreateGuidelinesLayer::playMusic from 0x3085a0 to 0x308600 (96 bytes)\n// \n// 0 xrefs:\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 CreateGuidelinesLayer::playMusic(CreateGuidelinesLayer *a1)\n{\n  FMODAudioEngine *v2; // r7\n  CreateGuidelinesLayer *v3; // [sp+0h] [bp-Ch] BYREF\n\n  v3 = a1;\n  v2 = FMODAudioEngine::sharedEngine();\n  a1->m_delegate->getSongFileName((CustomSongDelegate *)&v3);\n  FMODAudioEngine::loadAndPlayMusic(v2, (int)&v3, (unsigned int)(float)(a1->m_elapsed * 1000.0), 0);\n  sub_774008(&v3);\n}", "assembly": "; \n; CreateGuidelinesLayer::playMusic from 0x3085a0 to 0x308600 (96 bytes)\n; \n; 0 xrefs:\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            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x3085a0\nMOV             R6, R0                                                 ; +0x2, 0x3085a2\nLDR             R4, =(__stack_chk_guard_ptr - 0x3085AC)                ; +0x4, 0x3085a4\nMOV             R5, SP                                                 ; +0x6, 0x3085a6\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3085a8\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x3085aa\nLDR             R3, [R4]                                               ; +0xc, 0x3085ac\nSTR             R3, [SP,#0xC+var_8]                                    ; +0xe, 0x3085ae\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x10, 0x3085b0\nLDR.W           R1, [R6,#0x1F4]                                        ; +0x14, 0x3085b4\nLDR             R3, [R1]                                               ; +0x18, 0x3085b8\nLDR             R3, [R3,#8]                                            ; +0x1a, 0x3085ba\nMOV             R7, R0                                                 ; +0x1c, 0x3085bc\nMOV             R0, SP                                                 ; +0x1e, 0x3085be\nBLX             R3                                                     ; +0x20, 0x3085c0\nVLDR            S15, [R6,#0x20C]                                       ; +0x22, 0x3085c2\nMOV             R0, R7                                                 ; +0x26, 0x3085c6\nMOV             R1, SP                                                 ; +0x28, 0x3085c8\nMOVS            R3, #0                                                 ; +0x2a, 0x3085ca\nVLDR            S14, =1000.0                                           ; +0x2c, 0x3085cc\nVMUL.F32        S15, S15, S14                                          ; +0x30, 0x3085d0\nVCVT.U32.F32    S15, S15                                               ; +0x34, 0x3085d4\nVMOV            R2, S15                                                ; +0x38, 0x3085d8\nBL              _ZN15FMODAudioEngine16loadAndPlayMusicESsji; FMODAudioEngine::loadAndPlayMusic(std::string,uint,int) ; +0x3c, 0x3085dc\nMOV             R0, SP                                                 ; +0x40, 0x3085e0\nBL              sub_774008                                             ; +0x42, 0x3085e2\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x46, 0x3085e6\nLDR             R3, [R4]                                               ; +0x48, 0x3085e8\nCMP             R2, R3                                                 ; +0x4a, 0x3085ea\nBEQ             loc_3085FC                                             ; +0x4c, 0x3085ec\nBLX             __stack_chk_fail                                       ; +0x4e, 0x3085ee\nMOV             R0, R5                                                 ; +0x52, 0x3085f2\nBL              sub_774008                                             ; +0x54, 0x3085f4\nBL              __cxa_end_cleanup                                      ; +0x58, 0x3085f8\nADD             SP, SP, #0xC                                           ; +0x5c, 0x3085fc\nPOP             {R4-R7,PC}                                             ; +0x5e, 0x3085fe", "xrefs": [], "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"}