{"type": "func", "start": 5369385584, "end": 5369385987, "name": "CustomizeObjectLayer::create", "pseudocode": "// \n// CustomizeObjectLayer::create from 0x1400a5270 to 0x1400a5403 (403 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectSettingsPopup::onClose @ 0x1400aa621\n// > EditorUI::editObject @ 0x14011db23\n// > <???> @ 0x1406c7734\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\nCustomizeObjectLayer *CustomizeObjectLayer::create(GameObject *a1, cocos2d::CCArray *a2)\n{\n  CustomizeObjectLayer *v4; // rsi\n\n  v4 = (CustomizeObjectLayer *)operator new(0x388u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomizeObjectLayer_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->HSVWidgetDelegate::__vftable = (HSVWidgetDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->ColorSetupDelegate::__vftable = (ColorSetupDelegate_vtbl *)&CustomizeObjectLayer::`vftable';\n  v4->m_targetObject = nullptr;\n  v4->m_targetObjects = nullptr;\n  v4->m_colorButtons = nullptr;\n  v4->m_textTabNodes = nullptr;\n  v4->m_selectedMode = 1;\n  v4->m_customColorChannel = 10;\n  *(_WORD *)&v4->m_hasBaseColor = 0;\n  v4->m_textButton = nullptr;\n  v4->m_baseColorHSV = nullptr;\n  v4->m_detailColorHSV = nullptr;\n  v4->m_textInput = nullptr;\n  v4->m_kerningAmount = 0;\n  v4->m_kerningLabel = nullptr;\n  v4->m_kerningSlider = nullptr;\n  *(_WORD *)&v4->m_showTextInput = 0;\n  v4->m_disableTextDelegate = 0;\n  if ( CustomizeObjectLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    ((void (__fastcall *)(CustomizeObjectLayer *, __int64))v4->~CustomizeObjectLayer)(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::create from 0x1400a5270 to 0x1400a5403 (403 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectSettingsPopup::onClose @ 0x1400aa621\n; > EditorUI::editObject @ 0x14011db23\n; > <???> @ 0x1406c7734\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, 0x1400a5270\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400a5275\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1400a527a\npush    rdi                                                            ; +0xf, 0x1400a527f\nsub     rsp, 20h                                                       ; +0x10, 0x1400a5280\nmov     rbx, rdx                                                       ; +0x14, 0x1400a5284\nmov     rdi, rcx                                                       ; +0x17, 0x1400a5287\nmov     ecx, 388h; Size                                                ; +0x1a, 0x1400a528a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x1400a528f\nmov     rsi, rax                                                       ; +0x24, 0x1400a5294\nmov     [rsp+28h+arg_10], rax                                          ; +0x27, 0x1400a5297\nmov     rcx, rax                                                       ; +0x2c, 0x1400a529c\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x2f, 0x1400a529f\nlea     rax, ??_7CustomizeObjectLayer@@6B@; const CustomizeObjectLayer::`vftable' ; +0x34, 0x1400a52a4\nmov     [rsi], rax                                                     ; +0x3b, 0x1400a52ab\nlea     rax, ??_7CustomizeObjectLayer@@6B@_0; const CustomizeObjectLayer::`vftable' ; +0x3e, 0x1400a52ae\nmov     [rsi+140h], rax                                                ; +0x45, 0x1400a52b5\nlea     rax, ??_7CustomizeObjectLayer@@6B@_1; const CustomizeObjectLayer::`vftable' ; +0x4c, 0x1400a52bc\nmov     [rsi+148h], rax                                                ; +0x53, 0x1400a52c3\nlea     rax, ??_7CustomizeObjectLayer@@6B@_2; const CustomizeObjectLayer::`vftable' ; +0x5a, 0x1400a52ca\nmov     [rsi+150h], rax                                                ; +0x61, 0x1400a52d1\nlea     rax, ??_7CustomizeObjectLayer@@6B@_3; const CustomizeObjectLayer::`vftable' ; +0x68, 0x1400a52d8\nmov     [rsi+158h], rax                                                ; +0x6f, 0x1400a52df\nlea     rax, ??_7CustomizeObjectLayer@@6B@_4; const CustomizeObjectLayer::`vftable' ; +0x76, 0x1400a52e6\nmov     [rsi+160h], rax                                                ; +0x7d, 0x1400a52ed\nlea     rax, ??_7CustomizeObjectLayer@@6B@_5; const CustomizeObjectLayer::`vftable' ; +0x84, 0x1400a52f4\nmov     [rsi+198h], rax                                                ; +0x8b, 0x1400a52fb\nlea     rax, ??_7CustomizeObjectLayer@@6B@_6; const CustomizeObjectLayer::`vftable' ; +0x92, 0x1400a5302\nmov     [rsi+1B0h], rax                                                ; +0x99, 0x1400a5309\nlea     rax, ??_7CustomizeObjectLayer@@6B@_7; const CustomizeObjectLayer::`vftable' ; +0xa0, 0x1400a5310\nmov     [rsi+278h], rax                                                ; +0xa7, 0x1400a5317\nlea     rax, ??_7CustomizeObjectLayer@@6B@_8; const CustomizeObjectLayer::`vftable' ; +0xae, 0x1400a531e\nmov     [rsi+280h], rax                                                ; +0xb5, 0x1400a5325\nlea     rax, ??_7CustomizeObjectLayer@@6B@_9; const CustomizeObjectLayer::`vftable' ; +0xbc, 0x1400a532c\nmov     [rsi+288h], rax                                                ; +0xc3, 0x1400a5333\nlea     rax, ??_7CustomizeObjectLayer@@6B@_10; const CustomizeObjectLayer::`vftable' ; +0xca, 0x1400a533a\nmov     [rsi+290h], rax                                                ; +0xd1, 0x1400a5341\nxor     ebp, ebp                                                       ; +0xd8, 0x1400a5348\nmov     [rsi+298h], rbp                                                ; +0xda, 0x1400a534a\nmov     [rsi+2A0h], rbp                                                ; +0xe1, 0x1400a5351\nmov     [rsi+2A8h], rbp                                                ; +0xe8, 0x1400a5358\nmov     [rsi+2B8h], rbp                                                ; +0xef, 0x1400a535f\nmov     dword ptr [rsi+2D0h], 1                                        ; +0xf6, 0x1400a5366\nmov     dword ptr [rsi+2D4h], 0Ah                                      ; +0x100, 0x1400a5370\nmov     [rsi+2D8h], bp                                                 ; +0x10a, 0x1400a537a\nmov     [rsi+2F0h], rbp                                                ; +0x111, 0x1400a5381\nmov     [rsi+2F8h], rbp                                                ; +0x118, 0x1400a5388\nmov     [rsi+300h], rbp                                                ; +0x11f, 0x1400a538f\nmov     [rsi+320h], rbp                                                ; +0x126, 0x1400a5396\nmov     [rsi+328h], ebp                                                ; +0x12d, 0x1400a539d\nmov     [rsi+330h], rbp                                                ; +0x133, 0x1400a53a3\nmov     [rsi+338h], rbp                                                ; +0x13a, 0x1400a53aa\nmov     [rsi+380h], bp                                                 ; +0x141, 0x1400a53b1\nmov     [rsi+382h], bpl                                                ; +0x148, 0x1400a53b8\nmov     r8, rbx                                                        ; +0x14f, 0x1400a53bf\nmov     rdx, rdi                                                       ; +0x152, 0x1400a53c2\nmov     rcx, rsi                                                       ; +0x155, 0x1400a53c5\ncall    CustomizeObjectLayer__init                                     ; +0x158, 0x1400a53c8\nmov     rcx, rsi                                                       ; +0x15d, 0x1400a53cd\ntest    al, al                                                         ; +0x160, 0x1400a53d0\njz      short loc_1400A53DF                                            ; +0x162, 0x1400a53d2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x164, 0x1400a53d4\nmov     rax, rsi                                                       ; +0x16a, 0x1400a53da\njmp     short loc_1400A53EE                                            ; +0x16d, 0x1400a53dd\nmov     r8, [rsi]                                                      ; +0x16f, 0x1400a53df\nmov     edx, 1                                                         ; +0x172, 0x1400a53e2\ncall    qword ptr [r8+8]                                               ; +0x177, 0x1400a53e7\nmov     rax, rbp                                                       ; +0x17b, 0x1400a53eb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x17e, 0x1400a53ee\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x183, 0x1400a53f3\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x188, 0x1400a53f8\nadd     rsp, 20h                                                       ; +0x18d, 0x1400a53fd\npop     rdi                                                            ; +0x191, 0x1400a5401\nretn                                                                   ; +0x192, 0x1400a5402", "xrefs": ["CustomizeObjectSettingsPopup::onClose @ 0x1400aa621", "EditorUI::editObject @ 0x14011db23", "<???> @ 0x1406c7734"], "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"}