{"type": "func", "start": 5284408, "end": 5284660, "name": "AudioEffectsLayer::triggerEffect", "pseudocode": "// \n// AudioEffectsLayer::triggerEffect from 0x50a238 to 0x50a334 (252 bytes)\n// \n// 1 xrefs:\n// > AudioEffectsLayer::audioStep @ 0x50a3da\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:27 +0000\n// \n\nint __fastcall AudioEffectsLayer::triggerEffect(int this, float a2)\n{\n  float v2; // s15\n  const char **v3; // r4\n  float v4; // s16\n  cocos2d::CCSequence *v5; // r7\n  int v6; // r6\n  cocos2d::CCFiniteTimeAction *v7; // r0\n  cocos2d::CCAction *v8; // r6\n  float v9; // [sp+0h] [bp-Ch]\n  float v10; // [sp+0h] [bp-Ch]\n\n  v2 = a2;\n  v3 = (const char **)this;\n  if ( a2 == 1.0 )\n  {\n    v2 = 4.0;\n  }\n  else if ( a2 == 0.9 )\n  {\n    v2 = 3.0;\n  }\n  else if ( a2 == 0.8 )\n  {\n    v2 = 2.5;\n  }\n  v4 = *(float *)(this + 464) + (float)(v2 * 0.2);\n  if ( v4 >= 1.1 )\n    v4 = 1.1;\n  if ( *(_BYTE *)(this + 460) || *(float *)(this + 456) <= v4 )\n  {\n    *(float *)(this + 456) = v4;\n    *(_BYTE *)(this + 460) = 0;\n    cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)this, 0);\n    v5 = (cocos2d::CCSequence *)cocos2d::CCActionTween::create(\n                                  (cocos2d::CCActionTween *)0x3D4CCCCD,\n                                  COERCE_FLOAT(\"audioScale\"),\n                                  v3[116],\n                                  v4,\n                                  v9);\n    v6 = cocos2d::CCActionTween::create(\n           (cocos2d::CCActionTween *)0x3E4CCCCD,\n           COERCE_FLOAT(\"audioScale\"),\n           (const char *)LODWORD(v4),\n           0.1,\n           v10);\n    v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v3, AudioEffectsLayer::goingDown, 0);\n    v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v7, v6, 0, AudioEffectsLayer::goingDown, 0);\n    (*(void (__fastcall **)(cocos2d::CCAction *, _DWORD))(*(_DWORD *)v8 + 36))(v8, 0);\n    return cocos2d::CCNode::runAction((cocos2d::CCNode *)v3, v8);\n  }\n  return this;\n}", "assembly": "; \n; AudioEffectsLayer::triggerEffect from 0x50a238 to 0x50a334 (252 bytes)\n; \n; 1 xrefs:\n; > AudioEffectsLayer::audioStep @ 0x50a3da\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:27 +0000\n; \nVMOV.F32        S14, #1.0                                              ; +0x0, 0x50a238\nVMOV            S15, R1                                                ; +0x4, 0x50a23c\nPUSH            {R4-R7,LR}                                             ; +0x8, 0x50a240\nMOV             R4, R0                                                 ; +0xa, 0x50a242\nVPUSH           {D8}                                                   ; +0xc, 0x50a244\nSUB             SP, SP, #0xC; float                                    ; +0x10, 0x50a248\nVCMP.F32        S15, S14                                               ; +0x12, 0x50a24a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x16, 0x50a24e\nBEQ             loc_50A27A                                             ; +0x1a, 0x50a252\nVLDR            S14, =0.9                                              ; +0x1c, 0x50a254\nVCMP.F32        S15, S14                                               ; +0x20, 0x50a258\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x50a25c\nBEQ             loc_50A280                                             ; +0x28, 0x50a260\nVLDR            S14, =0.8                                              ; +0x2a, 0x50a262\nVCMP.F32        S15, S14                                               ; +0x2e, 0x50a266\nVMOV.F32        S14, #2.5                                              ; +0x32, 0x50a26a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x36, 0x50a26e\nIT EQ                                                                  ; +0x3a, 0x50a272\nVMOVEQ.F32      S15, S14                                               ; +0x3c, 0x50a274\nB               loc_50A284                                             ; +0x40, 0x50a278\nVMOV.F32        S15, #4.0                                              ; +0x42, 0x50a27a\nB               loc_50A284                                             ; +0x46, 0x50a27e\nVMOV.F32        S15, #3.0                                              ; +0x48, 0x50a280\nVLDR            S16, [R4,#0x1D0]                                       ; +0x4c, 0x50a284\nLDRB.W          R3, [R4,#0x1CC]                                        ; +0x50, 0x50a288\nVLDR            S14, =0.2                                              ; +0x54, 0x50a28c\nVMLA.F32        S16, S15, S14                                          ; +0x58, 0x50a290\nVLDR            S15, =1.1                                              ; +0x5c, 0x50a294\nVCMPE.F32       S16, S15                                               ; +0x60, 0x50a298\nVMRS            APSR_nzcv, FPSCR                                       ; +0x64, 0x50a29c\nIT PL                                                                  ; +0x68, 0x50a2a0\nVMOVPL.F32      S16, S15                                               ; +0x6a, 0x50a2a2\nCBNZ            R3, loc_50A2B6                                         ; +0x6e, 0x50a2a6\nVLDR            S15, [R4,#0x1C8]                                       ; +0x70, 0x50a2a8\nVCMPE.F32       S15, S16                                               ; +0x74, 0x50a2ac\nVMRS            APSR_nzcv, FPSCR                                       ; +0x78, 0x50a2b0\nBHI             loc_50A32C                                             ; +0x7c, 0x50a2b4\nLDR             R6, =(aAudioscale - 0x50A2C2); \"audioScale\"            ; +0x7e, 0x50a2b6\nMOVS            R5, #0                                                 ; +0x80, 0x50a2b8\nMOV             R0, R4; this                                           ; +0x82, 0x50a2ba\nMOV             R1, R5; int                                            ; +0x84, 0x50a2bc\nADD             R6, PC; \"audioScale\"                                   ; +0x86, 0x50a2be\nVSTR            S16, [R4,#0x1C8]                                       ; +0x88, 0x50a2c0\nSTRB.W          R5, [R4,#0x1CC]                                        ; +0x8c, 0x50a2c4\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x90, 0x50a2c8\nMOV             R1, R6; float                                          ; +0x94, 0x50a2cc\nLDR.W           R2, [R4,#0x1D0]; char *                                ; +0x96, 0x50a2ce\nVMOV            R3, S16; float                                         ; +0x9a, 0x50a2d2\nLDR             R0, =0x3D4CCCCD; this                                  ; +0x9e, 0x50a2d6\nBL              _ZN7cocos2d13CCActionTween6createEfPKcff; cocos2d::CCActionTween::create(float,char const*,float,float) ; +0xa0, 0x50a2d8\nMOV             R1, R6; float                                          ; +0xa4, 0x50a2dc\nVMOV            R2, S16; char *                                        ; +0xa6, 0x50a2de\nLDR             R3, flt_50A348; float                                  ; +0xaa, 0x50a2e2\nMOV             R7, R0                                                 ; +0xac, 0x50a2e4\nLDR             R0, =0x3E4CCCCD; this                                  ; +0xae, 0x50a2e6\nBL              _ZN7cocos2d13CCActionTween6createEfPKcff; cocos2d::CCActionTween::create(float,char const*,float,float) ; +0xb0, 0x50a2e8\nLDR             R3, =(_ZN17AudioEffectsLayer9goingDownEv_ptr - 0x50A2F2) ; +0xb4, 0x50a2ec\nADD             R3, PC; _ZN17AudioEffectsLayer9goingDownEv_ptr         ; +0xb6, 0x50a2ee\nLDR             R3, [R3]; AudioEffectsLayer::goingDown(void)           ; +0xb8, 0x50a2f0\nSTMEA.W         SP, {R3,R5}                                            ; +0xba, 0x50a2f2\nADD             R3, SP, #0xC+var_4                                     ; +0xbe, 0x50a2f6\nLDMDB.W         R3, {R1,R2}                                            ; +0xc0, 0x50a2f8\nMOV             R6, R0                                                 ; +0xc4, 0x50a2fc\nMOV             R0, R4                                                 ; +0xc6, 0x50a2fe\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xc8, 0x50a300\nMOV             R2, R6                                                 ; +0xcc, 0x50a304\nMOV             R3, R5                                                 ; +0xce, 0x50a306\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0xd0, 0x50a308\nMOV             R0, R7; this                                           ; +0xd2, 0x50a30a\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xd4, 0x50a30c\nMOV             R1, R5                                                 ; +0xd8, 0x50a310\nLDR             R3, [R0]                                               ; +0xda, 0x50a312\nMOV             R6, R0                                                 ; +0xdc, 0x50a314\nLDR             R3, [R3,#0x24]                                         ; +0xde, 0x50a316\nBLX             R3                                                     ; +0xe0, 0x50a318\nMOV             R0, R4; this                                           ; +0xe2, 0x50a31a\nMOV             R1, R6; cocos2d::CCAction *                            ; +0xe4, 0x50a31c\nADD             SP, SP, #0xC                                           ; +0xe6, 0x50a31e\nVPOP            {D8}                                                   ; +0xe8, 0x50a320\nPOP.W           {R4-R7,LR}                                             ; +0xec, 0x50a324\nB.W             _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xf0, 0x50a328\nADD             SP, SP, #0xC                                           ; +0xf4, 0x50a32c\nVPOP            {D8}                                                   ; +0xf6, 0x50a32e\nPOP             {R4-R7,PC}                                             ; +0xfa, 0x50a332", "xrefs": ["AudioEffectsLayer::audioStep @ 0x50a3da"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}