{"type": "func", "start": 6442561728, "end": 6442562040, "name": "cocos2d::extension::CCControl::CCControl", "pseudocode": "// \n// cocos2d::extension::CCControl::CCControl from 0x18001b0c0 to 0x18001b1f8 (312 bytes)\n// \n// 10 xrefs:\n// > cocos2d::extension::CCControlButton::CCControlButton @ 0x18001b335\n// > cocos2d::extension::CCControlHuePicker::CCControlHuePicker @ 0x18001b615\n// > cocos2d::extension::CCControlSaturationBrightnessPicker::CCControlSaturationBrightnessPicker @ 0x18001b795\n// > cocos2d::extension::CCControlColourPicker::CCControlColourPicker @ 0x18001b990\n// > cocos2d::extension::CCControlPotentiometer::CCControlPotentiometer @ 0x18001bb85\n// > cocos2d::extension::CCControlSlider::CCControlSlider @ 0x18001bd40\n// > cocos2d::extension::CCControlStepper::CCControlStepper @ 0x18001bec0\n// > cocos2d::extension::CCControlSwitch::CCControlSwitch @ 0x18001c0f0\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004adac\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// Hidden C++ exception states: #wind=2\ncocos2d::extension::CCControl *__fastcall cocos2d::extension::CCControl::CCControl(\n        cocos2d::extension::CCControl *this,\n        const struct cocos2d::extension::CCControl *a2)\n{\n  _QWORD *v4; // rax\n\n  cocos2d::CCLayerRGBA::CCLayerRGBA(this, a2);\n  *(_QWORD *)this = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCNode'};\n  *((_QWORD *)this + 40) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCTouchDelegate'};\n  *((_QWORD *)this + 41) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCAccelerometerDelegate'};\n  *((_QWORD *)this + 42) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCKeypadDelegate'};\n  *((_QWORD *)this + 43) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCKeyboardDelegate'};\n  *((_QWORD *)this + 44) = &cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCMouseDelegate'};\n  *((_QWORD *)this + 51) = &cocos2d::extension::CCControl::`vftable';\n  *((_BYTE *)this + 432) = *((_BYTE *)a2 + 432);\n  *((_DWORD *)this + 109) = *((_DWORD *)a2 + 109);\n  *((_BYTE *)this + 440) = *((_BYTE *)a2 + 440);\n  *((_BYTE *)this + 441) = *((_BYTE *)a2 + 441);\n  *((_BYTE *)this + 442) = *((_BYTE *)a2 + 442);\n  *((_BYTE *)this + 443) = *((_BYTE *)a2 + 443);\n  *((_QWORD *)this + 56) = *((_QWORD *)a2 + 56);\n  *((_QWORD *)this + 57) = 0;\n  *((_QWORD *)this + 58) = 0;\n  v4 = operator new(0x28u);\n  *v4 = v4;\n  v4[1] = v4;\n  v4[2] = v4;\n  *((_WORD *)v4 + 12) = 257;\n  *((_QWORD *)this + 57) = v4;\n  sub_18001DD80((char *)this + 456, (char *)a2 + 456);\n  return this;\n}", "assembly": "; \n; cocos2d::extension::CCControl::CCControl from 0x18001b0c0 to 0x18001b1f8 (312 bytes)\n; \n; 10 xrefs:\n; > cocos2d::extension::CCControlButton::CCControlButton @ 0x18001b335\n; > cocos2d::extension::CCControlHuePicker::CCControlHuePicker @ 0x18001b615\n; > cocos2d::extension::CCControlSaturationBrightnessPicker::CCControlSaturationBrightnessPicker @ 0x18001b795\n; > cocos2d::extension::CCControlColourPicker::CCControlColourPicker @ 0x18001b990\n; > cocos2d::extension::CCControlPotentiometer::CCControlPotentiometer @ 0x18001bb85\n; > cocos2d::extension::CCControlSlider::CCControlSlider @ 0x18001bd40\n; > cocos2d::extension::CCControlStepper::CCControlStepper @ 0x18001bec0\n; > cocos2d::extension::CCControlSwitch::CCControlSwitch @ 0x18001c0f0\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004adac\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_10], rbx                                              ; +0x0, 0x18001b0c0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x18001b0c5\nmov     [rsp+arg_0], rcx                                               ; +0xa, 0x18001b0ca\npush    rdi                                                            ; +0xf, 0x18001b0cf\nsub     rsp, 30h                                                       ; +0x10, 0x18001b0d0\nmov     rdi, rdx                                                       ; +0x14, 0x18001b0d4\nmov     rsi, rcx                                                       ; +0x17, 0x18001b0d7\ncall    cs:??0CCLayerRGBA@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCLayerRGBA::CCLayerRGBA(cocos2d::CCLayerRGBA const &) ; +0x1a, 0x18001b0da\nnop                                                                    ; +0x20, 0x18001b0e0\nlea     rax, ??_7CCControl@extension@cocos2d@@6BCCNode@2@@; const cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCNode'} ; +0x21, 0x18001b0e1\nmov     [rsi], rax                                                     ; +0x28, 0x18001b0e8\nlea     rax, ??_7CCControl@extension@cocos2d@@6BCCTouchDelegate@2@@; const cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCTouchDelegate'} ; +0x2b, 0x18001b0eb\nmov     [rsi+140h], rax                                                ; +0x32, 0x18001b0f2\nlea     rax, ??_7CCControl@extension@cocos2d@@6BCCAccelerometerDelegate@2@@; const cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCAccelerometerDelegate'} ; +0x39, 0x18001b0f9\nmov     [rsi+148h], rax                                                ; +0x40, 0x18001b100\nlea     rax, ??_7CCControl@extension@cocos2d@@6BCCKeypadDelegate@2@@; const cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCKeypadDelegate'} ; +0x47, 0x18001b107\nmov     [rsi+150h], rax                                                ; +0x4e, 0x18001b10e\nlea     rax, ??_7CCControl@extension@cocos2d@@6BCCKeyboardDelegate@2@@; const cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCKeyboardDelegate'} ; +0x55, 0x18001b115\nmov     [rsi+158h], rax                                                ; +0x5c, 0x18001b11c\nlea     rax, ??_7CCControl@extension@cocos2d@@6BCCMouseDelegate@2@@; const cocos2d::extension::CCControl::`vftable'{for `cocos2d::CCMouseDelegate'} ; +0x63, 0x18001b123\nmov     [rsi+160h], rax                                                ; +0x6a, 0x18001b12a\nlea     rax, ??_7CCControl@extension@cocos2d@@6B@; const cocos2d::extension::CCControl::`vftable' ; +0x71, 0x18001b131\nmov     [rsi+198h], rax                                                ; +0x78, 0x18001b138\nmovzx   eax, byte ptr [rdi+1B0h]                                       ; +0x7f, 0x18001b13f\nmov     [rsi+1B0h], al                                                 ; +0x86, 0x18001b146\nmov     eax, [rdi+1B4h]                                                ; +0x8c, 0x18001b14c\nmov     [rsi+1B4h], eax                                                ; +0x92, 0x18001b152\nmovzx   eax, byte ptr [rdi+1B8h]                                       ; +0x98, 0x18001b158\nmov     [rsi+1B8h], al                                                 ; +0x9f, 0x18001b15f\nmovzx   eax, byte ptr [rdi+1B9h]                                       ; +0xa5, 0x18001b165\nmov     [rsi+1B9h], al                                                 ; +0xac, 0x18001b16c\nmovzx   eax, byte ptr [rdi+1BAh]                                       ; +0xb2, 0x18001b172\nmov     [rsi+1BAh], al                                                 ; +0xb9, 0x18001b179\nmovzx   eax, byte ptr [rdi+1BBh]                                       ; +0xbf, 0x18001b17f\nmov     [rsi+1BBh], al                                                 ; +0xc6, 0x18001b186\nmov     rax, [rdi+1C0h]                                                ; +0xcc, 0x18001b18c\nmov     [rsi+1C0h], rax                                                ; +0xd3, 0x18001b193\nlea     rbx, [rsi+1C8h]                                                ; +0xda, 0x18001b19a\nmov     [rsp+38h+arg_8], rbx                                           ; +0xe1, 0x18001b1a1\nxor     eax, eax                                                       ; +0xe6, 0x18001b1a6\nmov     [rbx], rax                                                     ; +0xe8, 0x18001b1a8\nmov     [rbx+8], rax                                                   ; +0xeb, 0x18001b1ab\nmov     [rsp+38h+var_18], rbx                                          ; +0xef, 0x18001b1af\nmov     [rsp+38h+var_10], rbx                                          ; +0xf4, 0x18001b1b4\nlea     ecx, [rax+28h]; Size                                           ; +0xf9, 0x18001b1b9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xfc, 0x18001b1bc\nmov     [rax], rax                                                     ; +0x101, 0x18001b1c1\nmov     [rax+8], rax                                                   ; +0x104, 0x18001b1c4\nmov     [rax+10h], rax                                                 ; +0x108, 0x18001b1c8\nmov     word ptr [rax+18h], 101h                                       ; +0x10c, 0x18001b1cc\nmov     [rbx], rax                                                     ; +0x112, 0x18001b1d2\nlea     rdx, [rdi+1C8h]                                                ; +0x115, 0x18001b1d5\nmov     rcx, rbx                                                       ; +0x11c, 0x18001b1dc\ncall    sub_18001DD80                                                  ; +0x11f, 0x18001b1df\nnop                                                                    ; +0x124, 0x18001b1e4\nmov     rax, rsi                                                       ; +0x125, 0x18001b1e5\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x128, 0x18001b1e8\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x12d, 0x18001b1ed\nadd     rsp, 30h                                                       ; +0x132, 0x18001b1f2\npop     rdi                                                            ; +0x136, 0x18001b1f6\nretn                                                                   ; +0x137, 0x18001b1f7", "xrefs": ["cocos2d::extension::CCControlButton::CCControlButton @ 0x18001b335", "cocos2d::extension::CCControlHuePicker::CCControlHuePicker @ 0x18001b615", "cocos2d::extension::CCControlSaturationBrightnessPicker::CCControlSaturationBrightnessPicker @ 0x18001b795", "cocos2d::extension::CCControlColourPicker::CCControlColourPicker @ 0x18001b990", "cocos2d::extension::CCControlPotentiometer::CCControlPotentiometer @ 0x18001bb85", "cocos2d::extension::CCControlSlider::CCControlSlider @ 0x18001bd40", "cocos2d::extension::CCControlStepper::CCControlStepper @ 0x18001bec0", "cocos2d::extension::CCControlSwitch::CCControlSwitch @ 0x18001c0f0", "<???> @ 0x18002fdf8", "<???> @ 0x18004adac"], "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"}