{"type": "func", "start": 6442786992, "end": 6442787176, "name": "cocos2d::CCLayerGradient::initWithColor", "pseudocode": "// \n// cocos2d::CCLayerGradient::initWithColor from 0x1800520b0 to 0x180052168 (184 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f4420\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc214\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:21:45 +0000\n// \n\nchar __fastcall cocos2d::CCLayerGradient::initWithColor(\n        cocos2d::CCLayerGradient *this,\n        const struct cocos2d::_ccColor4B *a2,\n        const struct cocos2d::_ccColor4B *a3,\n        const struct cocos2d::CCPoint *a4)\n{\n  struct cocos2d::CCDirector *v6; // rax\n  unsigned int v8; // [rsp+30h] [rbp+8h] BYREF\n  int v9; // [rsp+38h] [rbp+10h] BYREF\n\n  *((_BYTE *)this + 547) = *(_BYTE *)a3;\n  *((_BYTE *)this + 548) = *((_BYTE *)a3 + 1);\n  *((_BYTE *)this + 549) = *((_BYTE *)a3 + 2);\n  *((_BYTE *)this + 551) = *((_BYTE *)a3 + 3);\n  *((_BYTE *)this + 550) = *((_BYTE *)a2 + 3);\n  cocos2d::CCSize::operator=((_DWORD *)this + 138, a4);\n  *((_WORD *)this + 280) = 1;\n  v8 = *(unsigned __int8 *)a2\n     | ((*((unsigned __int8 *)a2 + 1) | ((*((unsigned __int8 *)a2 + 2) | 0xFFFFFF00) << 8)) << 8);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6, &v9);\n  (*(void (__fastcall **)(cocos2d::CCLayerGradient *, unsigned int *))(*(_QWORD *)this + 1040LL))(this, &v8);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLayerGradient::initWithColor from 0x1800520b0 to 0x180052168 (184 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f4420\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc214\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:21:45 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800520b0\npush    rdi                                                            ; +0x5, 0x1800520b5\nsub     rsp, 20h                                                       ; +0x6, 0x1800520b6\nmovzx   eax, byte ptr [r8]                                             ; +0xa, 0x1800520ba\nmov     rbx, rdx                                                       ; +0xe, 0x1800520be\nmov     [rcx+223h], al                                                 ; +0x11, 0x1800520c1\nmov     rdi, rcx                                                       ; +0x17, 0x1800520c7\nmovzx   eax, byte ptr [r8+1]                                           ; +0x1a, 0x1800520ca\nmov     [rcx+224h], al                                                 ; +0x1f, 0x1800520cf\nmovzx   eax, byte ptr [r8+2]                                           ; +0x25, 0x1800520d5\nmov     [rcx+225h], al                                                 ; +0x2a, 0x1800520da\nmovzx   eax, byte ptr [r8+3]                                           ; +0x30, 0x1800520e0\nmov     [rcx+227h], al                                                 ; +0x35, 0x1800520e5\nmovzx   eax, byte ptr [rdx+3]                                          ; +0x3b, 0x1800520eb\nmov     rdx, r9                                                        ; +0x3f, 0x1800520ef\nmov     [rcx+226h], al                                                 ; +0x42, 0x1800520f2\nadd     rcx, 228h                                                      ; +0x48, 0x1800520f8\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x4f, 0x1800520ff\nmov     word ptr [rdi+230h], 1                                         ; +0x54, 0x180052104\nmovzx   eax, byte ptr [rbx+1]                                          ; +0x5d, 0x18005210d\nmovzx   ecx, byte ptr [rbx+2]                                          ; +0x61, 0x180052111\nor      ecx, 0FFFFFF00h                                                ; +0x65, 0x180052115\nshl     ecx, 8                                                         ; +0x6b, 0x18005211b\nor      ecx, eax                                                       ; +0x6e, 0x18005211e\nmovzx   eax, byte ptr [rbx]                                            ; +0x70, 0x180052120\nshl     ecx, 8                                                         ; +0x73, 0x180052123\nor      ecx, eax                                                       ; +0x76, 0x180052126\nmov     [rsp+28h+arg_0], ecx                                           ; +0x78, 0x180052128\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x18005212c\nmov     rcx, rax                                                       ; +0x81, 0x180052131\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x84, 0x180052134\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x89, 0x180052139\nmov     rax, [rdi]                                                     ; +0x8e, 0x18005213e\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x91, 0x180052141\nmovss   xmm3, [rsp+28h+arg_C]                                          ; +0x96, 0x180052146\nmov     rcx, rdi                                                       ; +0x9c, 0x18005214c\nmovss   xmm2, [rsp+28h+arg_8]                                          ; +0x9f, 0x18005214f\ncall    qword ptr [rax+410h]                                           ; +0xa5, 0x180052155\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xab, 0x18005215b\nmov     al, 1                                                          ; +0xb0, 0x180052160\nadd     rsp, 20h                                                       ; +0xb2, 0x180052162\npop     rdi                                                            ; +0xb6, 0x180052166\nretn                                                                   ; +0xb7, 0x180052167", "xrefs": ["<???> @ 0x1800f4420", "<???> @ 0x18014cf68", "<???> @ 0x1801bc214"], "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"}