{"type": "func", "start": 4201516, "end": 4201652, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x401c2c to 0x401cb4 (136 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::postUpdate @ 0x31bae4\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; // r0\n  cocos2d::CCString *v4; // r0\n  cocos2d::CCString *v5; // r0\n  float v6; // r5\n\n  a1->m_timeElapsed = a1->m_timeElapsed + a2;\n  m_unk1c0 = a1->m_unk1c0;\n  if ( m_unk1c0 )\n  {\n    if ( 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 0x401c2c to 0x401cb4 (136 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::postUpdate @ 0x31bae4\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\nVLDR            S15, [R0,#0x1C4]                                       ; +0x0, 0x401c2c\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x401c30\nMOV             R4, R0                                                 ; +0x6, 0x401c32\nVMOV            S14, R1                                                ; +0x8, 0x401c34\nVADD.F32        S15, S15, S14                                          ; +0xc, 0x401c38\nVSTR            S15, [R0,#0x1C4]                                       ; +0x10, 0x401c3c\nLDR.W           R0, [R0,#0x1C0]; this                                  ; +0x14, 0x401c40\nCBZ             R0, locret_401CB2                                      ; +0x18, 0x401c44\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x401c46\nCBNZ            R0, loc_401C4E                                         ; +0x1e, 0x401c4a\nPOP             {R3-R5,PC}                                             ; +0x20, 0x401c4c\nMOVS            R1, #0; unsigned int                                   ; +0x22, 0x401c4e\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x24, 0x401c50\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x28, 0x401c54\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x2c, 0x401c58\nVLDR            S15, [R4,#0x1C4]                                       ; +0x30, 0x401c5c\nVMOV            S14, R0                                                ; +0x34, 0x401c60\nVCMPE.F32       S14, S15                                               ; +0x38, 0x401c64\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3c, 0x401c68\nBPL             locret_401CB2                                          ; +0x40, 0x401c6c\nMOVS            R1, #1; unsigned int                                   ; +0x42, 0x401c6e\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x44, 0x401c70\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x401c74\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x4c, 0x401c78\nMOVS            R1, #0; unsigned int                                   ; +0x50, 0x401c7c\nMOVS            R2, #1; bool                                           ; +0x52, 0x401c7e\nMOV             R5, R0                                                 ; +0x54, 0x401c80\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x56, 0x401c82\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x5a, 0x401c86\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x5e, 0x401c8a\nMOVS            R1, #0; unsigned int                                   ; +0x62, 0x401c8e\nMOVS            R2, #1; bool                                           ; +0x64, 0x401c90\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x66, 0x401c92\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6a, 0x401c96\nLDR.W           R3, [R0,#0x16C]                                        ; +0x6e, 0x401c9a\nADD.W           R3, R3, #0x2AC0                                        ; +0x72, 0x401c9e\nLDRB            R3, [R3]                                               ; +0x76, 0x401ca2\nCBNZ            R3, locret_401CB2                                      ; +0x78, 0x401ca4\nMOV             R0, R4; this                                           ; +0x7a, 0x401ca6\nMOV             R1, R5; float                                          ; +0x7c, 0x401ca8\nPOP.W           {R3-R5,LR}                                             ; +0x7e, 0x401caa\nB.W             _ZN17AudioEffectsLayer13triggerEffectEf; AudioEffectsLayer::triggerEffect(float) ; +0x82, 0x401cae\nPOP             {R3-R5,PC}                                             ; +0x86, 0x401cb2", "xrefs": ["PlayLayer::postUpdate @ 0x31bae4"], "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"}