{"type": "func", "start": 6442467744, "end": 6442467922, "name": "cocos2d::extension::CCControl::init", "pseudocode": "// \n// cocos2d::extension::CCControl::init from 0x1800041a0 to 0x180004252 (178 bytes)\n// \n// 17 xrefs:\n// > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x1800059e0\n// > cocos2d::extension::CCControlColourPicker::init @ 0x180007b39\n// > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0x180008631\n// > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0x180008f81\n// > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x1800099d2\n// > cocos2d::extension::CCControlSlider::initWithSprites @ 0x18000a5c0\n// > cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite @ 0x18000b33c\n// > cocos2d::extension::CCControlSwitch::initWithMaskSprite @ 0x18000cbee\n// > <???> @ 0x180023738\n// > <???> @ 0x1800249b0\n// > <???> @ 0x180024f60\n// > <???> @ 0x180025548\n// > <???> @ 0x180025af8\n// > <???> @ 0x1800260c8\n// > <???> @ 0x1800266f0\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800493c0\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=1\nchar __fastcall cocos2d::extension::CCControl::init(cocos2d::extension::CCControl *this)\n{\n  __int64 v2; // rdx\n  cocos2d::CCDictionary *v4; // [rsp+38h] [rbp+10h]\n\n  if ( !cocos2d::CCLayer::init(this) )\n    return 0;\n  *((_DWORD *)this + 109) = 1;\n  LOBYTE(v2) = 1;\n  (*(void (__fastcall **)(cocos2d::extension::CCControl *, __int64))(*(_QWORD *)this + 1016LL))(this, v2);\n  (*(void (__fastcall **)(cocos2d::extension::CCControl *, _QWORD))(*(_QWORD *)this + 1032LL))(this, 0);\n  (*(void (__fastcall **)(cocos2d::extension::CCControl *, _QWORD))(*(_QWORD *)this + 1048LL))(this, 0);\n  (*(void (__fastcall **)(cocos2d::extension::CCControl *, __int64))(*(_QWORD *)this + 928LL))(this, 1);\n  v4 = (cocos2d::CCDictionary *)operator new(0x48u);\n  cocos2d::CCDictionary::CCDictionary(v4);\n  *(_QWORD *)v4 = &cocos2d::CCDictionary::`vftable';\n  *((_QWORD *)this + 56) = v4;\n  sub_180005510((char *)this + 456);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControl::init from 0x1800041a0 to 0x180004252 (178 bytes)\n; \n; 17 xrefs:\n; > cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x1800059e0\n; > cocos2d::extension::CCControlColourPicker::init @ 0x180007b39\n; > cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0x180008631\n; > cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0x180008f81\n; > cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x1800099d2\n; > cocos2d::extension::CCControlSlider::initWithSprites @ 0x18000a5c0\n; > cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite @ 0x18000b33c\n; > cocos2d::extension::CCControlSwitch::initWithMaskSprite @ 0x18000cbee\n; > <???> @ 0x180023738\n; > <???> @ 0x1800249b0\n; > <???> @ 0x180024f60\n; > <???> @ 0x180025548\n; > <???> @ 0x180025af8\n; > <???> @ 0x1800260c8\n; > <???> @ 0x1800266f0\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800493c0\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, 0x1800041a0\npush    rdi                                                            ; +0x5, 0x1800041a5\nsub     rsp, 20h                                                       ; +0x6, 0x1800041a6\nmov     rdi, rcx                                                       ; +0xa, 0x1800041aa\ncall    cs:?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0xd, 0x1800041ad\ntest    al, al                                                         ; +0x13, 0x1800041b3\njz      loc_180004245                                                  ; +0x15, 0x1800041b5\nmov     dword ptr [rdi+1B4h], 1                                        ; +0x1b, 0x1800041bb\nmov     rax, [rdi]                                                     ; +0x25, 0x1800041c5\nmov     dl, 1                                                          ; +0x28, 0x1800041c8\nmov     rcx, rdi                                                       ; +0x2a, 0x1800041ca\ncall    qword ptr [rax+3F8h]                                           ; +0x2d, 0x1800041cd\nmov     rax, [rdi]                                                     ; +0x33, 0x1800041d3\nxor     edx, edx                                                       ; +0x36, 0x1800041d6\nmov     rcx, rdi                                                       ; +0x38, 0x1800041d8\ncall    qword ptr [rax+408h]                                           ; +0x3b, 0x1800041db\nmov     rax, [rdi]                                                     ; +0x41, 0x1800041e1\nxor     edx, edx                                                       ; +0x44, 0x1800041e4\nmov     rcx, rdi                                                       ; +0x46, 0x1800041e6\ncall    qword ptr [rax+418h]                                           ; +0x49, 0x1800041e9\nmov     rax, [rdi]                                                     ; +0x4f, 0x1800041ef\nmov     edx, 1                                                         ; +0x52, 0x1800041f2\nmov     rcx, rdi                                                       ; +0x57, 0x1800041f7\ncall    qword ptr [rax+3A0h]                                           ; +0x5a, 0x1800041fa\nmov     ecx, 48h ; 'H'; Size                                           ; +0x60, 0x180004200\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x65, 0x180004205\nmov     rbx, rax                                                       ; +0x6a, 0x18000420a\nmov     [rsp+28h+arg_8], rax                                           ; +0x6d, 0x18000420d\nmov     rcx, rax                                                       ; +0x72, 0x180004212\ncall    cs:??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x75, 0x180004215\nlea     rax, ??_7CCDictionary@cocos2d@@6B@; const cocos2d::CCDictionary::`vftable' ; +0x7b, 0x18000421b\nmov     [rbx], rax                                                     ; +0x82, 0x180004222\nmov     [rdi+1C0h], rbx                                                ; +0x85, 0x180004225\nlea     rcx, [rdi+1C8h]                                                ; +0x8c, 0x18000422c\ncall    sub_180005510                                                  ; +0x93, 0x180004233\nmov     al, 1                                                          ; +0x98, 0x180004238\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9a, 0x18000423a\nadd     rsp, 20h                                                       ; +0x9f, 0x18000423f\npop     rdi                                                            ; +0xa3, 0x180004243\nretn                                                                   ; +0xa4, 0x180004244\nxor     al, al                                                         ; +0xa5, 0x180004245\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa7, 0x180004247\nadd     rsp, 20h                                                       ; +0xac, 0x18000424c\npop     rdi                                                            ; +0xb0, 0x180004250\nretn                                                                   ; +0xb1, 0x180004251", "xrefs": ["cocos2d::extension::CCControlButton::initWithLabelAndBackgroundSprite @ 0x1800059e0", "cocos2d::extension::CCControlColourPicker::init @ 0x180007b39", "cocos2d::extension::CCControlHuePicker::initWithTargetAndPos @ 0x180008631", "cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite @ 0x180008f81", "cocos2d::extension::CCControlSaturationBrightnessPicker::initWithTargetAndPos @ 0x1800099d2", "cocos2d::extension::CCControlSlider::initWithSprites @ 0x18000a5c0", "cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite @ 0x18000b33c", "cocos2d::extension::CCControlSwitch::initWithMaskSprite @ 0x18000cbee", "<???> @ 0x180023738", "<???> @ 0x1800249b0", "<???> @ 0x180024f60", "<???> @ 0x180025548", "<???> @ 0x180025af8", "<???> @ 0x1800260c8", "<???> @ 0x1800266f0", "<???> @ 0x18002fdf8", "<???> @ 0x1800493c0"], "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"}