{"type": "func", "start": 4299852592, "end": 4299852792, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x1004a8b30 to 0x1004a8bf8 (200 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::postUpdate @ 0x100088b78\n// \n// This function is hookable on this platform (idp: pc, 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:30:55 +0000\n// \n\nvoid __fastcall AudioEffectsLayer::audioStep(__int64 a1, double a2)\n{\n  __int64 v3; // rdi\n  __int64 v4; // rax\n  __int64 v5; // rax\n  float v6; // [rsp+0h] [rbp-Ch]\n\n  *(float *)&a2 = *(float *)&a2 + *(float *)(a1 + 568);\n  *(_DWORD *)(a1 + 568) = LODWORD(a2);\n  v3 = *(_QWORD *)(a1 + 560);\n  if ( v3 )\n  {\n    if ( (unsigned int)sub_1007FEF90(v3) )\n    {\n      v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 560), 0);\n      *(float *)&a2 = cocos2d::CCString::floatValue(v4, a2);\n      if ( *(float *)(a1 + 568) > *(float *)&a2 )\n      {\n        v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 560), 1);\n        v6 = cocos2d::CCString::floatValue(v5, a2);\n        sub_1007FF150(*(_QWORD *)(a1 + 560), 0, 1);\n        sub_1007FF150(*(_QWORD *)(a1 + 560), 0, 1);\n        if ( !*(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12544LL) )\n          AudioEffectsLayer::triggerEffect(a1, v6);\n      }\n    }\n  }\n}", "assembly": "; \n; AudioEffectsLayer::audioStep from 0x1004a8b30 to 0x1004a8bf8 (200 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::postUpdate @ 0x100088b78\n; \n; This function is hookable on this platform (idp: pc, 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:30:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004a8b30\nmov     rbp, rsp                                                       ; +0x1, 0x1004a8b31\npush    rbx                                                            ; +0x4, 0x1004a8b34\npush    rax                                                            ; +0x5, 0x1004a8b35\nmov     rbx, rdi                                                       ; +0x6, 0x1004a8b36\naddss   xmm0, dword ptr [rdi+238h]                                     ; +0x9, 0x1004a8b39\nmovss   dword ptr [rdi+238h], xmm0                                     ; +0x11, 0x1004a8b41\nmov     rdi, [rdi+230h]                                                ; +0x19, 0x1004a8b49\ntest    rdi, rdi                                                       ; +0x20, 0x1004a8b50\njz      loc_1004A8BDE                                                  ; +0x23, 0x1004a8b53\ncall    sub_1007FEF90                                                  ; +0x29, 0x1004a8b59\ntest    eax, eax                                                       ; +0x2e, 0x1004a8b5e\njz      short loc_1004A8BDE                                            ; +0x30, 0x1004a8b60\nmov     rdi, [rbx+230h]                                                ; +0x32, 0x1004a8b62\nxor     esi, esi                                                       ; +0x39, 0x1004a8b69\ncall    sub_1007FEFE0                                                  ; +0x3b, 0x1004a8b6b\nmov     rdi, rax                                                       ; +0x40, 0x1004a8b70\ncall    cocos2d__CCString__floatValue                                  ; +0x43, 0x1004a8b73\nmovss   xmm1, dword ptr [rbx+238h]                                     ; +0x48, 0x1004a8b78\nucomiss xmm1, xmm0                                                     ; +0x50, 0x1004a8b80\njbe     short loc_1004A8BDE                                            ; +0x53, 0x1004a8b83\nmov     rdi, [rbx+230h]                                                ; +0x55, 0x1004a8b85\nmov     esi, 1                                                         ; +0x5c, 0x1004a8b8c\ncall    sub_1007FEFE0                                                  ; +0x61, 0x1004a8b91\nmov     rdi, rax                                                       ; +0x66, 0x1004a8b96\ncall    cocos2d__CCString__floatValue                                  ; +0x69, 0x1004a8b99\nmovss   [rbp+var_C], xmm0                                              ; +0x6e, 0x1004a8b9e\nmov     rdi, [rbx+230h]                                                ; +0x73, 0x1004a8ba3\nxor     esi, esi                                                       ; +0x7a, 0x1004a8baa\nmov     edx, 1                                                         ; +0x7c, 0x1004a8bac\ncall    sub_1007FF150                                                  ; +0x81, 0x1004a8bb1\nmov     rdi, [rbx+230h]                                                ; +0x86, 0x1004a8bb6\nxor     esi, esi                                                       ; +0x8d, 0x1004a8bbd\nmov     edx, 1                                                         ; +0x8f, 0x1004a8bbf\ncall    sub_1007FF150                                                  ; +0x94, 0x1004a8bc4\ncall    GameManager__sharedState                                       ; +0x99, 0x1004a8bc9\nmov     rax, [rax+220h]                                                ; +0x9e, 0x1004a8bce\ncmp     byte ptr [rax+3100h], 0                                        ; +0xa5, 0x1004a8bd5\njz      short loc_1004A8BE5                                            ; +0xac, 0x1004a8bdc\nadd     rsp, 8                                                         ; +0xae, 0x1004a8bde\npop     rbx                                                            ; +0xb2, 0x1004a8be2\npop     rbp                                                            ; +0xb3, 0x1004a8be3\nretn                                                                   ; +0xb4, 0x1004a8be4\nmov     rdi, rbx                                                       ; +0xb5, 0x1004a8be5\nmovss   xmm0, [rbp+var_C]                                              ; +0xb8, 0x1004a8be8\nadd     rsp, 8                                                         ; +0xbd, 0x1004a8bed\npop     rbx                                                            ; +0xc1, 0x1004a8bf1\npop     rbp                                                            ; +0xc2, 0x1004a8bf2\njmp     AudioEffectsLayer__triggerEffect                               ; +0xc3, 0x1004a8bf3", "xrefs": ["PlayLayer::postUpdate @ 0x100088b78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}