{"type": "func", "start": 7240256, "end": 7240448, "name": "CreateGuidelinesLayer::playMusic", "pseudocode": "// \n// CreateGuidelinesLayer::playMusic from 0x6e7a40 to 0x6e7b00 (192 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x71878\n// > <???> @ 0x1426088\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:51:44 +0000\n// \n\n__int64 __fastcall CreateGuidelinesLayer::playMusic(CreateGuidelinesLayer *this)\n{\n  FMODAudioEngine *v2; // x22\n  void *v4[3]; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(_stack_chk_guard);\n  (*(void (__fastcall **)(void **__return_ptr, _QWORD))(**((_QWORD **)this + 84) + 16LL))(v4, *((_QWORD *)this + 84));\n  FMODAudioEngine::loadAndPlayMusic(v2, (char *)v4, (unsigned int)(float)(*((float *)this + 180) * 1000.0), 0);\n  if ( ((__int64)v4[0] & 1) != 0 )\n    operator delete(v4[2]);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreateGuidelinesLayer::playMusic from 0x6e7a40 to 0x6e7b00 (192 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x71878\n; > <???> @ 0x1426088\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:51:44 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x6e7a40\nMOV             X29, SP                                                ; +0x4, 0x6e7a44\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x6e7a48\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6e7a4c\nADD             X20, X29, #0x60+var_20                                 ; +0x10, 0x6e7a50\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x6e7a54\nMOV             X21, X0                                                ; +0x18, 0x6e7a58\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6e7a5c\nLDR             X0, [X0]; this                                         ; +0x20, 0x6e7a60\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x24, 0x6e7a64\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x28, 0x6e7a68\nMOV             X22, X0                                                ; +0x2c, 0x6e7a6c\nLDR             X2, [X21,#0x2A0]                                       ; +0x30, 0x6e7a70\nMOV             X8, X20                                                ; +0x34, 0x6e7a74\nSTR             X20, [X29,#0x60+var_28]                                ; +0x38, 0x6e7a78\nMOV             X0, X2                                                 ; +0x3c, 0x6e7a7c\nLDR             X2, [X2]                                               ; +0x40, 0x6e7a80\nLDR             X2, [X2,#0x10]                                         ; +0x44, 0x6e7a84\nBLR             X2                                                     ; +0x48, 0x6e7a88\nLDR             S0, [X21,#0x2D0]                                       ; +0x4c, 0x6e7a8c\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x50, 0x6e7a90\nLDR             S1, =0x447A0000                                        ; +0x54, 0x6e7a94\nMOV             X0, X22; int                                           ; +0x58, 0x6e7a98\nMOV             W3, #0                                                 ; +0x5c, 0x6e7a9c\nFMUL            S0, S0, S1                                             ; +0x60, 0x6e7aa0\nFCVTZU          W2, S0                                                 ; +0x64, 0x6e7aa4\nBL              _ZN15FMODAudioEngine16loadAndPlayMusicENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEji; FMODAudioEngine::loadAndPlayMusic(std::string,uint,int) ; +0x68, 0x6e7aa8\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0x6c, 0x6e7aac\nTBZ             W0, #0, loc_6E7ABC                                     ; +0x70, 0x6e7ab0\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x74, 0x6e7ab4\nBL              _ZdlPv; operator delete(void *)                        ; +0x78, 0x6e7ab8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x7c, 0x6e7abc\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x80, 0x6e7ac0\nLDR             X0, [X19]                                              ; +0x84, 0x6e7ac4\nCMP             X1, X0                                                 ; +0x88, 0x6e7ac8\nB.NE            loc_6E7AE0                                             ; +0x8c, 0x6e7acc\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x90, 0x6e7ad0\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x94, 0x6e7ad4\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x98, 0x6e7ad8\nRET                                                                    ; +0x9c, 0x6e7adc\nBL              .__stack_chk_fail                                      ; +0xa0, 0x6e7ae0\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0xa4, 0x6e7ae4\nMOV             X19, X0                                                ; +0xa8, 0x6e7ae8\nTBZ             W1, #0, loc_6E7AF8                                     ; +0xac, 0x6e7aec\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0xb0, 0x6e7af0\nBL              _ZdlPv; operator delete(void *)                        ; +0xb4, 0x6e7af4\nMOV             X0, X19                                                ; +0xb8, 0x6e7af8\nBL              _Unwind_Resume                                         ; +0xbc, 0x6e7afc", "xrefs": ["<???> @ 0x71878", "<???> @ 0x1426088"], "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"}