{"type": "func", "start": 3180300, "end": 3180400, "name": "FindBPMLayer::playMusic", "pseudocode": "// \n// FindBPMLayer::playMusic from 0x30870c to 0x308770 (100 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 FindBPMLayer::playMusic(FindBPMLayer *a1)\n{\n  FMODAudioEngine *v2; // r7\n  MusicDownloadManager *v3; // r0\n  FindBPMLayer *v4; // [sp+0h] [bp-Ch] BYREF\n\n  v4 = a1;\n  v2 = FMODAudioEngine::sharedEngine();\n  v3 = MusicDownloadManager::sharedState();\n  MusicDownloadManager::pathForSong((MusicDownloadManager *)&v4, (int)v3);\n  FMODAudioEngine::loadAndPlayMusic(v2, (int)&v4, (unsigned int)(float)(a1->m_elapsed * 1000.0), 0);\n  sub_774008(&v4);\n}", "assembly": "; \n; FindBPMLayer::playMusic from 0x30870c to 0x308770 (100 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, 0x30870c\nMOV             R6, R0                                                 ; +0x2, 0x30870e\nLDR             R4, =(__stack_chk_guard_ptr - 0x308718)                ; +0x4, 0x308710\nMOV             R5, SP                                                 ; +0x6, 0x308712\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x308714\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x308716\nLDR             R3, [R4]                                               ; +0xc, 0x308718\nSTR             R3, [SP,#0xC+var_8]                                    ; +0xe, 0x30871a\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x10, 0x30871c\nMOV             R7, R0                                                 ; +0x14, 0x308720\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x16, 0x308722\nLDR.W           R2, [R6,#0x21C]                                        ; +0x1a, 0x308726\nMOV             R1, R0; int                                            ; +0x1e, 0x30872a\nMOV             R0, SP; this                                           ; +0x20, 0x30872c\nBL              _ZN20MusicDownloadManager11pathForSongEi; MusicDownloadManager::pathForSong(int) ; +0x22, 0x30872e\nVLDR            S15, [R6,#0x20C]                                       ; +0x26, 0x308732\nMOV             R0, R7                                                 ; +0x2a, 0x308736\nMOV             R1, SP                                                 ; +0x2c, 0x308738\nMOVS            R3, #0                                                 ; +0x2e, 0x30873a\nVLDR            S14, =1000.0                                           ; +0x30, 0x30873c\nVMUL.F32        S15, S15, S14                                          ; +0x34, 0x308740\nVCVT.U32.F32    S15, S15                                               ; +0x38, 0x308744\nVMOV            R2, S15                                                ; +0x3c, 0x308748\nBL              _ZN15FMODAudioEngine16loadAndPlayMusicESsji; FMODAudioEngine::loadAndPlayMusic(std::string,uint,int) ; +0x40, 0x30874c\nMOV             R0, SP                                                 ; +0x44, 0x308750\nBL              sub_774008                                             ; +0x46, 0x308752\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x4a, 0x308756\nLDR             R3, [R4]                                               ; +0x4c, 0x308758\nCMP             R2, R3                                                 ; +0x4e, 0x30875a\nBEQ             loc_30876C                                             ; +0x50, 0x30875c\nBLX             __stack_chk_fail                                       ; +0x52, 0x30875e\nMOV             R0, R5                                                 ; +0x56, 0x308762\nBL              sub_774008                                             ; +0x58, 0x308764\nBL              __cxa_end_cleanup                                      ; +0x5c, 0x308768\nADD             SP, SP, #0xC                                           ; +0x60, 0x30876c\nPOP             {R4-R7,PC}                                             ; +0x62, 0x30876e", "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"}