{"type": "func", "start": 3040432, "end": 3040568, "name": "CCMenuItemSpriteExtra::activate", "pseudocode": "// \n// CCMenuItemSpriteExtra::activate from 0x2e64b0 to 0x2e6538 (136 bytes)\n// \n// 0 xrefs:\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 CCMenuItemSpriteExtra::activate(CCMenuItemSpriteExtra *a1)\n{\n  FMODAudioEngine *v2; // r7\n  _BYTE v3[4]; // [sp+10h] [bp-Ch] BYREF\n\n  if ( a1->m_bEnabled )\n  {\n    cocos2d::CCNode::stopAllActions(a1);\n    if ( !a1->m_animationType )\n      ((void (__fastcall *)(CCMenuItemSpriteExtra *, _DWORD))a1->setScale)(a1, LODWORD(a1->m_baseScale));\n    if ( *((_DWORD *)a1->m_activateSound.m_data.m_data - 3) )\n    {\n      v2 = FMODAudioEngine::sharedEngine();\n      sub_776584((int)v3, (char *)a1->m_activateSound.m_data.m_data);\n      FMODAudioEngine::playEffect((int)v2, (int)v3, 1065353216, 0, a1->m_volume);\n      sub_774008(v3);\n    }\n    cocos2d::CCMenuItem::activate(a1);\n  }\n}", "assembly": "; \n; CCMenuItemSpriteExtra::activate from 0x2e64b0 to 0x2e6538 (136 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2E64B8)                ; +0x0, 0x2e64b0\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x2e64b2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x2e64b4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x2e64b6\nSUB             SP, SP, #0x1C                                          ; +0x8, 0x2e64b8\nMOV             R4, R0                                                 ; +0xa, 0x2e64ba\nLDR             R2, [R3]                                               ; +0xc, 0x2e64bc\nMOV             R6, R3                                                 ; +0xe, 0x2e64be\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x10, 0x2e64c0\nLDRB.W          R2, [R0,#0x117]                                        ; +0x12, 0x2e64c2\nCBZ             R2, loc_2E6528                                         ; +0x16, 0x2e64c6\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x18, 0x2e64c8\nLDR.W           R3, [R4,#0x164]                                        ; +0x1c, 0x2e64cc\nCBNZ            R3, loc_2E64DE                                         ; +0x20, 0x2e64d0\nLDR             R3, [R4]                                               ; +0x22, 0x2e64d2\nMOV             R0, R4                                                 ; +0x24, 0x2e64d4\nLDR.W           R1, [R4,#0x13C]                                        ; +0x26, 0x2e64d6\nLDR             R3, [R3,#0x50]                                         ; +0x2a, 0x2e64da\nBLX             R3                                                     ; +0x2c, 0x2e64dc\nLDR.W           R3, [R4,#0x148]                                        ; +0x2e, 0x2e64de\nLDR.W           R3, [R3,#-0xC]                                         ; +0x32, 0x2e64e2\nCBZ             R3, loc_2E6516                                         ; +0x36, 0x2e64e6\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x38, 0x2e64e8\nADD             R5, SP, #0x1C+var_C                                    ; +0x3c, 0x2e64ec\nLDR.W           R1, [R4,#0x148]; char *                                ; +0x3e, 0x2e64ee\nADD             R2, SP, #0x1C+var_10                                   ; +0x42, 0x2e64f2\nMOV             R7, R0                                                 ; +0x44, 0x2e64f4\nMOV             R0, R5; int                                            ; +0x46, 0x2e64f6\nBL              sub_776584                                             ; +0x48, 0x2e64f8\nLDR.W           R3, [R4,#0x144]                                        ; +0x4c, 0x2e64fc\nMOV             R0, R7; int                                            ; +0x50, 0x2e6500\nMOV             R1, R5; int                                            ; +0x52, 0x2e6502\nMOV.W           R2, #0x3F800000; int                                   ; +0x54, 0x2e6504\nSTR             R3, [SP,#0x1C+var_1C]; float                           ; +0x58, 0x2e6508\nMOVS            R3, #0; int                                            ; +0x5a, 0x2e650a\nBL              _ZN15FMODAudioEngine10playEffectESsfff; FMODAudioEngine::playEffect(std::string,float,float,float) ; +0x5c, 0x2e650c\nMOV             R0, R5                                                 ; +0x60, 0x2e6510\nBL              sub_774008                                             ; +0x62, 0x2e6512\nMOV             R0, R4; this                                           ; +0x66, 0x2e6516\nBL              _ZN7cocos2d10CCMenuItem8activateEv; cocos2d::CCMenuItem::activate(void) ; +0x68, 0x2e6518\nB               loc_2E6528                                             ; +0x6c, 0x2e651c\nMOV             R0, R5                                                 ; +0x6e, 0x2e651e\nBL              sub_774008                                             ; +0x70, 0x2e6520\nBL              __cxa_end_cleanup                                      ; +0x74, 0x2e6524\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x78, 0x2e6528\nLDR             R3, [R6]                                               ; +0x7a, 0x2e652a\nCMP             R2, R3                                                 ; +0x7c, 0x2e652c\nBEQ             loc_2E6534                                             ; +0x7e, 0x2e652e\nBLX             __stack_chk_fail                                       ; +0x80, 0x2e6530\nADD             SP, SP, #0x1C                                          ; +0x84, 0x2e6534\nPOP             {R4-R7,PC}                                             ; +0x86, 0x2e6536", "xrefs": [], "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"}