{"type": "func", "start": 6442779280, "end": 6442779469, "name": "cocos2d::CCLayerGradient::initWithColor", "pseudocode": "// \n// cocos2d::CCLayerGradient::initWithColor from 0x180050290 to 0x18005034d (189 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ee260\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1f80\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\nchar __fastcall cocos2d::CCLayerGradient::initWithColor(\n        cocos2d::CCLayerGradient *this,\n        const struct cocos2d::_ccColor4B *a2,\n        const struct cocos2d::_ccColor4B *a3,\n        struct cocos2d::CCPoint *a4)\n{\n  cocos2d::CCDirector *v6; // rax\n  __int16 v8; // [rsp+30h] [rbp+8h] BYREF\n  GLubyte b; // [rsp+32h] [rbp+Ah]\n  char v10; // [rsp+33h] [rbp+Bh]\n\n  this->m_endColor.r = a3->r;\n  this->m_endColor.g = a3->g;\n  this->m_endColor.b = a3->b;\n  this->m_cEndOpacity = a3->a;\n  this->m_cStartOpacity = a2->a;\n  cocos2d::CCSize::operator=(&this->m_AlongVector, a4);\n  *(_WORD *)&this->m_bCompressedInterpolation = 1;\n  v8 = *(_WORD *)&a2->r;\n  b = a2->b;\n  v10 = -1;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6);\n  ((void (__fastcall *)(cocos2d::CCLayerGradient *, __int16 *))this->initWithColor_0)(this, &v8);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLayerGradient::initWithColor from 0x180050290 to 0x18005034d (189 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ee260\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1f80\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_10], rbx                                              ; +0x0, 0x180050290\npush    rdi                                                            ; +0x5, 0x180050295\nsub     rsp, 20h                                                       ; +0x6, 0x180050296\nmovzx   eax, byte ptr [r8]                                             ; +0xa, 0x18005029a\nmov     rbx, rdx                                                       ; +0xe, 0x18005029e\nmov     [rcx+223h], al                                                 ; +0x11, 0x1800502a1\nmov     rdi, rcx                                                       ; +0x17, 0x1800502a7\nmovzx   eax, byte ptr [r8+1]                                           ; +0x1a, 0x1800502aa\nmov     [rcx+224h], al                                                 ; +0x1f, 0x1800502af\nmovzx   eax, byte ptr [r8+2]                                           ; +0x25, 0x1800502b5\nmov     [rcx+225h], al                                                 ; +0x2a, 0x1800502ba\nmovzx   eax, byte ptr [r8+3]                                           ; +0x30, 0x1800502c0\nmov     [rcx+227h], al                                                 ; +0x35, 0x1800502c5\nmovzx   eax, byte ptr [rdx+3]                                          ; +0x3b, 0x1800502cb\nmov     rdx, r9                                                        ; +0x3f, 0x1800502cf\nmov     [rcx+226h], al                                                 ; +0x42, 0x1800502d2\nadd     rcx, 228h                                                      ; +0x48, 0x1800502d8\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x4f, 0x1800502df\nmov     word ptr [rdi+230h], 1                                         ; +0x54, 0x1800502e4\nmovzx   eax, byte ptr [rbx]                                            ; +0x5d, 0x1800502ed\nmov     byte ptr [rsp+28h+arg_0], al                                   ; +0x60, 0x1800502f0\nmovzx   eax, byte ptr [rbx+1]                                          ; +0x64, 0x1800502f4\nmov     byte ptr [rsp+28h+arg_0+1], al                                 ; +0x68, 0x1800502f8\nmovzx   eax, byte ptr [rbx+2]                                          ; +0x6c, 0x1800502fc\nmov     byte ptr [rsp+28h+arg_0+2], al                                 ; +0x70, 0x180050300\nmov     byte ptr [rsp+28h+arg_0+3], 0FFh                               ; +0x74, 0x180050304\nmov     eax, [rsp+28h+arg_0]                                           ; +0x79, 0x180050309\nmov     [rsp+28h+arg_0], eax                                           ; +0x7d, 0x18005030d\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x81, 0x180050311\nmov     rcx, rax                                                       ; +0x86, 0x180050316\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x89, 0x180050319\ncall    ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x8e, 0x18005031e\nmov     rax, [rdi]                                                     ; +0x93, 0x180050323\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x96, 0x180050326\nmovss   xmm3, [rsp+28h+arg_C]                                          ; +0x9b, 0x18005032b\nmov     rcx, rdi                                                       ; +0xa1, 0x180050331\nmovss   xmm2, [rsp+28h+arg_8]                                          ; +0xa4, 0x180050334\ncall    qword ptr [rax+400h]                                           ; +0xaa, 0x18005033a\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xb0, 0x180050340\nmov     al, 1                                                          ; +0xb5, 0x180050345\nadd     rsp, 20h                                                       ; +0xb7, 0x180050347\npop     rdi                                                            ; +0xbb, 0x18005034b\nretn                                                                   ; +0xbc, 0x18005034c", "xrefs": ["<???> @ 0x1800ee260", "<???> @ 0x1801438a8", "<???> @ 0x1801b1f80"], "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"}