{"type": "func", "start": 4298917644, "end": 4298917832, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x1003c470c to 0x1003c47c8 (188 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::postUpdate @ 0x10011f678\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 __fastcall AudioEffectsLayer::audioStep(AudioEffectsLayer *a1, float a2)\n{\n  cocos2d::CCArray *m_unk1c0; // x0\n  cocos2d::CCString *v4; // x0\n  cocos2d::CCString *v5; // x0\n  float v6; // s8\n\n  a1->m_timeElapsed = a1->m_timeElapsed + a2;\n  m_unk1c0 = a1->m_unk1c0;\n  if ( m_unk1c0 )\n  {\n    if ( (unsigned int)sub_10024A36C((__int64)m_unk1c0) )\n    {\n      v4 = (cocos2d::CCString *)sub_10024A388((__int64)a1->m_unk1c0, 0);\n      if ( cocos2d::CCString::floatValue(v4) < a1->m_timeElapsed )\n      {\n        v5 = (cocos2d::CCString *)sub_10024A388((__int64)a1->m_unk1c0, 1u);\n        v6 = cocos2d::CCString::floatValue(v5);\n        sub_10024A44C((__int64)a1->m_unk1c0, 0, 1);\n        sub_10024A44C((__int64)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 0x1003c470c to 0x1003c47c8 (188 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::postUpdate @ 0x10011f678\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             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1003c470c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003c4710\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003c4714\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003c4718\nMOV             X19, X0                                                ; +0x10, 0x1003c471c\nLDR             S1, [X0,#0x238]                                        ; +0x14, 0x1003c4720\nFADD            S0, S1, S0                                             ; +0x18, 0x1003c4724\nSTR             S0, [X0,#0x238]                                        ; +0x1c, 0x1003c4728\nLDR             X0, [X0,#0x230]                                        ; +0x20, 0x1003c472c\nCBZ             X0, loc_1003C47A0                                      ; +0x24, 0x1003c4730\nBL              sub_10024A36C                                          ; +0x28, 0x1003c4734\nCBZ             W0, loc_1003C47A0                                      ; +0x2c, 0x1003c4738\nLDR             X0, [X19,#0x230]                                       ; +0x30, 0x1003c473c\nMOV             W1, #0                                                 ; +0x34, 0x1003c4740\nBL              sub_10024A388                                          ; +0x38, 0x1003c4744\nBL              cocos2d__CCString__floatValue                          ; +0x3c, 0x1003c4748\nLDR             S1, [X19,#0x238]                                       ; +0x40, 0x1003c474c\nFCMP            S0, S1                                                 ; +0x44, 0x1003c4750\nB.PL            loc_1003C47A0                                          ; +0x48, 0x1003c4754\nLDR             X0, [X19,#0x230]                                       ; +0x4c, 0x1003c4758\nMOV             W1, #1                                                 ; +0x50, 0x1003c475c\nBL              sub_10024A388                                          ; +0x54, 0x1003c4760\nBL              cocos2d__CCString__floatValue                          ; +0x58, 0x1003c4764\nFMOV            S8, S0                                                 ; +0x5c, 0x1003c4768\nLDR             X0, [X19,#0x230]                                       ; +0x60, 0x1003c476c\nMOV             W1, #0                                                 ; +0x64, 0x1003c4770\nMOV             W2, #1                                                 ; +0x68, 0x1003c4774\nBL              sub_10024A44C                                          ; +0x6c, 0x1003c4778\nLDR             X0, [X19,#0x230]                                       ; +0x70, 0x1003c477c\nMOV             W1, #0                                                 ; +0x74, 0x1003c4780\nMOV             W2, #1                                                 ; +0x78, 0x1003c4784\nBL              sub_10024A44C                                          ; +0x7c, 0x1003c4788\nBL              GameManager__sharedState                               ; +0x80, 0x1003c478c\nLDR             X8, [X0,#0x1F8]                                        ; +0x84, 0x1003c4790\nMOV             W9, #0x3080                                            ; +0x88, 0x1003c4794\nLDRB            W8, [X8,X9]                                            ; +0x8c, 0x1003c4798\nTBZ             W8, #0, loc_1003C47B0                                  ; +0x90, 0x1003c479c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x1003c47a0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x1003c47a4\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x9c, 0x1003c47a8\nRET                                                                    ; +0xa0, 0x1003c47ac\nMOV             X0, X19                                                ; +0xa4, 0x1003c47b0\nFMOV            S0, S8                                                 ; +0xa8, 0x1003c47b4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xac, 0x1003c47b8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb0, 0x1003c47bc\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0xb4, 0x1003c47c0\nB               AudioEffectsLayer__triggerEffect                       ; +0xb8, 0x1003c47c4", "xrefs": ["PlayLayer::postUpdate @ 0x10011f678"], "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"}