{"type": "func", "start": 7122948, "end": 7123124, "name": "FMODAudioEngine::waitUntilSoundReady", "pseudocode": "// \n// FMODAudioEngine::waitUntilSoundReady from 0x6cb004 to 0x6cb0b4 (176 bytes)\n// \n// 3 xrefs:\n// > FMODAudioEngine::setMusicTimeMS @ 0x6d6a14\n// > FMODAudioEngine::preloadMusic @ 0x6d818c\n// > <???> @ 0xa6ea0\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:23 +0000\n// \n\n__int64 __fastcall FMODAudioEngine::waitUntilSoundReady(FMODAudioEngine *this, FMOD::Sound *a2)\n{\n  __int64 result; // x0\n  unsigned int v4; // [xsp+44h] [xbp+44h]\n\n  if ( !a2 )\n    return 2;\n  do\n  {\n    *((_DWORD *)this + 134) = FMOD::Sound::getOpenState();\n    ERRCHECK_fn();\n    result = v4;\n  }\n  while ( (v4 & 0xFFFFFFFD) != 0 && v4 != 6 );\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::waitUntilSoundReady from 0x6cb004 to 0x6cb0b4 (176 bytes)\n; \n; 3 xrefs:\n; > FMODAudioEngine::setMusicTimeMS @ 0x6d6a14\n; > FMODAudioEngine::preloadMusic @ 0x6d818c\n; > <???> @ 0xa6ea0\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:23 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6cb004\nMOV             X29, SP                                                ; +0x4, 0x6cb008\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x8, 0x6cb00c\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6cb010\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0x6cb014\nMOV             X21, X0                                                ; +0x14, 0x6cb018\nLDR             X0, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x6cb01c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x1c, 0x6cb020\nMOV             X20, X1                                                ; +0x20, 0x6cb024\nLDR             X0, [X0]                                               ; +0x24, 0x6cb028\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x28, 0x6cb02c\nCBZ             X1, loc_6CB0A8                                         ; +0x2c, 0x6cb030\nADRP            X19, #aUsersRobertDev@PAGE; \"/Users/robert/Developer/GeometryDash/co\"... ; +0x30, 0x6cb034\nADD             X22, X29, #0x50+var_C                                  ; +0x34, 0x6cb038\nADD             X19, X19, #aUsersRobertDev@PAGEOFF; \"/Users/robert/Developer/GeometryDash/co\"... ; +0x38, 0x6cb03c\nB               loc_6CB04C                                             ; +0x3c, 0x6cb040\nCMP             W0, #6                                                 ; +0x40, 0x6cb044\nB.EQ            loc_6CB080                                             ; +0x44, 0x6cb048\nMOV             X1, X22                                                ; +0x48, 0x6cb04c\nMOV             X2, #0                                                 ; +0x4c, 0x6cb050\nMOV             X3, #0                                                 ; +0x50, 0x6cb054\nMOV             X4, #0                                                 ; +0x54, 0x6cb058\nMOV             X0, X20                                                ; +0x58, 0x6cb05c\nBL              ._ZN4FMOD5Sound12getOpenStateEP14FMOD_OPENSTATEPjPbS4_; FMOD::Sound::getOpenState(FMOD_OPENSTATE *,uint *,bool *,bool *) ; +0x5c, 0x6cb060\nSTR             W0, [X21,#0x218]                                       ; +0x60, 0x6cb064\nMOV             X1, X19                                                ; +0x64, 0x6cb068\nMOV             W2, #0xBE3                                             ; +0x68, 0x6cb06c\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x6c, 0x6cb070\nLDR             W0, [X29,#0x50+var_C]                                  ; +0x70, 0x6cb074\nTST             W0, #0xFFFFFFFD                                        ; +0x74, 0x6cb078\nB.NE            loc_6CB044                                             ; +0x78, 0x6cb07c\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x7c, 0x6cb080\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x80, 0x6cb084\nLDR             X1, [X23]                                              ; +0x84, 0x6cb088\nCMP             X2, X1                                                 ; +0x88, 0x6cb08c\nB.NE            loc_6CB0B0                                             ; +0x8c, 0x6cb090\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x90, 0x6cb094\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x94, 0x6cb098\nLDR             X23, [SP,#0x50+var_20]                                 ; +0x98, 0x6cb09c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x9c, 0x6cb0a0\nRET                                                                    ; +0xa0, 0x6cb0a4\nMOV             W0, #2                                                 ; +0xa4, 0x6cb0a8\nB               loc_6CB080                                             ; +0xa8, 0x6cb0ac\nBL              .__stack_chk_fail                                      ; +0xac, 0x6cb0b0", "xrefs": ["FMODAudioEngine::setMusicTimeMS @ 0x6d6a14", "FMODAudioEngine::preloadMusic @ 0x6d818c", "<???> @ 0xa6ea0"], "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"}