{"type": "func", "start": 4299880784, "end": 4299880984, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x1004af950 to 0x1004afa18 (200 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::postUpdate @ 0x1000baee3\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; // rdi\n  cocos2d::CCString *v4; // rax\n  cocos2d::CCString *v5; // rax\n  float v6; // [rsp+0h] [rbp-Ch]\n\n  a1->m_timeElapsed = a2 + a1->m_timeElapsed;\n  m_unk1c0 = a1->m_unk1c0;\n  if ( m_unk1c0 )\n  {\n    if ( (unsigned int)sub_100720070(m_unk1c0) )\n    {\n      v4 = (cocos2d::CCString *)sub_1007200C0(a1->m_unk1c0, 0);\n      if ( a1->m_timeElapsed > cocos2d::CCString::floatValue(v4) )\n      {\n        v5 = (cocos2d::CCString *)sub_1007200C0(a1->m_unk1c0, 1);\n        v6 = cocos2d::CCString::floatValue(v5);\n        sub_100720230(a1->m_unk1c0, 0, 1);\n        sub_100720230(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 0x1004af950 to 0x1004afa18 (200 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::postUpdate @ 0x1000baee3\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\npush    rbp                                                            ; +0x0, 0x1004af950\nmov     rbp, rsp                                                       ; +0x1, 0x1004af951\npush    rbx                                                            ; +0x4, 0x1004af954\npush    rax                                                            ; +0x5, 0x1004af955\nmov     rbx, rdi                                                       ; +0x6, 0x1004af956\naddss   xmm0, dword ptr [rdi+238h]                                     ; +0x9, 0x1004af959\nmovss   dword ptr [rdi+238h], xmm0                                     ; +0x11, 0x1004af961\nmov     rdi, [rdi+230h]                                                ; +0x19, 0x1004af969\ntest    rdi, rdi                                                       ; +0x20, 0x1004af970\njz      loc_1004AF9FE                                                  ; +0x23, 0x1004af973\ncall    sub_100720070                                                  ; +0x29, 0x1004af979\ntest    eax, eax                                                       ; +0x2e, 0x1004af97e\njz      short loc_1004AF9FE                                            ; +0x30, 0x1004af980\nmov     rdi, [rbx+230h]                                                ; +0x32, 0x1004af982\nxor     esi, esi                                                       ; +0x39, 0x1004af989\ncall    sub_1007200C0                                                  ; +0x3b, 0x1004af98b\nmov     rdi, rax                                                       ; +0x40, 0x1004af990\ncall    cocos2d__CCString__floatValue                                  ; +0x43, 0x1004af993\nmovss   xmm1, dword ptr [rbx+238h]                                     ; +0x48, 0x1004af998\nucomiss xmm1, xmm0                                                     ; +0x50, 0x1004af9a0\njbe     short loc_1004AF9FE                                            ; +0x53, 0x1004af9a3\nmov     rdi, [rbx+230h]                                                ; +0x55, 0x1004af9a5\nmov     esi, 1                                                         ; +0x5c, 0x1004af9ac\ncall    sub_1007200C0                                                  ; +0x61, 0x1004af9b1\nmov     rdi, rax                                                       ; +0x66, 0x1004af9b6\ncall    cocos2d__CCString__floatValue                                  ; +0x69, 0x1004af9b9\nmovss   [rbp+var_C], xmm0                                              ; +0x6e, 0x1004af9be\nmov     rdi, [rbx+230h]                                                ; +0x73, 0x1004af9c3\nxor     esi, esi                                                       ; +0x7a, 0x1004af9ca\nmov     edx, 1                                                         ; +0x7c, 0x1004af9cc\ncall    sub_100720230                                                  ; +0x81, 0x1004af9d1\nmov     rdi, [rbx+230h]                                                ; +0x86, 0x1004af9d6\nxor     esi, esi                                                       ; +0x8d, 0x1004af9dd\nmov     edx, 1                                                         ; +0x8f, 0x1004af9df\ncall    sub_100720230                                                  ; +0x94, 0x1004af9e4\ncall    GameManager__sharedState                                       ; +0x99, 0x1004af9e9\nmov     rax, [rax+1F8h]                                                ; +0x9e, 0x1004af9ee\ncmp     byte ptr [rax+3058h], 0                                        ; +0xa5, 0x1004af9f5\njz      short loc_1004AFA05                                            ; +0xac, 0x1004af9fc\nadd     rsp, 8                                                         ; +0xae, 0x1004af9fe\npop     rbx                                                            ; +0xb2, 0x1004afa02\npop     rbp                                                            ; +0xb3, 0x1004afa03\nretn                                                                   ; +0xb4, 0x1004afa04\nmov     rdi, rbx                                                       ; +0xb5, 0x1004afa05\nmovss   xmm0, [rbp+var_C]                                              ; +0xb8, 0x1004afa08\nadd     rsp, 8                                                         ; +0xbd, 0x1004afa0d\npop     rbx                                                            ; +0xc1, 0x1004afa11\npop     rbp                                                            ; +0xc2, 0x1004afa12\njmp     AudioEffectsLayer__triggerEffect                               ; +0xc3, 0x1004afa13", "xrefs": ["PlayLayer::postUpdate @ 0x1000baee3"], "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"}