{"type": "func", "start": 5371104672, "end": 5371104789, "name": "GJGradientLayer::init", "pseudocode": "// \n// GJGradientLayer::init from 0x140248da0 to 0x140248e15 (117 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x14021f882\n// > GJBaseGameLayer::triggerGradientCommand @ 0x14021f873\n// > <???> @ 0x140567240\n// > <???> @ 0x1406ce7cc\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 GJGradientLayer::init(GJGradientLayer *a1)\n{\n  float v1; // xmm0_4\n  bool result; // al\n  GJGradientLayer_vtbl *v4; // rbx\n  const cocos2d::CCPoint *v5; // rax\n  int v6; // [rsp+38h] [rbp+10h] BYREF\n  int v7; // [rsp+40h] [rbp+18h] BYREF\n\n  v7 = -16777216;\n  v6 = -1;\n  result = cocos2d::CCLayerGradient::initWithColor(\n             a1,\n             (const struct cocos2d::_ccColor4B *)&v6,\n             (const struct cocos2d::_ccColor4B *)&v7);\n  if ( result )\n  {\n    v4 = a1->cocos2d::CCLayerGradient::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint(v1, 0.0);\n    v4->setAnchorPoint(a1, v5);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; GJGradientLayer::init from 0x140248da0 to 0x140248e15 (117 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x14021f882\n; > GJBaseGameLayer::triggerGradientCommand @ 0x14021f873\n; > <???> @ 0x140567240\n; > <???> @ 0x1406ce7cc\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    rdi                                                            ; +0x0, 0x140248da0\nsub     rsp, 20h                                                       ; +0x2, 0x140248da2\nmov     [rsp+28h+arg_8], 0FF000000h                                    ; +0x6, 0x140248da6\nlea     r8, [rsp+28h+arg_10]                                           ; +0xe, 0x140248dae\nmov     eax, [rsp+28h+arg_8]                                           ; +0x13, 0x140248db3\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x17, 0x140248db7\nmov     [rsp+28h+arg_8], 0FFFFFFFFh                                    ; +0x1c, 0x140248dbc\nmov     rdi, rcx                                                       ; +0x24, 0x140248dc4\nmov     [rsp+28h+arg_10], eax                                          ; +0x27, 0x140248dc7\nmov     eax, [rsp+28h+arg_8]                                           ; +0x2b, 0x140248dcb\nmov     [rsp+28h+arg_8], eax                                           ; +0x2f, 0x140248dcf\ncall    cs:__imp_?initWithColor@CCLayerGradient@cocos2d@@UEAA_NAEBU_ccColor4B@2@0@Z; cocos2d::CCLayerGradient::initWithColor(cocos2d::_ccColor4B const &,cocos2d::_ccColor4B const &) ; +0x33, 0x140248dd3\ntest    al, al                                                         ; +0x39, 0x140248dd9\njnz     short loc_140248DE3                                            ; +0x3b, 0x140248ddb\nadd     rsp, 20h                                                       ; +0x3d, 0x140248ddd\npop     rdi                                                            ; +0x41, 0x140248de1\nretn                                                                   ; +0x42, 0x140248de2\nmov     [rsp+28h+arg_0], rbx                                           ; +0x43, 0x140248de3\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x48, 0x140248de8\nmov     rbx, [rdi]                                                     ; +0x4d, 0x140248ded\nxorps   xmm2, xmm2                                                     ; +0x50, 0x140248df0\nxorps   xmm1, xmm1                                                     ; +0x53, 0x140248df3\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x56, 0x140248df6\nmov     rdx, rax                                                       ; +0x5c, 0x140248dfc\nmov     rcx, rdi                                                       ; +0x5f, 0x140248dff\ncall    qword ptr [rbx+110h]                                           ; +0x62, 0x140248e02\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x68, 0x140248e08\nmov     al, 1                                                          ; +0x6d, 0x140248e0d\nadd     rsp, 20h                                                       ; +0x6f, 0x140248e0f\npop     rdi                                                            ; +0x73, 0x140248e13\nretn                                                                   ; +0x74, 0x140248e14", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x14021f882", "GJBaseGameLayer::triggerGradientCommand @ 0x14021f873", "<???> @ 0x140567240", "<???> @ 0x1406ce7cc"], "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"}