{"type": "func", "start": 6442467376, "end": 6442467478, "name": "cocos2d::extension::CCControl::addTargetWithActionForControlEvents", "pseudocode": "// \n// cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x180004030 to 0x180004096 (102 bytes)\n// \n// 12 xrefs:\n// > <???> @ 0x180026050\n// > <???> @ 0x180026670\n// > <???> @ 0x180026bf0\n// > <???> @ 0x180027328\n// > <???> @ 0x1800278f8\n// > <???> @ 0x180027f00\n// > <???> @ 0x1800284d0\n// > <???> @ 0x180028ac0\n// > <???> @ 0x180029108\n// > <???> @ 0x18002a5e8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b348\n// \n// This function is hookable on this platform (idp: pc, 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:15:35 +0000\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 v8; // ebx\n  __int64 v9; // rdi\n  __int64 result; // rax\n\n  v8 = 1;\n  v9 = 9;\n  do\n  {\n    if ( (v8 & a4) != 0 )\n      result = cocos2d::extension::CCControl::addTargetWithActionForControlEvent(a1, a2, a3, v8);\n    v8 = __ROL4__(v8, 1);\n    --v9;\n  }\n  while ( v9 );\n  return result;\n}", "assembly": "; \n; cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x180004030 to 0x180004096 (102 bytes)\n; \n; 12 xrefs:\n; > <???> @ 0x180026050\n; > <???> @ 0x180026670\n; > <???> @ 0x180026bf0\n; > <???> @ 0x180027328\n; > <???> @ 0x1800278f8\n; > <???> @ 0x180027f00\n; > <???> @ 0x1800284d0\n; > <???> @ 0x180028ac0\n; > <???> @ 0x180029108\n; > <???> @ 0x18002a5e8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b348\n; \n; This function is hookable on this platform (idp: pc, 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:15:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180004030\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180004035\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18000403a\npush    rdi                                                            ; +0xf, 0x18000403f\npush    r14                                                            ; +0x10, 0x180004040\npush    r15                                                            ; +0x12, 0x180004042\nsub     rsp, 20h                                                       ; +0x14, 0x180004044\nmov     esi, r9d                                                       ; +0x18, 0x180004048\nmov     rbp, r8                                                        ; +0x1b, 0x18000404b\nmov     r14, rdx                                                       ; +0x1e, 0x18000404e\nmov     r15, rcx                                                       ; +0x21, 0x180004051\nmov     ebx, 1                                                         ; +0x24, 0x180004054\nmov     edi, 9                                                         ; +0x29, 0x180004059\nxchg    ax, ax                                                         ; +0x2e, 0x18000405e\ntest    esi, ebx                                                       ; +0x30, 0x180004060\njz      short loc_180004075                                            ; +0x32, 0x180004062\nmov     r9d, ebx                                                       ; +0x34, 0x180004064\nmov     r8, rbp                                                        ; +0x37, 0x180004067\nmov     rdx, r14                                                       ; +0x3a, 0x18000406a\nmov     rcx, r15                                                       ; +0x3d, 0x18000406d\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, 0x180004070\nrol     ebx, 1                                                         ; +0x45, 0x180004075\nsub     rdi, 1                                                         ; +0x47, 0x180004077\njnz     short loc_180004060                                            ; +0x4b, 0x18000407b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x4d, 0x18000407d\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x52, 0x180004082\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x57, 0x180004087\nadd     rsp, 20h                                                       ; +0x5c, 0x18000408c\npop     r15                                                            ; +0x60, 0x180004090\npop     r14                                                            ; +0x62, 0x180004092\npop     rdi                                                            ; +0x64, 0x180004094\nretn                                                                   ; +0x65, 0x180004095", "xrefs": ["<???> @ 0x180026050", "<???> @ 0x180026670", "<???> @ 0x180026bf0", "<???> @ 0x180027328", "<???> @ 0x1800278f8", "<???> @ 0x180027f00", "<???> @ 0x1800284d0", "<???> @ 0x180028ac0", "<???> @ 0x180029108", "<???> @ 0x18002a5e8", "<???> @ 0x180032408", "<???> @ 0x18004b348"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}