{"type": "func", "start": 5372194976, "end": 5372195077, "name": "GJGradientLayer::init", "pseudocode": "// \n// GJGradientLayer::init from 0x1403530a0 to 0x140353105 (101 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1403275e2\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1403275d3\n// > <???> @ 0x14076ba40\n// > <???> @ 0x140920420\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:48 +0000\n// \n\nbool __fastcall GJGradientLayer::init(cocos2d::CCLayerGradient *a1)\n{\n  bool result; // al\n  __int64 v3; // rbx\n  __int64 v4; // rax\n  int v5; // [rsp+38h] [rbp+10h] BYREF\n  int v6; // [rsp+40h] [rbp+18h] BYREF\n\n  v5 = -16777216;\n  v6 = -1;\n  result = cocos2d::CCLayerGradient::initWithColor(\n             a1,\n             (const struct cocos2d::_ccColor4B *)&v6,\n             (const struct cocos2d::_ccColor4B *)&v5);\n  if ( result )\n  {\n    v3 = *(_QWORD *)a1;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v5, 0.0, 0.0);\n    (*(void (__fastcall **)(cocos2d::CCLayerGradient *, __int64))(v3 + 288))(a1, v4);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; GJGradientLayer::init from 0x1403530a0 to 0x140353105 (101 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1403275e2\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1403275d3\n; > <???> @ 0x14076ba40\n; > <???> @ 0x140920420\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:48 +0000\n; \npush    rdi                                                            ; +0x0, 0x1403530a0\nsub     rsp, 20h                                                       ; +0x2, 0x1403530a2\nlea     r8, [rsp+28h+arg_8]                                            ; +0x6, 0x1403530a6\nmov     [rsp+28h+arg_8], 0FF000000h                                    ; +0xb, 0x1403530ab\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x13, 0x1403530b3\nmov     [rsp+28h+arg_10], 0FFFFFFFFh                                   ; +0x18, 0x1403530b8\nmov     rdi, rcx                                                       ; +0x20, 0x1403530c0\ncall    cs:__imp_?initWithColor@CCLayerGradient@cocos2d@@UEAA_NAEBU_ccColor4B@2@0@Z; cocos2d::CCLayerGradient::initWithColor(cocos2d::_ccColor4B const &,cocos2d::_ccColor4B const &) ; +0x23, 0x1403530c3\ntest    al, al                                                         ; +0x29, 0x1403530c9\njnz     short loc_1403530D3                                            ; +0x2b, 0x1403530cb\nadd     rsp, 20h                                                       ; +0x2d, 0x1403530cd\npop     rdi                                                            ; +0x31, 0x1403530d1\nretn                                                                   ; +0x32, 0x1403530d2\nmov     [rsp+28h+arg_0], rbx                                           ; +0x33, 0x1403530d3\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x38, 0x1403530d8\nmov     rbx, [rdi]                                                     ; +0x3d, 0x1403530dd\nxorps   xmm2, xmm2                                                     ; +0x40, 0x1403530e0\nxorps   xmm1, xmm1                                                     ; +0x43, 0x1403530e3\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x46, 0x1403530e6\nmov     rdx, rax                                                       ; +0x4c, 0x1403530ec\nmov     rcx, rdi                                                       ; +0x4f, 0x1403530ef\ncall    qword ptr [rbx+120h]                                           ; +0x52, 0x1403530f2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x58, 0x1403530f8\nmov     al, 1                                                          ; +0x5d, 0x1403530fd\nadd     rsp, 20h                                                       ; +0x5f, 0x1403530ff\npop     rdi                                                            ; +0x63, 0x140353103\nretn                                                                   ; +0x64, 0x140353104", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x1403275e2", "GJBaseGameLayer::triggerGradientCommand @ 0x1403275d3", "<???> @ 0x14076ba40", "<???> @ 0x140920420"], "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"}