{"type": "func", "start": 5284696, "end": 5284832, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x50a358 to 0x50a3e0 (136 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::postUpdate @ 0x40cc94\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:27 +0000\n// \n\nfloat __fastcall AudioEffectsLayer::audioStep(AudioEffectsLayer *this, float a2)\n{\n  float result; // r0\n  cocos2d::CCString *v4; // r0\n  cocos2d::CCString *v5; // r0\n  float v6; // r5\n  GameManager *v7; // r0\n\n  *((float *)this + 113) = *((float *)this + 113) + a2;\n  result = *((float *)this + 112);\n  if ( result != 0.0 )\n  {\n    result = COERCE_FLOAT(cocos2d::CCArray::count((cocos2d::CCArray *)LODWORD(result)));\n    if ( result != 0.0 )\n    {\n      v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), 0);\n      result = COERCE_FLOAT(cocos2d::CCString::floatValue(v4));\n      if ( result < *((float *)this + 113) )\n      {\n        v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), 1u);\n        v6 = COERCE_FLOAT(cocos2d::CCString::floatValue(v5));\n        cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 112), 0, 1);\n        v7 = (GameManager *)cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 112), 0, 1);\n        result = COERCE_FLOAT(GameManager::sharedState(v7));\n        if ( !*(_BYTE *)(*(_DWORD *)(LODWORD(result) + 404) + 10784) )\n          return COERCE_FLOAT(AudioEffectsLayer::triggerEffect((int)this, v6));\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; AudioEffectsLayer::audioStep from 0x50a358 to 0x50a3e0 (136 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::postUpdate @ 0x40cc94\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:27 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x50a358\nVMOV            S14, R1                                                ; +0x2, 0x50a35a\nVLDR            S15, [R0,#0x1C4]                                       ; +0x6, 0x50a35e\nMOV             R4, R0                                                 ; +0xa, 0x50a362\nVADD.F32        S15, S15, S14                                          ; +0xc, 0x50a364\nVSTR            S15, [R0,#0x1C4]                                       ; +0x10, 0x50a368\nLDR.W           R0, [R0,#0x1C0]; this                                  ; +0x14, 0x50a36c\nCBZ             R0, locret_50A3DE                                      ; +0x18, 0x50a370\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x50a372\nCBNZ            R0, loc_50A37A                                         ; +0x1e, 0x50a376\nPOP             {R3-R5,PC}                                             ; +0x20, 0x50a378\nMOVS            R1, #0; unsigned int                                   ; +0x22, 0x50a37a\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x24, 0x50a37c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x28, 0x50a380\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x2c, 0x50a384\nVLDR            S15, [R4,#0x1C4]                                       ; +0x30, 0x50a388\nVMOV            S14, R0                                                ; +0x34, 0x50a38c\nVCMPE.F32       S14, S15                                               ; +0x38, 0x50a390\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3c, 0x50a394\nBPL             locret_50A3DE                                          ; +0x40, 0x50a398\nMOVS            R1, #1; unsigned int                                   ; +0x42, 0x50a39a\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x44, 0x50a39c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x50a3a0\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x4c, 0x50a3a4\nMOVS            R1, #0; unsigned int                                   ; +0x50, 0x50a3a8\nMOVS            R2, #1; bool                                           ; +0x52, 0x50a3aa\nMOV             R5, R0                                                 ; +0x54, 0x50a3ac\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x56, 0x50a3ae\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x5a, 0x50a3b2\nMOVS            R2, #1; bool                                           ; +0x5e, 0x50a3b6\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0x60, 0x50a3b8\nMOVS            R1, #0; unsigned int                                   ; +0x64, 0x50a3bc\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x66, 0x50a3be\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6a, 0x50a3c2\nMOVW            R3, #0x2A20                                            ; +0x6e, 0x50a3c6\nLDR.W           R2, [R0,#0x194]                                        ; +0x72, 0x50a3ca\nLDRB            R3, [R2,R3]                                            ; +0x76, 0x50a3ce\nCBNZ            R3, locret_50A3DE                                      ; +0x78, 0x50a3d0\nMOV             R0, R4; this                                           ; +0x7a, 0x50a3d2\nMOV             R1, R5; float                                          ; +0x7c, 0x50a3d4\nPOP.W           {R3-R5,LR}                                             ; +0x7e, 0x50a3d6\nB.W             _ZN17AudioEffectsLayer13triggerEffectEf; AudioEffectsLayer::triggerEffect(float) ; +0x82, 0x50a3da\nPOP             {R3-R5,PC}                                             ; +0x86, 0x50a3de", "xrefs": ["PlayLayer::postUpdate @ 0x40cc94"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}