{"type": "func", "start": 4637368, "end": 4637476, "name": "GJGradientLayer::init", "pseudocode": "// \n// GJGradientLayer::init from 0x46c2b8 to 0x46c324 (108 bytes)\n// \n// 0 xrefs:\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  int v2; // r6\n  void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  cocos2d::_ccColor4B v5; // [sp+0h] [bp-10h] BYREF\n  cocos2d::CCPoint v6; // [sp+4h] [bp-Ch] BYREF\n\n  v6.x = -1.7014e38;\n  v5.r = -1;\n  v5.g = -1;\n  v5.b = -1;\n  v5.a = -1;\n  v2 = cocos2d::CCLayerGradient::initWithColor(a1, &v5, (const cocos2d::_ccColor4B *)&v6);\n  if ( v2 )\n  {\n    setAnchorPoint = a1->setAnchorPoint;\n    cocos2d::CCPoint::CCPoint(&v6, 0.0, 0.0);\n    setAnchorPoint(a1, &v6);\n  }\n  return v2;\n}", "assembly": "; \n; GJGradientLayer::init from 0x46c2b8 to 0x46c324 (108 bytes)\n; \n; 0 xrefs:\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.W          {R0-R8,LR}                                             ; +0x0, 0x46c2b8\nADD             R5, SP, #0x10+var_C                                    ; +0x4, 0x46c2bc\nLDR             R4, =(__stack_chk_guard_ptr - 0x46C2CC)                ; +0x6, 0x46c2be\nMOVS            R2, #0                                                 ; +0x8, 0x46c2c0\nMOV             R1, SP                                                 ; +0xa, 0x46c2c2\nSTRB.W          R2, [SP,#0x10+var_C]                                   ; +0xc, 0x46c2c4\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x10, 0x46c2c8\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x12, 0x46c2ca\nSTRB.W          R2, [SP,#0x10+var_B]                                   ; +0x14, 0x46c2cc\nSTRB.W          R2, [SP,#0x10+var_A]                                   ; +0x18, 0x46c2d0\nMOV             R2, R5                                                 ; +0x1c, 0x46c2d4\nLDR             R3, [R4]                                               ; +0x1e, 0x46c2d6\nMOV             R7, R0                                                 ; +0x20, 0x46c2d8\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x22, 0x46c2da\nMOVS            R3, #0xFF                                              ; +0x24, 0x46c2dc\nSTRB.W          R3, [SP,#0x10+var_10]                                  ; +0x26, 0x46c2de\nSTRB.W          R3, [SP,#0x10+var_F]                                   ; +0x2a, 0x46c2e2\nSTRB.W          R3, [SP,#0x10+var_E]                                   ; +0x2e, 0x46c2e6\nSTRB.W          R3, [SP,#0x10+var_D]                                   ; +0x32, 0x46c2ea\nSTRB.W          R3, [SP,#0x10+var_9]                                   ; +0x36, 0x46c2ee\nBL              _ZN7cocos2d15CCLayerGradient13initWithColorERKNS_10_ccColor4BES3_; cocos2d::CCLayerGradient::initWithColor(cocos2d::_ccColor4B const&,cocos2d::_ccColor4B const&) ; +0x3a, 0x46c2f2\nMOV             R6, R0                                                 ; +0x3e, 0x46c2f6\nCBZ             R0, loc_46C310                                         ; +0x40, 0x46c2f8\nLDR             R3, [R7]                                               ; +0x42, 0x46c2fa\nMOVS            R1, #0; float                                          ; +0x44, 0x46c2fc\nMOV             R2, R1; float                                          ; +0x46, 0x46c2fe\nMOV             R0, R5; this                                           ; +0x48, 0x46c300\nLDR.W           R8, [R3,#0x8C]                                         ; +0x4a, 0x46c302\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x4e, 0x46c306\nMOV             R0, R7                                                 ; +0x52, 0x46c30a\nMOV             R1, R5                                                 ; +0x54, 0x46c30c\nBLX             R8                                                     ; +0x56, 0x46c30e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x58, 0x46c310\nMOV             R0, R6                                                 ; +0x5a, 0x46c312\nLDR             R3, [R4]                                               ; +0x5c, 0x46c314\nCMP             R2, R3                                                 ; +0x5e, 0x46c316\nBEQ             loc_46C31E                                             ; +0x60, 0x46c318\nBLX             __stack_chk_fail                                       ; +0x62, 0x46c31a\nADD             SP, SP, #0x10                                          ; +0x66, 0x46c31e\nPOP.W           {R4-R8,PC}                                             ; +0x68, 0x46c320", "xrefs": [], "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"}