{"type": "func", "start": 4297110480, "end": 4297110856, "name": "GJColorSetupLayer::create", "pseudocode": "// \n// GJColorSetupLayer::create from 0x10020b3d0 to 0x10020b548 (376 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::onBrowse @ 0x1001f832c\n// > LevelSettingsLayer::onCol @ 0x10026dbeb\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\nGJColorSetupLayer *__fastcall GJColorSetupLayer::create(LevelSettingsObject *a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x2E8u);\n  cocos2d::CCLayerColor::CCLayerColor(v1);\n  *((_QWORD *)v1 + 72) = 0;\n  *((_DWORD *)v1 + 146) = 0;\n  v1[588] = 0;\n  *((_OWORD *)v1 + 34) = 0;\n  *(_OWORD *)(v1 + 553) = 0;\n  *((_OWORD *)v1 + 37) = 0;\n  *((_QWORD *)v1 + 76) = 0;\n  *((_DWORD *)v1 + 154) = -1;\n  *((_WORD *)v1 + 310) = 0;\n  *((_DWORD *)v1 + 156) = -1;\n  v1[628] = 0;\n  *(_QWORD *)v1 = off_1008DC6A8;\n  *((_QWORD *)v1 + 40) = off_1008DCBD0;\n  *((_QWORD *)v1 + 41) = &off_1008DCC40;\n  *((_QWORD *)v1 + 42) = off_1008DCC58;\n  *((_QWORD *)v1 + 43) = off_1008DCC78;\n  *((_QWORD *)v1 + 44) = off_1008DCC98;\n  *((_QWORD *)v1 + 51) = off_1008DCCC0;\n  *((_QWORD *)v1 + 54) = off_1008DCD40;\n  *((_QWORD *)v1 + 79) = &off_1008DCD60;\n  *((_QWORD *)v1 + 80) = &off_1008DCD78;\n  *((_DWORD *)v1 + 172) = 0;\n  *((_DWORD *)v1 + 174) = 0;\n  v1[720] = 0;\n  *((_QWORD *)v1 + 91) = 0;\n  *((_DWORD *)v1 + 184) = 0;\n  *(_OWORD *)(v1 + 648) = 0;\n  *((_QWORD *)v1 + 83) = 0;\n  if ( GJColorSetupLayer::init((GJColorSetupLayer *)v1, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (GJColorSetupLayer *)v1;\n}", "assembly": "; \n; GJColorSetupLayer::create from 0x10020b3d0 to 0x10020b548 (376 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::onBrowse @ 0x1001f832c\n; > LevelSettingsLayer::onCol @ 0x10026dbeb\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\npush    rbp                                                            ; +0x0, 0x10020b3d0\nmov     rbp, rsp                                                       ; +0x1, 0x10020b3d1\npush    r14                                                            ; +0x4, 0x10020b3d4\npush    rbx                                                            ; +0x6, 0x10020b3d6\nmov     r14, rdi                                                       ; +0x7, 0x10020b3d7\nmov     edi, 2E8h; __sz                                                ; +0xa, 0x10020b3da\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x10020b3df\nmov     rbx, rax                                                       ; +0x14, 0x10020b3e4\nmov     rdi, rax                                                       ; +0x17, 0x10020b3e7\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x1a, 0x10020b3ea\nmov     qword ptr [rbx+240h], 0                                        ; +0x1f, 0x10020b3ef\nmov     dword ptr [rbx+248h], 0                                        ; +0x2a, 0x10020b3fa\nmov     byte ptr [rbx+24Ch], 0                                         ; +0x34, 0x10020b404\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x10020b40b\nmovups  xmmword ptr [rbx+220h], xmm0                                   ; +0x3e, 0x10020b40e\nmovups  xmmword ptr [rbx+229h], xmm0                                   ; +0x45, 0x10020b415\nmovups  xmmword ptr [rbx+250h], xmm0                                   ; +0x4c, 0x10020b41c\nmov     qword ptr [rbx+260h], 0                                        ; +0x53, 0x10020b423\nmov     dword ptr [rbx+268h], 0FFFFFFFFh                               ; +0x5e, 0x10020b42e\nmov     word ptr [rbx+26Ch], 0                                         ; +0x68, 0x10020b438\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0x71, 0x10020b441\nmov     byte ptr [rbx+274h], 0                                         ; +0x7b, 0x10020b44b\nlea     rax, off_1008DC6A8                                             ; +0x82, 0x10020b452\nmov     [rbx], rax                                                     ; +0x89, 0x10020b459\nlea     rax, off_1008DCBD0                                             ; +0x8c, 0x10020b45c\nmov     [rbx+140h], rax                                                ; +0x93, 0x10020b463\nlea     rax, off_1008DCC40                                             ; +0x9a, 0x10020b46a\nmov     [rbx+148h], rax                                                ; +0xa1, 0x10020b471\nlea     rax, off_1008DCC58                                             ; +0xa8, 0x10020b478\nmov     [rbx+150h], rax                                                ; +0xaf, 0x10020b47f\nlea     rax, off_1008DCC78                                             ; +0xb6, 0x10020b486\nmov     [rbx+158h], rax                                                ; +0xbd, 0x10020b48d\nlea     rax, off_1008DCC98                                             ; +0xc4, 0x10020b494\nmov     [rbx+160h], rax                                                ; +0xcb, 0x10020b49b\nlea     rax, off_1008DCCC0                                             ; +0xd2, 0x10020b4a2\nmov     [rbx+198h], rax                                                ; +0xd9, 0x10020b4a9\nlea     rax, off_1008DCD40                                             ; +0xe0, 0x10020b4b0\nmov     [rbx+1B0h], rax                                                ; +0xe7, 0x10020b4b7\nlea     rax, off_1008DCD60                                             ; +0xee, 0x10020b4be\nmov     [rbx+278h], rax                                                ; +0xf5, 0x10020b4c5\nlea     rax, off_1008DCD78                                             ; +0xfc, 0x10020b4cc\nmov     [rbx+280h], rax                                                ; +0x103, 0x10020b4d3\nmov     dword ptr [rbx+2B0h], 0                                        ; +0x10a, 0x10020b4da\nmov     dword ptr [rbx+2B8h], 0                                        ; +0x114, 0x10020b4e4\nmov     byte ptr [rbx+2D0h], 0                                         ; +0x11e, 0x10020b4ee\nmov     qword ptr [rbx+2D8h], 0                                        ; +0x125, 0x10020b4f5\nmov     dword ptr [rbx+2E0h], 0                                        ; +0x130, 0x10020b500\nmovups  xmmword ptr [rbx+288h], xmm0                                   ; +0x13a, 0x10020b50a\nmov     qword ptr [rbx+298h], 0                                        ; +0x141, 0x10020b511\nmov     rdi, rbx                                                       ; +0x14c, 0x10020b51c\nmov     rsi, r14                                                       ; +0x14f, 0x10020b51f\ncall    GJColorSetupLayer__init                                        ; +0x152, 0x10020b522\ntest    al, al                                                         ; +0x157, 0x10020b527\njz      short loc_10020B535                                            ; +0x159, 0x10020b529\nmov     rdi, rbx                                                       ; +0x15b, 0x10020b52b\ncall    cocos2d__CCObject__autorelease                                 ; +0x15e, 0x10020b52e\njmp     short loc_10020B540                                            ; +0x163, 0x10020b533\nmov     rax, [rbx]                                                     ; +0x165, 0x10020b535\nmov     rdi, rbx                                                       ; +0x168, 0x10020b538\ncall    qword ptr [rax+10h]                                            ; +0x16b, 0x10020b53b\nxor     ebx, ebx                                                       ; +0x16e, 0x10020b53e\nmov     rax, rbx                                                       ; +0x170, 0x10020b540\npop     rbx                                                            ; +0x173, 0x10020b543\npop     r14                                                            ; +0x174, 0x10020b544\npop     rbp                                                            ; +0x176, 0x10020b546\nretn                                                                   ; +0x177, 0x10020b547", "xrefs": ["CustomizeObjectLayer::onBrowse @ 0x1001f832c", "LevelSettingsLayer::onCol @ 0x10026dbeb"], "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"}