{"type": "func", "start": 9143884, "end": 9144064, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x8b864c to 0x8b8700 (180 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::postUpdate @ 0x708f24\n// > <???> @ 0xae850\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:56:26 +0000\n// \n\n__int64 __fastcall AudioEffectsLayer::audioStep(__int64 this, float a2)\n{\n  cocos2d::CCArray *v2; // x1\n  __int64 v3; // x19\n  cocos2d::CCString *v4; // x0\n  float v5; // s0\n  cocos2d::CCString *v6; // x0\n  float v7; // s0\n  GameManager *v8; // x0\n  float v9; // [xsp+20h] [xbp+20h]\n\n  v2 = *(cocos2d::CCArray **)(this + 560);\n  *(float *)(this + 568) = *(float *)(this + 568) + a2;\n  if ( v2 )\n  {\n    v3 = this;\n    this = cocos2d::CCArray::count(v2);\n    if ( (_DWORD)this )\n    {\n      v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 0);\n      this = cocos2d::CCString::floatValue(v4);\n      if ( v5 < *(float *)(v3 + 568) )\n      {\n        v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 1u);\n        cocos2d::CCString::floatValue(v6);\n        v9 = v7;\n        cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 0, 1);\n        v8 = (GameManager *)cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 0, 1);\n        this = *(unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState(v8) + 544) + 12544LL);\n        if ( !(_DWORD)this )\n          return AudioEffectsLayer::triggerEffect(v3, v9);\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; AudioEffectsLayer::audioStep from 0x8b864c to 0x8b8700 (180 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::postUpdate @ 0x708f24\n; > <???> @ 0xae850\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:56:26 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x8b864c\nMOV             X29, SP                                                ; +0x4, 0x8b8650\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0x8b8654\nLDR             S1, [X0,#0x238]                                        ; +0xc, 0x8b8658\nLDR             X1, [X0,#0x230]                                        ; +0x10, 0x8b865c\nFADD            S0, S1, S0                                             ; +0x14, 0x8b8660\nSTR             S0, [X0,#0x238]                                        ; +0x18, 0x8b8664\nCBZ             X1, loc_8B8698                                         ; +0x1c, 0x8b8668\nMOV             X19, X0                                                ; +0x20, 0x8b866c\nMOV             X0, X1; this                                           ; +0x24, 0x8b8670\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x8b8674\nCBZ             W0, loc_8B8698                                         ; +0x2c, 0x8b8678\nLDR             X0, [X19,#0x230]; this                                 ; +0x30, 0x8b867c\nMOV             W1, #0; unsigned int                                   ; +0x34, 0x8b8680\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x8b8684\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x3c, 0x8b8688\nLDR             S1, [X19,#0x238]                                       ; +0x40, 0x8b868c\nFCMPE           S0, S1                                                 ; +0x44, 0x8b8690\nB.MI            loc_8B86A4                                             ; +0x48, 0x8b8694\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x4c, 0x8b8698\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x50, 0x8b869c\nRET                                                                    ; +0x54, 0x8b86a0\nLDR             X0, [X19,#0x230]; this                                 ; +0x58, 0x8b86a4\nMOV             W1, #1; unsigned int                                   ; +0x5c, 0x8b86a8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x60, 0x8b86ac\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x64, 0x8b86b0\nLDR             X0, [X19,#0x230]; this                                 ; +0x68, 0x8b86b4\nMOV             W1, #0; unsigned int                                   ; +0x6c, 0x8b86b8\nMOV             W2, #1; bool                                           ; +0x70, 0x8b86bc\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x74, 0x8b86c0\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x78, 0x8b86c4\nLDR             X0, [X19,#0x230]; this                                 ; +0x7c, 0x8b86c8\nMOV             W1, #0; unsigned int                                   ; +0x80, 0x8b86cc\nMOV             W2, #1; bool                                           ; +0x84, 0x8b86d0\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x88, 0x8b86d4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8c, 0x8b86d8\nLDR             X0, [X0,#0x220]                                        ; +0x90, 0x8b86dc\nLDR             Q0, [X29,#0x30+var_10]; float                          ; +0x94, 0x8b86e0\nADD             X0, X0, #3,LSL#12                                      ; +0x98, 0x8b86e4\nLDRB            W0, [X0,#0x100]                                        ; +0x9c, 0x8b86e8\nCBNZ            W0, loc_8B8698                                         ; +0xa0, 0x8b86ec\nMOV             X0, X19; this                                          ; +0xa4, 0x8b86f0\nLDR             X19, [SP,#0x30+var_20]                                 ; +0xa8, 0x8b86f4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xac, 0x8b86f8\nB               _ZN17AudioEffectsLayer13triggerEffectEf; AudioEffectsLayer::triggerEffect(float) ; +0xb0, 0x8b86fc", "xrefs": ["PlayLayer::postUpdate @ 0x708f24", "<???> @ 0xae850"], "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"}