{"type": "func", "start": 4296296512, "end": 4296296609, "name": "GJGradientLayer::init", "pseudocode": "// \n// GJGradientLayer::init from 0x100144840 to 0x1001448a1 (97 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100ac5990\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 12:24:57 +0000\n// \n\n__int64 __fastcall GJGradientLayer::init(__int64 a1)\n{\n  __int64 result; // rax\n  unsigned int v2; // r15d\n  int v3; // [rsp+Ch] [rbp-24h] BYREF\n  int v4[7]; // [rsp+14h] [rbp-1Ch] BYREF\n\n  v3 = -1;\n  v4[0] = -16777216;\n  result = cocos2d::CCLayerGradient::initWithColor_1(a1, &v3, v4);\n  if ( (_BYTE)result )\n  {\n    v2 = result;\n    sub_100278250(&v3, 0.0, 0.0);\n    (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 296LL))(a1, &v3);\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; GJGradientLayer::init from 0x100144840 to 0x1001448a1 (97 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100ac5990\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 12:24:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x100144840\nmov     rbp, rsp                                                       ; +0x1, 0x100144841\npush    r15                                                            ; +0x4, 0x100144844\npush    r14                                                            ; +0x6, 0x100144846\npush    rbx                                                            ; +0x8, 0x100144848\nsub     rsp, 18h                                                       ; +0x9, 0x100144849\nmov     rbx, rdi                                                       ; +0xd, 0x10014484d\nmov     [rbp+var_24], 0FFFFFFFFh                                       ; +0x10, 0x100144850\nmov     [rbp+var_1C], 0FF000000h                                       ; +0x17, 0x100144857\nlea     rsi, [rbp+var_24]                                              ; +0x1e, 0x10014485e\nlea     rdx, [rbp+var_1C]                                              ; +0x22, 0x100144862\ncall    cocos2d__CCLayerGradient__initWithColor_1                      ; +0x26, 0x100144866\ntest    al, al                                                         ; +0x2b, 0x10014486b\njz      short loc_100144896                                            ; +0x2d, 0x10014486d\nlea     r14, [rbp+var_24]                                              ; +0x2f, 0x10014486f\nxorps   xmm0, xmm0                                                     ; +0x33, 0x100144873\nxorps   xmm1, xmm1                                                     ; +0x36, 0x100144876\nmov     rdi, r14                                                       ; +0x39, 0x100144879\nmov     r15d, eax                                                      ; +0x3c, 0x10014487c\ncall    sub_100278250                                                  ; +0x3f, 0x10014487f\nmov     rax, [rbx]                                                     ; +0x44, 0x100144884\nmov     rdi, rbx                                                       ; +0x47, 0x100144887\nmov     rsi, r14                                                       ; +0x4a, 0x10014488a\ncall    qword ptr [rax+128h]                                           ; +0x4d, 0x10014488d\nmov     eax, r15d                                                      ; +0x53, 0x100144893\nadd     rsp, 18h                                                       ; +0x56, 0x100144896\npop     rbx                                                            ; +0x5a, 0x10014489a\npop     r14                                                            ; +0x5b, 0x10014489b\npop     r15                                                            ; +0x5d, 0x10014489d\npop     rbp                                                            ; +0x5f, 0x10014489f\nretn                                                                   ; +0x60, 0x1001448a0", "xrefs": ["<???> @ 0x100ac5990"], "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"}