{"type": "func", "start": 7927224, "end": 7927404, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x78f5b8 to 0x78f66c (180 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::postUpdate @ 0x5dc27c\n// > <???> @ 0x834d8\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 AudioEffectsLayer::audioStep(AudioEffectsLayer *a1, float a2)\n{\n  cocos2d::CCArray *m_unk1c0; // x1\n  cocos2d::CCString *v4; // x0\n  cocos2d::CCString *v5; // x0\n  float v6; // [xsp+20h] [xbp+20h]\n\n  m_unk1c0 = a1->m_unk1c0;\n  a1->m_timeElapsed = a1->m_timeElapsed + a2;\n  if ( m_unk1c0 )\n  {\n    if ( (unsigned int)cocos2d::CCArray::count(m_unk1c0) )\n    {\n      v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(a1->m_unk1c0, 0);\n      if ( cocos2d::CCString::floatValue(v4) < a1->m_timeElapsed )\n      {\n        v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(a1->m_unk1c0, 1u);\n        v6 = cocos2d::CCString::floatValue(v5);\n        cocos2d::CCArray::removeObjectAtIndex(a1->m_unk1c0, 0, 1);\n        cocos2d::CCArray::removeObjectAtIndex(a1->m_unk1c0, 0, 1);\n        if ( !GameManager::sharedState()->m_playLayer->m_isPracticeMode )\n          AudioEffectsLayer::triggerEffect(a1, v6);\n      }\n    }\n  }\n}", "assembly": "; \n; AudioEffectsLayer::audioStep from 0x78f5b8 to 0x78f66c (180 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::postUpdate @ 0x5dc27c\n; > <???> @ 0x834d8\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x78f5b8\nMOV             X29, SP                                                ; +0x4, 0x78f5bc\nLDR             S1, [X0,#0x238]                                        ; +0x8, 0x78f5c0\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x78f5c4\nLDR             X1, [X0,#0x230]                                        ; +0x10, 0x78f5c8\nFADD            S0, S1, S0                                             ; +0x14, 0x78f5cc\nSTR             S0, [X0,#0x238]                                        ; +0x18, 0x78f5d0\nCBZ             X1, loc_78F604                                         ; +0x1c, 0x78f5d4\nMOV             X19, X0                                                ; +0x20, 0x78f5d8\nMOV             X0, X1; this                                           ; +0x24, 0x78f5dc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x78f5e0\nCBZ             W0, loc_78F604                                         ; +0x2c, 0x78f5e4\nLDR             X0, [X19,#0x230]; this                                 ; +0x30, 0x78f5e8\nMOV             W1, #0; unsigned int                                   ; +0x34, 0x78f5ec\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x78f5f0\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x3c, 0x78f5f4\nLDR             S1, [X19,#0x238]                                       ; +0x40, 0x78f5f8\nFCMPE           S0, S1                                                 ; +0x44, 0x78f5fc\nB.MI            loc_78F610                                             ; +0x48, 0x78f600\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x4c, 0x78f604\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x50, 0x78f608\nRET                                                                    ; +0x54, 0x78f60c\nLDR             X0, [X19,#0x230]; this                                 ; +0x58, 0x78f610\nMOV             W1, #1; unsigned int                                   ; +0x5c, 0x78f614\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x60, 0x78f618\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x64, 0x78f61c\nLDR             X0, [X19,#0x230]; this                                 ; +0x68, 0x78f620\nMOV             W1, #0; unsigned int                                   ; +0x6c, 0x78f624\nMOV             W2, #1; bool                                           ; +0x70, 0x78f628\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x74, 0x78f62c\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x78, 0x78f630\nLDR             X0, [X19,#0x230]; this                                 ; +0x7c, 0x78f634\nMOV             W1, #0; unsigned int                                   ; +0x80, 0x78f638\nMOV             W2, #1; bool                                           ; +0x84, 0x78f63c\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x88, 0x78f640\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8c, 0x78f644\nLDR             X0, [X0,#0x1D8]                                        ; +0x90, 0x78f648\nLDR             Q0, [X29,#0x30+var_10]; float                          ; +0x94, 0x78f64c\nADD             X0, X0, #3,LSL#12                                      ; +0x98, 0x78f650\nLDRB            W0, [X0,#0x250]                                        ; +0x9c, 0x78f654\nCBNZ            W0, loc_78F604                                         ; +0xa0, 0x78f658\nMOV             X0, X19; this                                          ; +0xa4, 0x78f65c\nLDR             X19, [SP,#0x30+var_20]                                 ; +0xa8, 0x78f660\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xac, 0x78f664\nB               _ZN17AudioEffectsLayer13triggerEffectEf; AudioEffectsLayer::triggerEffect(float) ; +0xb0, 0x78f668", "xrefs": ["PlayLayer::postUpdate @ 0x5dc27c", "<???> @ 0x834d8"], "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"}