{"type": "func", "start": 5369341728, "end": 5369342288, "name": "AudioEffectsLayer::audioStep", "pseudocode": "// \n// AudioEffectsLayer::audioStep from 0x14009a720 to 0x14009a950 (560 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::postUpdate @ 0x140513ccc\n// > <???> @ 0x140912e84\n// > <???> @ 0x140912e90\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 11:26:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall AudioEffectsLayer::audioStep(__int64 a1, float a2)\n{\n  cocos2d::CCArray *v3; // rcx\n  cocos2d::CCString *v4; // rax\n  cocos2d::CCString *v5; // rax\n  float v6; // xmm0_4\n  float v7; // xmm6_4\n  __int64 v8; // rax\n  float v9; // xmm7_4\n  struct cocos2d::CCFiniteTimeAction *v10; // rdi\n  struct cocos2d::CCActionTween *v11; // rbx\n  __int64 v12; // rax\n  struct cocos2d::CCAction *v13; // rbx\n  void *v14; // [rsp+50h] [rbp+8h]\n\n  *(float *)(a1 + 568) = a2 + *(float *)(a1 + 568);\n  v3 = *(cocos2d::CCArray **)(a1 + 560);\n  if ( v3 )\n  {\n    if ( cocos2d::CCArray::count(v3) )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 560), 0);\n      if ( *(float *)(a1 + 568) > cocos2d::CCString::floatValue(v4) )\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 560), 1u);\n        v6 = cocos2d::CCString::floatValue(v5);\n        v7 = v6;\n        cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(a1 + 560), 0, 1);\n        cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(a1 + 560), 0, 1);\n        v8 = qword_14090BFD0;\n        if ( !qword_14090BFD0 )\n        {\n          v14 = operator new(0x6E8u);\n          qword_14090BFD0 = GameManager::GameManager(v14);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n          v8 = qword_14090BFD0;\n        }\n        if ( !*(_BYTE *)(*(_QWORD *)(v8 + 560) + 13024LL) )\n        {\n          if ( v6 == 1.0 )\n          {\n            v7 = 4.0;\n          }\n          else if ( v6 == 0.89999998 )\n          {\n            v7 = 3.0;\n          }\n          else if ( v6 == 0.80000001 )\n          {\n            v7 = 2.5;\n          }\n          v9 = fminf(1.1, (float)(v7 * 0.2) + *(float *)(a1 + 580));\n          if ( *(_BYTE *)(a1 + 576) || v9 >= *(float *)(a1 + 572) )\n          {\n            *(float *)(a1 + 572) = v9;\n            *(_BYTE *)(a1 + 576) = 0;\n            cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 0);\n            v10 = cocos2d::CCActionTween::create(0.050000001, \"audioScale\", *(float *)(a1 + 580), v9);\n            v11 = cocos2d::CCActionTween::create(0.2, \"audioScale\", v9, 0.1);\n            v12 = cocos2d::CCCallFunc::create(a1, AudioEffectsLayer::goingDown);\n            v13 = cocos2d::CCSequence::create(v10, v12, v11, 0);\n            (*(void (__fastcall **)(struct cocos2d::CCAction *, _QWORD))(*(_QWORD *)v13 + 64LL))(v13, 0);\n            cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v13);\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; AudioEffectsLayer::audioStep from 0x14009a720 to 0x14009a950 (560 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::postUpdate @ 0x140513ccc\n; > <???> @ 0x140912e84\n; > <???> @ 0x140912e90\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 11:26:04 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14009a720\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14009a725\npush    rdi                                                            ; +0xa, 0x14009a72a\nsub     rsp, 40h                                                       ; +0xb, 0x14009a72b\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xf, 0x14009a72f\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x14, 0x14009a734\nmov     rsi, rcx                                                       ; +0x19, 0x14009a739\naddss   xmm1, dword ptr [rcx+238h]                                     ; +0x1c, 0x14009a73c\nmovss   dword ptr [rcx+238h], xmm1                                     ; +0x24, 0x14009a744\nmov     rcx, [rcx+230h]                                                ; +0x2c, 0x14009a74c\ntest    rcx, rcx                                                       ; +0x33, 0x14009a753\njz      loc_14009A936                                                  ; +0x36, 0x14009a756\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3c, 0x14009a75c\ntest    eax, eax                                                       ; +0x42, 0x14009a762\njz      loc_14009A936                                                  ; +0x44, 0x14009a764\nxor     edx, edx                                                       ; +0x4a, 0x14009a76a\nmov     rcx, [rsi+230h]                                                ; +0x4c, 0x14009a76c\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x53, 0x14009a773\nmov     rcx, rax                                                       ; +0x59, 0x14009a779\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x5c, 0x14009a77c\nmovss   xmm1, dword ptr [rsi+238h]                                     ; +0x62, 0x14009a782\ncomiss  xmm1, xmm0                                                     ; +0x6a, 0x14009a78a\njbe     loc_14009A936                                                  ; +0x6d, 0x14009a78d\nmov     edx, 1                                                         ; +0x73, 0x14009a793\nmov     rcx, [rsi+230h]                                                ; +0x78, 0x14009a798\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x7f, 0x14009a79f\nmov     rcx, rax                                                       ; +0x85, 0x14009a7a5\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x88, 0x14009a7a8\nmovaps  xmm6, xmm0                                                     ; +0x8e, 0x14009a7ae\nmov     r8b, 1                                                         ; +0x91, 0x14009a7b1\nxor     edx, edx                                                       ; +0x94, 0x14009a7b4\nmov     rcx, [rsi+230h]                                                ; +0x96, 0x14009a7b6\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x9d, 0x14009a7bd\nmov     r8b, 1                                                         ; +0xa3, 0x14009a7c3\nxor     edx, edx                                                       ; +0xa6, 0x14009a7c6\nmov     rcx, [rsi+230h]                                                ; +0xa8, 0x14009a7c8\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xaf, 0x14009a7cf\nmov     rax, cs:qword_14090BFD0                                        ; +0xb5, 0x14009a7d5\ntest    rax, rax                                                       ; +0xbc, 0x14009a7dc\njnz     short loc_14009A813                                            ; +0xbf, 0x14009a7df\nmov     ecx, 6E8h; Size                                                ; +0xc1, 0x14009a7e1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc6, 0x14009a7e6\nmov     [rsp+48h+arg_0], rax                                           ; +0xcb, 0x14009a7eb\nmov     rcx, rax                                                       ; +0xd0, 0x14009a7f0\ncall    GameManager__GameManager                                       ; +0xd3, 0x14009a7f3\nnop                                                                    ; +0xd8, 0x14009a7f8\nmov     cs:qword_14090BFD0, rax                                        ; +0xd9, 0x14009a7f9\nmov     rcx, [rax]                                                     ; +0xe0, 0x14009a800\nmov     rdx, [rcx+48h]                                                 ; +0xe3, 0x14009a803\nmov     rcx, rax                                                       ; +0xe7, 0x14009a807\ncall    rdx                                                            ; +0xea, 0x14009a80a\nmov     rax, cs:qword_14090BFD0                                        ; +0xec, 0x14009a80c\nmov     rax, [rax+230h]                                                ; +0xf3, 0x14009a813\ncmp     byte ptr [rax+32E0h], 0                                        ; +0xfa, 0x14009a81a\njnz     loc_14009A936                                                  ; +0x101, 0x14009a821\nucomiss xmm6, cs:flt_140835080                                         ; +0x107, 0x14009a827\njp      short loc_14009A83C                                            ; +0x10e, 0x14009a82e\njnz     short loc_14009A83C                                            ; +0x110, 0x14009a830\nmovss   xmm6, cs:dword_140835450                                       ; +0x112, 0x14009a832\njmp     short loc_14009A864                                            ; +0x11a, 0x14009a83a\nucomiss xmm6, cs:dword_14083502C                                       ; +0x11c, 0x14009a83c\njp      short loc_14009A851                                            ; +0x123, 0x14009a843\njnz     short loc_14009A851                                            ; +0x125, 0x14009a845\nmovss   xmm6, cs:flt_140835388                                         ; +0x127, 0x14009a847\njmp     short loc_14009A864                                            ; +0x12f, 0x14009a84f\nucomiss xmm6, cs:dword_140834FE8                                       ; +0x131, 0x14009a851\njp      short loc_14009A864                                            ; +0x138, 0x14009a858\njnz     short loc_14009A864                                            ; +0x13a, 0x14009a85a\nmovss   xmm6, cs:dword_140835318                                       ; +0x13c, 0x14009a85c\nmulss   xmm6, cs:dword_140834E64                                       ; +0x144, 0x14009a864\naddss   xmm6, dword ptr [rsi+244h]                                     ; +0x14c, 0x14009a86c\nmovss   xmm7, cs:dword_1408350AC                                       ; +0x154, 0x14009a874\nminss   xmm7, xmm6                                                     ; +0x15c, 0x14009a87c\ncmp     byte ptr [rsi+240h], 0                                         ; +0x160, 0x14009a880\njnz     short loc_14009A896                                            ; +0x167, 0x14009a887\ncomiss  xmm7, dword ptr [rsi+23Ch]                                     ; +0x169, 0x14009a889\njb      loc_14009A936                                                  ; +0x170, 0x14009a890\nmovss   dword ptr [rsi+23Ch], xmm7                                     ; +0x176, 0x14009a896\nmov     byte ptr [rsi+240h], 0                                         ; +0x17e, 0x14009a89e\nxor     edx, edx                                                       ; +0x185, 0x14009a8a5\nmov     rcx, rsi                                                       ; +0x187, 0x14009a8a7\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x18a, 0x14009a8aa\nmovaps  xmm3, xmm7                                                     ; +0x190, 0x14009a8b0\nmovss   xmm2, dword ptr [rsi+244h]                                     ; +0x193, 0x14009a8b3\nlea     rdx, aAudioscale; \"audioScale\"                                 ; +0x19b, 0x14009a8bb\nmovss   xmm0, cs:dword_140834DDC                                       ; +0x1a2, 0x14009a8c2\ncall    cs:?create@CCActionTween@cocos2d@@SAPEAV12@MPEBDMM@Z; cocos2d::CCActionTween::create(float,char const *,float,float) ; +0x1aa, 0x14009a8ca\nmov     rdi, rax                                                       ; +0x1b0, 0x14009a8d0\nmovss   xmm3, cs:dword_140834E00                                       ; +0x1b3, 0x14009a8d3\nmovaps  xmm2, xmm7                                                     ; +0x1bb, 0x14009a8db\nlea     rdx, aAudioscale; \"audioScale\"                                 ; +0x1be, 0x14009a8de\nmovss   xmm0, cs:dword_140834E64                                       ; +0x1c5, 0x14009a8e5\ncall    cs:?create@CCActionTween@cocos2d@@SAPEAV12@MPEBDMM@Z; cocos2d::CCActionTween::create(float,char const *,float,float) ; +0x1cd, 0x14009a8ed\nmov     rbx, rax                                                       ; +0x1d3, 0x14009a8f3\nlea     rdx, AudioEffectsLayer__goingDown                              ; +0x1d6, 0x14009a8f6\nmov     rcx, rsi                                                       ; +0x1dd, 0x14009a8fd\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x1e0, 0x14009a900\nxor     r9d, r9d                                                       ; +0x1e6, 0x14009a906\nmov     r8, rbx                                                        ; +0x1e9, 0x14009a909\nmov     rdx, rax                                                       ; +0x1ec, 0x14009a90c\nmov     rcx, rdi                                                       ; +0x1ef, 0x14009a90f\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x1f2, 0x14009a912\nmov     rbx, rax                                                       ; +0x1f8, 0x14009a918\nmov     rcx, [rax]                                                     ; +0x1fb, 0x14009a91b\nmov     r8, [rcx+40h]                                                  ; +0x1fe, 0x14009a91e\nxor     edx, edx                                                       ; +0x202, 0x14009a922\nmov     rcx, rax                                                       ; +0x204, 0x14009a924\ncall    r8                                                             ; +0x207, 0x14009a927\nmov     rdx, rbx                                                       ; +0x20a, 0x14009a92a\nmov     rcx, rsi                                                       ; +0x20d, 0x14009a92d\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x210, 0x14009a930\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x216, 0x14009a936\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x21b, 0x14009a93b\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x220, 0x14009a940\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x225, 0x14009a945\nadd     rsp, 40h                                                       ; +0x22a, 0x14009a94a\npop     rdi                                                            ; +0x22e, 0x14009a94e\nretn                                                                   ; +0x22f, 0x14009a94f", "xrefs": ["PlayLayer::postUpdate @ 0x140513ccc", "<???> @ 0x140912e84", "<???> @ 0x140912e90"], "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"}