{"type": "func", "start": 6442468800, "end": 6442468902, "name": "cocos2d::extension::CCControl::addTargetWithActionForControlEvents", "pseudocode": "// \n// cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x1800045c0 to 0x180004626 (102 bytes)\n// \n// 12 xrefs:\n// > <???> @ 0x180023b28\n// > <???> @ 0x180024128\n// > <???> @ 0x180024698\n// > <???> @ 0x180024da0\n// > <???> @ 0x180025350\n// > <???> @ 0x180025938\n// > <???> @ 0x180025ee8\n// > <???> @ 0x1800264b8\n// > <???> @ 0x180026ae0\n// > <???> @ 0x180027f70\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800493fc\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\n__int64 __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvents(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        int a4)\n{\n  unsigned int v4; // ebx\n  __int64 v9; // rdi\n  __int64 result; // rax\n\n  v4 = 1;\n  v9 = 9;\n  do\n  {\n    if ( (v4 & a4) != 0 )\n      result = cocos2d::extension::CCControl::addTargetWithActionForControlEvent(a1, a2, a3, v4);\n    v4 = __ROL4__(v4, 1);\n    --v9;\n  }\n  while ( v9 );\n  return result;\n}", "assembly": "; \n; cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x1800045c0 to 0x180004626 (102 bytes)\n; \n; 12 xrefs:\n; > <???> @ 0x180023b28\n; > <???> @ 0x180024128\n; > <???> @ 0x180024698\n; > <???> @ 0x180024da0\n; > <???> @ 0x180025350\n; > <???> @ 0x180025938\n; > <???> @ 0x180025ee8\n; > <???> @ 0x1800264b8\n; > <???> @ 0x180026ae0\n; > <???> @ 0x180027f70\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800493fc\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_0], rbx                                               ; +0x0, 0x1800045c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800045c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800045ca\npush    rdi                                                            ; +0xf, 0x1800045cf\npush    r14                                                            ; +0x10, 0x1800045d0\npush    r15                                                            ; +0x12, 0x1800045d2\nsub     rsp, 20h                                                       ; +0x14, 0x1800045d4\nmov     ebx, 1                                                         ; +0x18, 0x1800045d8\nmov     esi, r9d                                                       ; +0x1d, 0x1800045dd\nmov     rbp, r8                                                        ; +0x20, 0x1800045e0\nmov     r14, rdx                                                       ; +0x23, 0x1800045e3\nmov     r15, rcx                                                       ; +0x26, 0x1800045e6\nlea     edi, [rbx+8]                                                   ; +0x29, 0x1800045e9\nnop     dword ptr [rax+00h]                                            ; +0x2c, 0x1800045ec\ntest    esi, ebx                                                       ; +0x30, 0x1800045f0\njz      short loc_180004605                                            ; +0x32, 0x1800045f2\nmov     r9d, ebx                                                       ; +0x34, 0x1800045f4\nmov     r8, rbp                                                        ; +0x37, 0x1800045f7\nmov     rdx, r14                                                       ; +0x3a, 0x1800045fa\nmov     rcx, r15                                                       ; +0x3d, 0x1800045fd\ncall    ?addTargetWithActionForControlEvent@CCControl@extension@cocos2d@@IEAAXPEAVCCObject@3@P843@EAAX0I@ZI@Z; cocos2d::extension::CCControl::addTargetWithActionForControlEvent(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *,uint),uint) ; +0x40, 0x180004600\nrol     ebx, 1                                                         ; +0x45, 0x180004605\nsub     rdi, 1                                                         ; +0x47, 0x180004607\njnz     short loc_1800045F0                                            ; +0x4b, 0x18000460b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x4d, 0x18000460d\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x52, 0x180004612\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x57, 0x180004617\nadd     rsp, 20h                                                       ; +0x5c, 0x18000461c\npop     r15                                                            ; +0x60, 0x180004620\npop     r14                                                            ; +0x62, 0x180004622\npop     rdi                                                            ; +0x64, 0x180004624\nretn                                                                   ; +0x65, 0x180004625", "xrefs": ["<???> @ 0x180023b28", "<???> @ 0x180024128", "<???> @ 0x180024698", "<???> @ 0x180024da0", "<???> @ 0x180025350", "<???> @ 0x180025938", "<???> @ 0x180025ee8", "<???> @ 0x1800264b8", "<???> @ 0x180026ae0", "<???> @ 0x180027f70", "<???> @ 0x18002fdf8", "<???> @ 0x1800493fc"], "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"}