{"type": "func", "start": 5369951504, "end": 5369951849, "name": "HSVWidgetPopup::create", "pseudocode": "// \n// HSVWidgetPopup::create from 0x14012f510 to 0x14012f669 (345 bytes)\n// \n// 5 xrefs:\n// > CustomizeObjectLayer::onHSV @ 0x140142daf\n// > CustomizeObjectLayer::onHSV @ 0x140142e4f\n// > SetupAreaTintTriggerPopup::onHSV @ 0x1405a7d83\n// > SetupEnterEffectPopup::onHSV @ 0x1405b5cb3\n// > <???> @ 0x140916db4\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 11:27:02 +0000\n// \n\n// Hidden C++ exception states: #wind=2\ncocos2d::CCObject *__fastcall HSVWidgetPopup::create(_OWORD *a1, __int16 *a2, int a3, __int64 a4)\n{\n  cocos2d::CCObject *v8; // r14\n  void *v9; // rax\n  __int16 v11; // [rsp+30h] [rbp-68h] BYREF\n  char v12; // [rsp+32h] [rbp-66h]\n  int v13[4]; // [rsp+40h] [rbp-58h] BYREF\n  _BYTE v14[32]; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v15; // [rsp+70h] [rbp-28h]\n\n  v15 = a4;\n  v8 = (cocos2d::CCObject *)operator new(0x2A8u);\n  *(_QWORD *)v13 = v8;\n  FLAlertLayer::FLAlertLayer((__int64)v8);\n  *(_QWORD *)v8 = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 40) = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 41) = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 42) = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 43) = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 44) = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 51) = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 54) = &HSVWidgetPopup::`vftable';\n  *((_QWORD *)v8 + 68) = &HSVWidgetPopup::`vftable';\n  v9 = (void *)sub_14003F4F0((__int64)v14, a4);\n  v11 = *a2;\n  v12 = *((_BYTE *)a2 + 2);\n  *(_OWORD *)v13 = *a1;\n  if ( (unsigned __int8)HSVWidgetPopup::init((int)v8, (int)v13, (int)&v11, a3, v9) )\n  {\n    cocos2d::CCObject::autorelease(v8);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v8 + 8LL))(v8, 1);\n    v8 = nullptr;\n  }\n  sub_14003D310(a4);\n  return v8;\n}", "assembly": "; \n; HSVWidgetPopup::create from 0x14012f510 to 0x14012f669 (345 bytes)\n; \n; 5 xrefs:\n; > CustomizeObjectLayer::onHSV @ 0x140142daf\n; > CustomizeObjectLayer::onHSV @ 0x140142e4f\n; > SetupAreaTintTriggerPopup::onHSV @ 0x1405a7d83\n; > SetupEnterEffectPopup::onHSV @ 0x1405b5cb3\n; > <???> @ 0x140916db4\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 11:27:02 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14012f510\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14012f515\npush    rsi                                                            ; +0xa, 0x14012f51a\npush    rdi                                                            ; +0xb, 0x14012f51b\npush    r14                                                            ; +0xc, 0x14012f51c\nsub     rsp, 80h                                                       ; +0xe, 0x14012f51e\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x14012f525\nxor     rax, rsp                                                       ; +0x1c, 0x14012f52c\nmov     [rsp+98h+var_20], rax                                          ; +0x1f, 0x14012f52f\nmov     rbp, r9                                                        ; +0x24, 0x14012f534\nmov     rsi, r8                                                        ; +0x27, 0x14012f537\nmov     rbx, rdx                                                       ; +0x2a, 0x14012f53a\nmov     rdi, rcx                                                       ; +0x2d, 0x14012f53d\nmov     [rsp+98h+var_28], r9                                           ; +0x30, 0x14012f540\nmov     ecx, 2A8h; Size                                                ; +0x35, 0x14012f545\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x14012f54a\nmov     r14, rax                                                       ; +0x3f, 0x14012f54f\nmov     qword ptr [rsp+98h+var_58], rax                                ; +0x42, 0x14012f552\nmov     rcx, rax                                                       ; +0x47, 0x14012f557\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x4a, 0x14012f55a\nlea     rax, ??_7HSVWidgetPopup@@6B@; const HSVWidgetPopup::`vftable'  ; +0x4f, 0x14012f55f\nmov     [r14], rax                                                     ; +0x56, 0x14012f566\nlea     rax, ??_7HSVWidgetPopup@@6B@_0; const HSVWidgetPopup::`vftable' ; +0x59, 0x14012f569\nmov     [r14+140h], rax                                                ; +0x60, 0x14012f570\nlea     rax, ??_7HSVWidgetPopup@@6B@_1; const HSVWidgetPopup::`vftable' ; +0x67, 0x14012f577\nmov     [r14+148h], rax                                                ; +0x6e, 0x14012f57e\nlea     rax, ??_7HSVWidgetPopup@@6B@_2; const HSVWidgetPopup::`vftable' ; +0x75, 0x14012f585\nmov     [r14+150h], rax                                                ; +0x7c, 0x14012f58c\nlea     rax, ??_7HSVWidgetPopup@@6B@_3; const HSVWidgetPopup::`vftable' ; +0x83, 0x14012f593\nmov     [r14+158h], rax                                                ; +0x8a, 0x14012f59a\nlea     rax, ??_7HSVWidgetPopup@@6B@_4; const HSVWidgetPopup::`vftable' ; +0x91, 0x14012f5a1\nmov     [r14+160h], rax                                                ; +0x98, 0x14012f5a8\nlea     rax, ??_7HSVWidgetPopup@@6B@_5; const HSVWidgetPopup::`vftable' ; +0x9f, 0x14012f5af\nmov     [r14+198h], rax                                                ; +0xa6, 0x14012f5b6\nlea     rax, ??_7HSVWidgetPopup@@6B@_6; const HSVWidgetPopup::`vftable' ; +0xad, 0x14012f5bd\nmov     [r14+1B0h], rax                                                ; +0xb4, 0x14012f5c4\nlea     rax, ??_7HSVWidgetPopup@@6B@_7; const HSVWidgetPopup::`vftable' ; +0xbb, 0x14012f5cb\nmov     [r14+220h], rax                                                ; +0xc2, 0x14012f5d2\nmov     rdx, rbp                                                       ; +0xc9, 0x14012f5d9\nlea     rcx, [rsp+98h+var_48]                                          ; +0xcc, 0x14012f5dc\ncall    sub_14003F4F0                                                  ; +0xd1, 0x14012f5e1\nmov     rcx, rax                                                       ; +0xd6, 0x14012f5e6\nmovzx   eax, word ptr [rbx]                                            ; +0xd9, 0x14012f5e9\nmov     word ptr [rsp+98h+var_68], ax                                  ; +0xdc, 0x14012f5ec\nmovzx   eax, byte ptr [rbx+2]                                          ; +0xe1, 0x14012f5f1\nmov     byte ptr [rsp+98h+var_68+2], al                                ; +0xe5, 0x14012f5f5\nmovaps  xmm0, xmmword ptr [rdi]                                        ; +0xe9, 0x14012f5f9\nmovdqa  xmmword ptr [rsp+98h+var_58], xmm0                             ; +0xec, 0x14012f5fc\nmov     [rsp+98h+var_78], rcx; void *                                  ; +0xf2, 0x14012f602\nmov     r9, rsi; int                                                   ; +0xf7, 0x14012f607\nlea     r8, [rsp+98h+var_68]; int                                      ; +0xfa, 0x14012f60a\nlea     rdx, [rsp+98h+var_58]; int                                     ; +0xff, 0x14012f60f\nmov     rcx, r14; int                                                  ; +0x104, 0x14012f614\ncall    HSVWidgetPopup__init                                           ; +0x107, 0x14012f617\nmov     rcx, r14                                                       ; +0x10c, 0x14012f61c\ntest    al, al                                                         ; +0x10f, 0x14012f61f\njz      short loc_14012F62B                                            ; +0x111, 0x14012f621\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x113, 0x14012f623\njmp     short loc_14012F639                                            ; +0x119, 0x14012f629\nmov     rax, [r14]                                                     ; +0x11b, 0x14012f62b\nmov     edx, 1                                                         ; +0x11e, 0x14012f62e\ncall    qword ptr [rax+8]                                              ; +0x123, 0x14012f633\nxor     r14d, r14d                                                     ; +0x126, 0x14012f636\nmov     rcx, rbp                                                       ; +0x129, 0x14012f639\ncall    sub_14003D310                                                  ; +0x12c, 0x14012f63c\nmov     rax, r14                                                       ; +0x131, 0x14012f641\nmov     rcx, [rsp+98h+var_20]                                          ; +0x134, 0x14012f644\nxor     rcx, rsp; StackCookie                                          ; +0x139, 0x14012f649\ncall    __security_check_cookie                                        ; +0x13c, 0x14012f64c\nlea     r11, [rsp+98h+var_18]                                          ; +0x141, 0x14012f651\nmov     rbx, [r11+20h]                                                 ; +0x149, 0x14012f659\nmov     rbp, [r11+28h]                                                 ; +0x14d, 0x14012f65d\nmov     rsp, r11                                                       ; +0x151, 0x14012f661\npop     r14                                                            ; +0x154, 0x14012f664\npop     rdi                                                            ; +0x156, 0x14012f666\npop     rsi                                                            ; +0x157, 0x14012f667\nretn                                                                   ; +0x158, 0x14012f668", "xrefs": ["CustomizeObjectLayer::onHSV @ 0x140142daf", "CustomizeObjectLayer::onHSV @ 0x140142e4f", "SetupAreaTintTriggerPopup::onHSV @ 0x1405a7d83", "SetupEnterEffectPopup::onHSV @ 0x1405b5cb3", "<???> @ 0x140916db4"], "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"}