{"type": "func", "start": 5372242448, "end": 5372242777, "name": "GJColorSetupLayer::create", "pseudocode": "// \n// GJColorSetupLayer::create from 0x14035ea10 to 0x14035eb59 (329 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::onBrowse @ 0x140142415\n// > LevelSettingsLayer::onCol @ 0x14045ac2b\n// > <???> @ 0x140921260\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:30:52 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall GJColorSetupLayer::create(__int64 a1)\n{\n  _QWORD *v2; // rdi\n\n  v2 = operator new(0x308u);\n  FLAlertLayer::FLAlertLayer((__int64)v2);\n  *v2 = &GJColorSetupLayer::`vftable';\n  v2[40] = &GJColorSetupLayer::`vftable';\n  v2[41] = &GJColorSetupLayer::`vftable';\n  v2[42] = &GJColorSetupLayer::`vftable';\n  v2[43] = &GJColorSetupLayer::`vftable';\n  v2[44] = &GJColorSetupLayer::`vftable';\n  v2[51] = &GJColorSetupLayer::`vftable';\n  v2[54] = &GJColorSetupLayer::`vftable';\n  v2[68] = &GJColorSetupLayer::`vftable';\n  v2[83] = &GJColorSetupLayer::`vftable';\n  v2[84] = &GJColorSetupLayer::`vftable';\n  v2[85] = 0;\n  v2[86] = 0;\n  v2[87] = 0;\n  *((_DWORD *)v2 + 180) = 0;\n  *((_DWORD *)v2 + 182) = 0;\n  *((_BYTE *)v2 + 752) = 0;\n  v2[95] = 0;\n  *((_DWORD *)v2 + 192) = 0;\n  if ( (unsigned __int8)GJColorSetupLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    return v2;\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJColorSetupLayer::create from 0x14035ea10 to 0x14035eb59 (329 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::onBrowse @ 0x140142415\n; > LevelSettingsLayer::onCol @ 0x14045ac2b\n; > <???> @ 0x140921260\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:30:52 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14035ea10\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14035ea15\npush    rdi                                                            ; +0xa, 0x14035ea1a\nsub     rsp, 20h                                                       ; +0xb, 0x14035ea1b\nmov     rbx, rcx                                                       ; +0xf, 0x14035ea1f\nmov     ecx, 308h; Size                                                ; +0x12, 0x14035ea22\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x14035ea27\nmov     rdi, rax                                                       ; +0x1c, 0x14035ea2c\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x14035ea2f\nmov     rcx, rax                                                       ; +0x24, 0x14035ea34\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x14035ea37\nlea     rax, ??_7GJColorSetupLayer@@6B@; const GJColorSetupLayer::`vftable' ; +0x2c, 0x14035ea3c\nmov     [rdi], rax                                                     ; +0x33, 0x14035ea43\nlea     rax, ??_7GJColorSetupLayer@@6B@_0; const GJColorSetupLayer::`vftable' ; +0x36, 0x14035ea46\nmov     [rdi+140h], rax                                                ; +0x3d, 0x14035ea4d\nlea     rax, ??_7GJColorSetupLayer@@6B@_1; const GJColorSetupLayer::`vftable' ; +0x44, 0x14035ea54\nmov     [rdi+148h], rax                                                ; +0x4b, 0x14035ea5b\nlea     rax, ??_7GJColorSetupLayer@@6B@_2; const GJColorSetupLayer::`vftable' ; +0x52, 0x14035ea62\nmov     [rdi+150h], rax                                                ; +0x59, 0x14035ea69\nlea     rax, ??_7GJColorSetupLayer@@6B@_3; const GJColorSetupLayer::`vftable' ; +0x60, 0x14035ea70\nmov     [rdi+158h], rax                                                ; +0x67, 0x14035ea77\nlea     rax, ??_7GJColorSetupLayer@@6B@_4; const GJColorSetupLayer::`vftable' ; +0x6e, 0x14035ea7e\nmov     [rdi+160h], rax                                                ; +0x75, 0x14035ea85\nlea     rax, ??_7GJColorSetupLayer@@6B@_5; const GJColorSetupLayer::`vftable' ; +0x7c, 0x14035ea8c\nmov     [rdi+198h], rax                                                ; +0x83, 0x14035ea93\nlea     rax, ??_7GJColorSetupLayer@@6B@_6; const GJColorSetupLayer::`vftable' ; +0x8a, 0x14035ea9a\nmov     [rdi+1B0h], rax                                                ; +0x91, 0x14035eaa1\nlea     rax, ??_7GJColorSetupLayer@@6B@_7; const GJColorSetupLayer::`vftable' ; +0x98, 0x14035eaa8\nmov     [rdi+220h], rax                                                ; +0x9f, 0x14035eaaf\nlea     rax, ??_7GJColorSetupLayer@@6B@_8; const GJColorSetupLayer::`vftable' ; +0xa6, 0x14035eab6\nmov     [rdi+298h], rax                                                ; +0xad, 0x14035eabd\nlea     rax, ??_7GJColorSetupLayer@@6B@_9; const GJColorSetupLayer::`vftable' ; +0xb4, 0x14035eac4\nmov     [rdi+2A0h], rax                                                ; +0xbb, 0x14035eacb\nxor     esi, esi                                                       ; +0xc2, 0x14035ead2\nmov     [rdi+2A8h], rsi                                                ; +0xc4, 0x14035ead4\nmov     [rdi+2B0h], rsi                                                ; +0xcb, 0x14035eadb\nmov     [rdi+2B8h], rsi                                                ; +0xd2, 0x14035eae2\nmov     [rdi+2D0h], esi                                                ; +0xd9, 0x14035eae9\nmov     [rdi+2D8h], esi                                                ; +0xdf, 0x14035eaef\nmov     [rdi+2F0h], sil                                                ; +0xe5, 0x14035eaf5\nmov     [rdi+2F8h], rsi                                                ; +0xec, 0x14035eafc\nmov     [rdi+300h], esi                                                ; +0xf3, 0x14035eb03\nmov     rdx, rbx                                                       ; +0xf9, 0x14035eb09\nmov     rcx, rdi                                                       ; +0xfc, 0x14035eb0c\ncall    GJColorSetupLayer__init                                        ; +0xff, 0x14035eb0f\ntest    al, al                                                         ; +0x104, 0x14035eb14\njz      short loc_14035EB34                                            ; +0x106, 0x14035eb16\nmov     rcx, rdi                                                       ; +0x108, 0x14035eb18\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x10b, 0x14035eb1b\nmov     rax, rdi                                                       ; +0x111, 0x14035eb21\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x114, 0x14035eb24\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x119, 0x14035eb29\nadd     rsp, 20h                                                       ; +0x11e, 0x14035eb2e\npop     rdi                                                            ; +0x122, 0x14035eb32\nretn                                                                   ; +0x123, 0x14035eb33\nmov     rcx, [rdi]                                                     ; +0x124, 0x14035eb34\nmov     r8, [rcx+8]                                                    ; +0x127, 0x14035eb37\nmov     edx, 1                                                         ; +0x12b, 0x14035eb3b\nmov     rcx, rdi                                                       ; +0x130, 0x14035eb40\ncall    r8                                                             ; +0x133, 0x14035eb43\nmov     rax, rsi                                                       ; +0x136, 0x14035eb46\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x139, 0x14035eb49\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x13e, 0x14035eb4e\nadd     rsp, 20h                                                       ; +0x143, 0x14035eb53\npop     rdi                                                            ; +0x147, 0x14035eb57\nretn                                                                   ; +0x148, 0x14035eb58", "xrefs": ["CustomizeObjectLayer::onBrowse @ 0x140142415", "LevelSettingsLayer::onCol @ 0x14045ac2b", "<???> @ 0x140921260"], "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"}