{"type": "func", "start": 6442824224, "end": 6442824338, "name": "cocos2d::CCMenuItem::initWithTarget", "pseudocode": "// \n// cocos2d::CCMenuItem::initWithTarget from 0x18005b220 to 0x18005b292 (114 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCMenuItem::create @ 0x18005a33a\n// > cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005abca\n// > cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005aca0\n// > cocos2d::CCMenuItemLabel::initWithLabel @ 0x18005aed9\n// > cocos2d::CCMenuItemSprite::initWithNormalSprite @ 0x18005b02b\n// > cocos2d::CCMenuItemToggle::initWithTarget @ 0x18005b2b0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2da8\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\nchar __fastcall cocos2d::CCMenuItem::initWithTarget(__int64 *a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rbx\n  float *v7; // rax\n  float v9; // [rsp+30h] [rbp+8h] BYREF\n\n  v4 = *a1;\n  v7 = kmVec2Fill(&v9, 0.5, 0.5);\n  (*(void (__fastcall **)(__int64 *, float *))(v4 + 272))(a1, v7);\n  a1[44] = a2;\n  a1[45] = a3;\n  *((_WORD *)a1 + 172) = 256;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCMenuItem::initWithTarget from 0x18005b220 to 0x18005b292 (114 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCMenuItem::create @ 0x18005a33a\n; > cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005abca\n; > cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005aca0\n; > cocos2d::CCMenuItemLabel::initWithLabel @ 0x18005aed9\n; > cocos2d::CCMenuItemSprite::initWithNormalSprite @ 0x18005b02b\n; > cocos2d::CCMenuItemToggle::initWithTarget @ 0x18005b2b0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2da8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18005b220\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18005b225\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x18005b22a\npush    r14                                                            ; +0xf, 0x18005b22f\nsub     rsp, 20h                                                       ; +0x11, 0x18005b231\nmovss   xmm1, cs:dword_1800E6308                                       ; +0x15, 0x18005b235\nmov     r14, rcx                                                       ; +0x1d, 0x18005b23d\nmov     rbx, [rcx]                                                     ; +0x20, 0x18005b240\nmovaps  xmm2, xmm1                                                     ; +0x23, 0x18005b243\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x26, 0x18005b246\nmov     rsi, r8                                                        ; +0x2b, 0x18005b24b\nmov     rdi, rdx                                                       ; +0x2e, 0x18005b24e\ncall    kmVec2Fill                                                     ; +0x31, 0x18005b251\nmov     rdx, rax                                                       ; +0x36, 0x18005b256\nmov     rcx, r14                                                       ; +0x39, 0x18005b259\ncall    qword ptr [rbx+110h]                                           ; +0x3c, 0x18005b25c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x42, 0x18005b262\nmov     al, 1                                                          ; +0x47, 0x18005b267\nmov     [r14+160h], rdi                                                ; +0x49, 0x18005b269\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x50, 0x18005b270\nmov     [r14+168h], rsi                                                ; +0x55, 0x18005b275\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5c, 0x18005b27c\nmov     word ptr [r14+158h], 100h                                      ; +0x61, 0x18005b281\nadd     rsp, 20h                                                       ; +0x6b, 0x18005b28b\npop     r14                                                            ; +0x6f, 0x18005b28f\nretn                                                                   ; +0x71, 0x18005b291", "xrefs": ["cocos2d::CCMenuItem::create @ 0x18005a33a", "cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005abca", "cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005aca0", "cocos2d::CCMenuItemLabel::initWithLabel @ 0x18005aed9", "cocos2d::CCMenuItemSprite::initWithNormalSprite @ 0x18005b02b", "cocos2d::CCMenuItemToggle::initWithTarget @ 0x18005b2b0", "<???> @ 0x1801438a8", "<???> @ 0x1801b2da8"], "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"}