{"type": "func", "start": 3959084, "end": 3959264, "name": "CCMenuItemSpriteExtra::activate", "pseudocode": "// \n// CCMenuItemSpriteExtra::activate from 0x3c692c to 0x3c69e0 (180 bytes)\n// \n// 0 xrefs:\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:46:34 +0000\n// \n\ncocos2d::CCMenuItem *__fastcall CCMenuItemSpriteExtra::activate(cocos2d::CCMenuItem *this)\n{\n  const char *v1; // r7\n  cocos2d::CCMenuItem *v2; // r4\n  FMODAudioEngine *v3; // r0\n  int v4; // r3\n  int v5; // r3\n  int v6; // r0\n  bool v7; // nf\n  int v8; // r8\n  size_t v9; // r0\n  int v10[3]; // [sp+8h] [bp-10h] BYREF\n\n  v2 = this;\n  if ( *((_BYTE *)this + 279) )\n  {\n    v3 = (FMODAudioEngine *)cocos2d::CCNode::stopAllActions(this);\n    if ( !*((_DWORD *)v2 + 93) )\n      v3 = (FMODAudioEngine *)(*(int (__fastcall **)(cocos2d::CCMenuItem *, _DWORD))(*(_DWORD *)v2 + 80))(\n                                v2,\n                                *((_DWORD *)v2 + 79));\n    v4 = *((unsigned __int8 *)v2 + 328);\n    if ( (v4 & 1) != 0 )\n      v5 = *((_DWORD *)v2 + 83);\n    else\n      v5 = v4 >> 1;\n    if ( v5 )\n    {\n      v6 = FMODAudioEngine::sharedEngine(v3);\n      v7 = (*((_BYTE *)v2 + 328) & 1) != 0;\n      if ( (*((_BYTE *)v2 + 328) & 1) == 0 )\n        v1 = (char *)v2 + 329;\n      v10[0] = 0;\n      if ( v7 )\n        v1 = *((const char **)v2 + 84);\n      v10[1] = 0;\n      v10[2] = 0;\n      v8 = v6;\n      v9 = strlen(v1);\n      std::string::__init(v10, v1, v9);\n      FMODAudioEngine::playEffect(v8, (int)v10, 1065353216, 0, *((float *)v2 + 81));\n      std::string::~string((int)v10);\n    }\n    return (cocos2d::CCMenuItem *)cocos2d::CCMenuItem::activate(v2);\n  }\n  return this;\n}", "assembly": "; \n; CCMenuItemSpriteExtra::activate from 0x3c692c to 0x3c69e0 (180 bytes)\n; \n; 0 xrefs:\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:46:34 +0000\n; \nLDR             R2, =(__stack_chk_guard_ptr - 0x3C6936)                ; +0x0, 0x3c692c\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x3c692e\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3c6932\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x8, 0x3c6934\nSUB             SP, SP, #0x18                                          ; +0xa, 0x3c6936\nMOV             R4, R0                                                 ; +0xc, 0x3c6938\nLDR             R3, [R2]                                               ; +0xe, 0x3c693a\nMOV             R6, R2                                                 ; +0x10, 0x3c693c\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x12, 0x3c693e\nLDRB.W          R3, [R0,#0x117]                                        ; +0x14, 0x3c6940\nCMP             R3, #0                                                 ; +0x18, 0x3c6944\nBEQ             loc_3C69CE                                             ; +0x1a, 0x3c6946\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x1c, 0x3c6948\nLDR.W           R3, [R4,#0x174]                                        ; +0x20, 0x3c694c\nCBNZ            R3, loc_3C695E                                         ; +0x24, 0x3c6950\nLDR             R3, [R4]                                               ; +0x26, 0x3c6952\nMOV             R0, R4                                                 ; +0x28, 0x3c6954\nLDR.W           R1, [R4,#0x13C]                                        ; +0x2a, 0x3c6956\nLDR             R3, [R3,#0x50]                                         ; +0x2e, 0x3c695a\nBLX             R3                                                     ; +0x30, 0x3c695c\nLDRB.W          R3, [R4,#0x148]                                        ; +0x32, 0x3c695e\nLSLS            R2, R3, #0x1F                                          ; +0x36, 0x3c6962\nITE PL                                                                 ; +0x38, 0x3c6964\nASRPL           R3, R3, #1                                             ; +0x3a, 0x3c6966\nLDRMI.W         R3, [R4,#0x14C]                                        ; +0x3c, 0x3c6968\nCBZ             R3, loc_3C69BC                                         ; +0x40, 0x3c696c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x42, 0x3c696e\nLDRB.W          R3, [R4,#0x148]                                        ; +0x46, 0x3c6972\nADD             R5, SP, #0x18+var_10                                   ; +0x4a, 0x3c6976\nLSLS            R3, R3, #0x1F                                          ; +0x4c, 0x3c6978\nMOV.W           R3, #0                                                 ; +0x4e, 0x3c697a\nIT PL                                                                  ; +0x52, 0x3c697e\nADDWPL          R7, R4, #0x149                                         ; +0x54, 0x3c6980\nSTR             R3, [SP,#0x18+var_10]                                  ; +0x58, 0x3c6984\nIT MI                                                                  ; +0x5a, 0x3c6986\nLDRMI.W         R7, [R4,#0x150]                                        ; +0x5c, 0x3c6988\nSTR             R3, [SP,#0x18+var_C]                                   ; +0x60, 0x3c698c\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x62, 0x3c698e\nMOV             R8, R0                                                 ; +0x64, 0x3c6990\nMOV             R0, R7; char *                                         ; +0x66, 0x3c6992\nBLX             strlen                                                 ; +0x68, 0x3c6994\nMOV             R1, R7                                                 ; +0x6c, 0x3c6998\nMOV             R2, R0                                                 ; +0x6e, 0x3c699a\nMOV             R0, R5                                                 ; +0x70, 0x3c699c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x72, 0x3c699e\nLDR.W           R3, [R4,#0x144]                                        ; +0x76, 0x3c69a2\nMOV             R0, R8; int                                            ; +0x7a, 0x3c69a6\nMOV             R1, R5; int                                            ; +0x7c, 0x3c69a8\nMOV.W           R2, #0x3F800000; int                                   ; +0x7e, 0x3c69aa\nSTR             R3, [SP,#0x18+var_18]; float                           ; +0x82, 0x3c69ae\nMOVS            R3, #0; int                                            ; +0x84, 0x3c69b0\nBL              _ZN15FMODAudioEngine10playEffectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEfff; FMODAudioEngine::playEffect(std::string,float,float,float) ; +0x86, 0x3c69b2\nMOV             R0, R5                                                 ; +0x8a, 0x3c69b6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x8c, 0x3c69b8\nMOV             R0, R4; this                                           ; +0x90, 0x3c69bc\nBL              _ZN7cocos2d10CCMenuItem8activateEv; cocos2d::CCMenuItem::activate(void) ; +0x92, 0x3c69be\nB               loc_3C69CE                                             ; +0x96, 0x3c69c2\nMOV             R0, R5                                                 ; +0x98, 0x3c69c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9a, 0x3c69c6\nBL              __cxa_end_cleanup                                      ; +0x9e, 0x3c69ca\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa2, 0x3c69ce\nLDR             R3, [R6]                                               ; +0xa4, 0x3c69d0\nCMP             R2, R3                                                 ; +0xa6, 0x3c69d2\nBEQ             loc_3C69DA                                             ; +0xa8, 0x3c69d4\nBLX             __stack_chk_fail                                       ; +0xaa, 0x3c69d6\nADD             SP, SP, #0x18                                          ; +0xae, 0x3c69da\nPOP.W           {R4-R8,PC}                                             ; +0xb0, 0x3c69dc", "xrefs": [], "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"}