{"type": "func", "start": 6888092, "end": 6888384, "name": "CCMenuItemSpriteExtra::activate", "pseudocode": "// \n// CCMenuItemSpriteExtra::activate from 0x691a9c to 0x691bc0 (292 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xc28a8\n// > <???> @ 0x1416ba0\n// > <???> @ 0x14314b0\n// > <???> @ 0x14e1800\n// \n// This function is hookable on this platform (idp: arm, 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:50:35 +0000\n// \n\n__int64 __fastcall CCMenuItemSpriteExtra::activate(CCMenuItemSpriteExtra *this)\n{\n  FMODAudioEngine *v3; // x0\n  __int64 v4; // x1\n  __int64 v5; // x22\n  const char *v6; // x1\n  size_t v7; // x0\n  char *v8; // [xsp+38h] [xbp+38h]\n  __int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF\n  void *v10; // [xsp+50h] [xbp+50h]\n\n  if ( *((_BYTE *)this + 339) )\n  {\n    cocos2d::CCNode::stopAllActions(this);\n    if ( !*((_DWORD *)this + 121) )\n      (*(void (__fastcall **)(CCMenuItemSpriteExtra *, float))(*(_QWORD *)this + 160LL))(this, *((float *)this + 101));\n    v3 = (FMODAudioEngine *)*((unsigned __int8 *)this + 416);\n    v4 = (unsigned __int8)v3 >> 1;\n    if ( ((unsigned __int8)v3 & 1) != 0 )\n      v4 = *((_QWORD *)this + 53);\n    if ( v4 )\n    {\n      v5 = FMODAudioEngine::sharedEngine(v3);\n      v6 = (char *)this + 417;\n      if ( (*((_BYTE *)this + 416) & 1) != 0 )\n        v6 = *((const char **)this + 54);\n      v8 = (char *)v6;\n      v9[0] = 0;\n      v9[1] = 0;\n      v10 = nullptr;\n      v7 = strlen(v6);\n      std::string::__init(v9, v8, v7);\n      FMODAudioEngine::playEffect(v5, 1.0, 0.0, *((float *)this + 103));\n      if ( (v9[0] & 1) != 0 )\n        operator delete(v10);\n    }\n    cocos2d::CCMenuItem::activate(this);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCMenuItemSpriteExtra::activate from 0x691a9c to 0x691bc0 (292 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xc28a8\n; > <???> @ 0x1416ba0\n; > <???> @ 0x14314b0\n; > <???> @ 0x14e1800\n; \n; This function is hookable on this platform (idp: arm, 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:50:35 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x691a9c\nMOV             X29, SP                                                ; +0x4, 0x691aa0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x691aa4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x691aa8\nMOV             X20, X0                                                ; +0x10, 0x691aac\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x691ab0\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x691ab4\nLDRB            W1, [X0,#0x153]                                        ; +0x1c, 0x691ab8\nLDR             X2, [X2]                                               ; +0x20, 0x691abc\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x24, 0x691ac0\nCBNZ            W1, loc_691AEC                                         ; +0x28, 0x691ac4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x691ac8\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x30, 0x691acc\nLDR             X0, [X19]; this                                        ; +0x34, 0x691ad0\nCMP             X1, X0                                                 ; +0x38, 0x691ad4\nB.NE            loc_691BA0                                             ; +0x3c, 0x691ad8\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x40, 0x691adc\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x44, 0x691ae0\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x48, 0x691ae4\nRET                                                                    ; +0x4c, 0x691ae8\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x50, 0x691aec\nLDR             W0, [X20,#0x1E4]                                       ; +0x54, 0x691af0\nCBZ             W0, loc_691B88                                         ; +0x58, 0x691af4\nLDRB            W0, [X20,#0x1A0]; this                                 ; +0x5c, 0x691af8\nADD             X21, X20, #0x1A0                                       ; +0x60, 0x691afc\nUBFX            X1, X0, #1, #7                                         ; +0x64, 0x691b00\nTBZ             W0, #0, loc_691B0C                                     ; +0x68, 0x691b04\nLDR             X1, [X21,#8]                                           ; +0x6c, 0x691b08\nCBZ             X1, loc_691B7C                                         ; +0x70, 0x691b0c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x74, 0x691b10\nMOV             X22, X0                                                ; +0x78, 0x691b14\nLDRB            W0, [X20,#0x1A0]                                       ; +0x7c, 0x691b18\nADD             X1, X20, #0x1A1                                        ; +0x80, 0x691b1c\nTBZ             W0, #0, loc_691B28                                     ; +0x84, 0x691b20\nLDR             X1, [X21,#0x10]                                        ; +0x88, 0x691b24\nMOV             X0, X1; char *                                         ; +0x8c, 0x691b28\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x90, 0x691b2c\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x94, 0x691b30\nADD             X21, X29, #0x60+var_20                                 ; +0x98, 0x691b34\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x9c, 0x691b38\nSTR             XZR, [X29,#0x60+var_10]                                ; +0xa0, 0x691b3c\nBL              .strlen                                                ; +0xa4, 0x691b40\nLDR             X1, [X29,#0x60+var_28]                                 ; +0xa8, 0x691b44\nMOV             X2, X0                                                 ; +0xac, 0x691b48\nMOV             X0, X21                                                ; +0xb0, 0x691b4c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xb4, 0x691b50\nFMOV            S1, WZR                                                ; +0xb8, 0x691b54\nMOV             X0, X22                                                ; +0xbc, 0x691b58\nLDR             S2, [X20,#0x19C]                                       ; +0xc0, 0x691b5c\nMOV             X1, X21                                                ; +0xc4, 0x691b60\nFMOV            S0, #1.0                                               ; +0xc8, 0x691b64\nBL              _ZN15FMODAudioEngine10playEffectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEfff; FMODAudioEngine::playEffect(std::string,float,float,float) ; +0xcc, 0x691b68\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0xd0, 0x691b6c\nTBZ             W0, #0, loc_691B7C                                     ; +0xd4, 0x691b70\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0xd8, 0x691b74\nBL              _ZdlPv; operator delete(void *)                        ; +0xdc, 0x691b78\nMOV             X0, X20; this                                          ; +0xe0, 0x691b7c\nBL              _ZN7cocos2d10CCMenuItem8activateEv; cocos2d::CCMenuItem::activate(void) ; +0xe4, 0x691b80\nB               loc_691AC8                                             ; +0xe8, 0x691b84\nLDR             X1, [X20]                                              ; +0xec, 0x691b88\nMOV             X0, X20                                                ; +0xf0, 0x691b8c\nLDR             S0, [X20,#0x194]                                       ; +0xf4, 0x691b90\nLDR             X1, [X1,#0xA0]                                         ; +0xf8, 0x691b94\nBLR             X1                                                     ; +0xfc, 0x691b98\nB               loc_691AF8                                             ; +0x100, 0x691b9c\nBL              .__stack_chk_fail                                      ; +0x104, 0x691ba0\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x108, 0x691ba4\nMOV             X19, X0                                                ; +0x10c, 0x691ba8\nTBZ             W1, #0, loc_691BB8                                     ; +0x110, 0x691bac\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x114, 0x691bb0\nBL              _ZdlPv; operator delete(void *)                        ; +0x118, 0x691bb4\nMOV             X0, X19                                                ; +0x11c, 0x691bb8\nBL              _Unwind_Resume                                         ; +0x120, 0x691bbc", "xrefs": ["<???> @ 0xc28a8", "<???> @ 0x1416ba0", "<???> @ 0x14314b0", "<???> @ 0x14e1800"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}