{"type": "func", "start": 4296429968, "end": 4296430065, "name": "GJGradientLayer::init", "pseudocode": "// \n// GJGradientLayer::init from 0x100165190 to 0x1001651f1 (97 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008c2130\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\nbool __fastcall GJGradientLayer::init(GJGradientLayer *a1)\n{\n  bool result; // al\n  bool v2; // r15\n  int v3; // [rsp+Ch] [rbp-24h] BYREF\n  int v4; // [rsp+14h] [rbp-1Ch] BYREF\n\n  v3 = -1;\n  v4 = -16777216;\n  result = cocos2d::CCLayerGradient::initWithColor_1(\n             a1,\n             (const cocos2d::ccColor4B *)&v3,\n             (const cocos2d::ccColor4B *)&v4);\n  if ( result )\n  {\n    v2 = result;\n    sub_10028CBE0(&v3, 0.0, 0.0);\n    ((void (__fastcall *)(GJGradientLayer *, int *))a1->setAnchorPoint)(a1, &v3);\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; GJGradientLayer::init from 0x100165190 to 0x1001651f1 (97 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008c2130\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, 0x100165190\nmov     rbp, rsp                                                       ; +0x1, 0x100165191\npush    r15                                                            ; +0x4, 0x100165194\npush    r14                                                            ; +0x6, 0x100165196\npush    rbx                                                            ; +0x8, 0x100165198\nsub     rsp, 18h                                                       ; +0x9, 0x100165199\nmov     rbx, rdi                                                       ; +0xd, 0x10016519d\nmov     [rbp+var_24], 0FFFFFFFFh                                       ; +0x10, 0x1001651a0\nmov     [rbp+var_1C], 0FF000000h                                       ; +0x17, 0x1001651a7\nlea     rsi, [rbp+var_24]                                              ; +0x1e, 0x1001651ae\nlea     rdx, [rbp+var_1C]                                              ; +0x22, 0x1001651b2\ncall    cocos2d__CCLayerGradient__initWithColor_1                      ; +0x26, 0x1001651b6\ntest    al, al                                                         ; +0x2b, 0x1001651bb\njz      short loc_1001651E6                                            ; +0x2d, 0x1001651bd\nlea     r14, [rbp+var_24]                                              ; +0x2f, 0x1001651bf\nxorps   xmm0, xmm0                                                     ; +0x33, 0x1001651c3\nxorps   xmm1, xmm1                                                     ; +0x36, 0x1001651c6\nmov     rdi, r14                                                       ; +0x39, 0x1001651c9\nmov     r15d, eax                                                      ; +0x3c, 0x1001651cc\ncall    sub_10028CBE0                                                  ; +0x3f, 0x1001651cf\nmov     rax, [rbx]                                                     ; +0x44, 0x1001651d4\nmov     rdi, rbx                                                       ; +0x47, 0x1001651d7\nmov     rsi, r14                                                       ; +0x4a, 0x1001651da\ncall    qword ptr [rax+118h]                                           ; +0x4d, 0x1001651dd\nmov     eax, r15d                                                      ; +0x53, 0x1001651e3\nadd     rsp, 18h                                                       ; +0x56, 0x1001651e6\npop     rbx                                                            ; +0x5a, 0x1001651ea\npop     r14                                                            ; +0x5b, 0x1001651eb\npop     r15                                                            ; +0x5d, 0x1001651ed\npop     rbp                                                            ; +0x5f, 0x1001651ef\nretn                                                                   ; +0x60, 0x1001651f0", "xrefs": ["<???> @ 0x1008c2130"], "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"}