{"type": "func", "start": 4296250336, "end": 4296250702, "name": "GJGradientLayer::create", "pseudocode": "// \n// GJGradientLayer::create from 0x1001393e0 to 0x10013954e (366 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x100138f75\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\nGJGradientLayer *__fastcall GJGradientLayer::create()\n{\n  char *v0; // rbx\n\n  v0 = (char *)operator new(0x260u);\n  cocos2d::CCLayerColor::CCLayerColor(v0);\n  *(_QWORD *)v0 = off_10094A500;\n  *((_QWORD *)v0 + 40) = off_10094AA88;\n  *((_QWORD *)v0 + 41) = &off_10094AAF8;\n  *((_QWORD *)v0 + 42) = off_10094AB10;\n  *((_QWORD *)v0 + 43) = off_10094AB30;\n  *((_QWORD *)v0 + 44) = off_10094AB50;\n  *((_QWORD *)v0 + 51) = off_10094AB78;\n  *((_QWORD *)v0 + 54) = off_10094ABF8;\n  sub_10028CC30(v0 + 552);\n  *(_QWORD *)v0 = off_1008C20E0;\n  *((_QWORD *)v0 + 40) = off_1008C2668;\n  *((_QWORD *)v0 + 41) = &off_1008C26D8;\n  *((_QWORD *)v0 + 42) = off_1008C26F0;\n  *((_QWORD *)v0 + 43) = off_1008C2710;\n  *((_QWORD *)v0 + 44) = off_1008C2730;\n  *((_QWORD *)v0 + 51) = off_1008C2758;\n  *((_QWORD *)v0 + 54) = off_1008C27D8;\n  *(_QWORD *)(v0 + 564) = 0;\n  sub_10028CC30(v0 + 572);\n  *((_QWORD *)v0 + 73) = 0;\n  v0[592] = 0;\n  *(_QWORD *)(v0 + 596) = 0;\n  *((_DWORD *)v0 + 151) = 0;\n  if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return (GJGradientLayer *)v0;\n}", "assembly": "; \n; GJGradientLayer::create from 0x1001393e0 to 0x10013954e (366 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x100138f75\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, 0x1001393e0\nmov     rbp, rsp                                                       ; +0x1, 0x1001393e1\npush    r14                                                            ; +0x4, 0x1001393e4\npush    rbx                                                            ; +0x6, 0x1001393e6\nmov     edi, 260h; __sz                                                ; +0x7, 0x1001393e7\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x1001393ec\nmov     rbx, rax                                                       ; +0x11, 0x1001393f1\nmov     rdi, rax                                                       ; +0x14, 0x1001393f4\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x17, 0x1001393f7\nlea     rax, _ZTVN7cocos2d15CCLayerGradientE; `vtable for'cocos2d::CCLayerGradient ; +0x1c, 0x1001393fc\nlea     rcx, [rax+10h]                                                 ; +0x23, 0x100139403\nmov     [rbx], rcx                                                     ; +0x27, 0x100139407\nlea     rcx, [rax+598h]                                                ; +0x2a, 0x10013940a\nmov     [rbx+140h], rcx                                                ; +0x31, 0x100139411\nlea     rcx, [rax+608h]                                                ; +0x38, 0x100139418\nmov     [rbx+148h], rcx                                                ; +0x3f, 0x10013941f\nlea     rcx, [rax+620h]                                                ; +0x46, 0x100139426\nmov     [rbx+150h], rcx                                                ; +0x4d, 0x10013942d\nlea     rcx, [rax+640h]                                                ; +0x54, 0x100139434\nmov     [rbx+158h], rcx                                                ; +0x5b, 0x10013943b\nlea     rcx, [rax+660h]                                                ; +0x62, 0x100139442\nmov     [rbx+160h], rcx                                                ; +0x69, 0x100139449\nlea     rcx, [rax+688h]                                                ; +0x70, 0x100139450\nmov     [rbx+198h], rcx                                                ; +0x77, 0x100139457\nadd     rax, 708h                                                      ; +0x7e, 0x10013945e\nmov     [rbx+1B0h], rax                                                ; +0x84, 0x100139464\nlea     rdi, [rbx+228h]                                                ; +0x8b, 0x10013946b\ncall    sub_10028CC30                                                  ; +0x92, 0x100139472\nlea     rax, off_1008C20E0                                             ; +0x97, 0x100139477\nmov     [rbx], rax                                                     ; +0x9e, 0x10013947e\nlea     rax, off_1008C2668                                             ; +0xa1, 0x100139481\nmov     [rbx+140h], rax                                                ; +0xa8, 0x100139488\nlea     rax, off_1008C26D8                                             ; +0xaf, 0x10013948f\nmov     [rbx+148h], rax                                                ; +0xb6, 0x100139496\nlea     rax, off_1008C26F0                                             ; +0xbd, 0x10013949d\nmov     [rbx+150h], rax                                                ; +0xc4, 0x1001394a4\nlea     rax, off_1008C2710                                             ; +0xcb, 0x1001394ab\nmov     [rbx+158h], rax                                                ; +0xd2, 0x1001394b2\nlea     rax, off_1008C2730                                             ; +0xd9, 0x1001394b9\nmov     [rbx+160h], rax                                                ; +0xe0, 0x1001394c0\nlea     rax, off_1008C2758                                             ; +0xe7, 0x1001394c7\nmov     [rbx+198h], rax                                                ; +0xee, 0x1001394ce\nlea     rax, off_1008C27D8                                             ; +0xf5, 0x1001394d5\nmov     [rbx+1B0h], rax                                                ; +0xfc, 0x1001394dc\nmov     qword ptr [rbx+234h], 0                                        ; +0x103, 0x1001394e3\nmov     rdi, rbx                                                       ; +0x10e, 0x1001394ee\nadd     rdi, 23Ch                                                      ; +0x111, 0x1001394f1\ncall    sub_10028CC30                                                  ; +0x118, 0x1001394f8\nmov     qword ptr [rbx+248h], 0                                        ; +0x11d, 0x1001394fd\nmov     byte ptr [rbx+250h], 0                                         ; +0x128, 0x100139508\nmov     qword ptr [rbx+254h], 0                                        ; +0x12f, 0x10013950f\nmov     dword ptr [rbx+25Ch], 0                                        ; +0x13a, 0x10013951a\nmov     rax, [rbx]                                                     ; +0x144, 0x100139524\nmov     rdi, rbx                                                       ; +0x147, 0x100139527\ncall    qword ptr [rax+50h]                                            ; +0x14a, 0x10013952a\ntest    al, al                                                         ; +0x14d, 0x10013952d\njz      short loc_10013953B                                            ; +0x14f, 0x10013952f\nmov     rdi, rbx                                                       ; +0x151, 0x100139531\ncall    cocos2d__CCObject__autorelease                                 ; +0x154, 0x100139534\njmp     short loc_100139546                                            ; +0x159, 0x100139539\nmov     rax, [rbx]                                                     ; +0x15b, 0x10013953b\nmov     rdi, rbx                                                       ; +0x15e, 0x10013953e\ncall    qword ptr [rax+10h]                                            ; +0x161, 0x100139541\nxor     ebx, ebx                                                       ; +0x164, 0x100139544\nmov     rax, rbx                                                       ; +0x166, 0x100139546\npop     rbx                                                            ; +0x169, 0x100139549\npop     r14                                                            ; +0x16a, 0x10013954a\npop     rbp                                                            ; +0x16c, 0x10013954c\nretn                                                                   ; +0x16d, 0x10013954d", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x100138f75"], "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"}