{"type": "func", "start": 5372639856, "end": 5372640023, "name": "HardStreak::init", "pseudocode": "// \n// HardStreak::init from 0x1403bfa70 to 0x1403bfb17 (167 bytes)\n// \n// 4 xrefs:\n// > HardStreak::create @ 0x1403bfa2c\n// > HardStreak::create @ 0x1403bfa1d\n// > <???> @ 0x1407834a8\n// > <???> @ 0x140923fe4\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 11:31:28 +0000\n// \n\nbool __fastcall HardStreak::init(cocos2d::CCArray **a1)\n{\n  bool result; // al\n  __int64 v3; // rcx\n  cocos2d::CCObject *v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rax\n  char v7; // [rsp+38h] [rbp+10h] BYREF\n\n  result = cocos2d::CCDrawNode::init((cocos2d::CCDrawNode *)a1);\n  if ( result )\n  {\n    v4 = (cocos2d::CCObject *)cocos2d::CCArray::create(v3);\n    a1[52] = v4;\n    cocos2d::CCObject::retain(v4);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, (const struct cocos2d::CCPoint *)&unk_14090AD70);\n    HardStreak::addPoint(a1, v5);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v7, 10.0, 10.0);\n    cocos2d::CCPoint::operator=(a1 + 53, v6);\n    HardStreak::updateStroke(a1);\n    (*((void (__fastcall **)(cocos2d::CCArray **))*a1 + 93))(a1);\n    cocos2d::CCDrawNode::clear((cocos2d::CCDrawNode *)a1);\n    cocos2d::CCArray::removeAllObjects(a1[52]);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; HardStreak::init from 0x1403bfa70 to 0x1403bfb17 (167 bytes)\n; \n; 4 xrefs:\n; > HardStreak::create @ 0x1403bfa2c\n; > HardStreak::create @ 0x1403bfa1d\n; > <???> @ 0x1407834a8\n; > <???> @ 0x140923fe4\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 11:31:28 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403bfa70\nsub     rsp, 20h                                                       ; +0x2, 0x1403bfa72\nmov     rbx, rcx                                                       ; +0x6, 0x1403bfa76\ncall    cs:?init@CCDrawNode@cocos2d@@UEAA_NXZ; cocos2d::CCDrawNode::init(void) ; +0x9, 0x1403bfa79\ntest    al, al                                                         ; +0xf, 0x1403bfa7f\njnz     short loc_1403BFA89                                            ; +0x11, 0x1403bfa81\nadd     rsp, 20h                                                       ; +0x13, 0x1403bfa83\npop     rbx                                                            ; +0x17, 0x1403bfa87\nretn                                                                   ; +0x18, 0x1403bfa88\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x19, 0x1403bfa89\nmov     rcx, rax                                                       ; +0x1f, 0x1403bfa8f\nmov     [rbx+1A0h], rax                                                ; +0x22, 0x1403bfa92\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x29, 0x1403bfa99\nlea     rdx, unk_14090AD70                                             ; +0x2f, 0x1403bfa9f\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x36, 0x1403bfaa6\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x3b, 0x1403bfaab\nmov     rdx, rax                                                       ; +0x41, 0x1403bfab1\nmov     rcx, rbx                                                       ; +0x44, 0x1403bfab4\ncall    HardStreak__addPoint                                           ; +0x47, 0x1403bfab7\nmovss   xmm1, cs:flt_1408354EC                                         ; +0x4c, 0x1403bfabc\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x54, 0x1403bfac4\nmovaps  xmm2, xmm1                                                     ; +0x59, 0x1403bfac9\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x5c, 0x1403bfacc\nmov     rdx, rax                                                       ; +0x62, 0x1403bfad2\nlea     rcx, [rbx+1A8h]                                                ; +0x65, 0x1403bfad5\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x6c, 0x1403bfadc\nxorps   xmm1, xmm1                                                     ; +0x72, 0x1403bfae2\nmov     rcx, rbx                                                       ; +0x75, 0x1403bfae5\ncall    HardStreak__updateStroke                                       ; +0x78, 0x1403bfae8\nmov     rax, [rbx]                                                     ; +0x7d, 0x1403bfaed\nmov     rcx, rbx                                                       ; +0x80, 0x1403bfaf0\ncall    qword ptr [rax+2E8h]                                           ; +0x83, 0x1403bfaf3\nmov     rcx, rbx                                                       ; +0x89, 0x1403bfaf9\ncall    cs:?clear@CCDrawNode@cocos2d@@QEAAXXZ; cocos2d::CCDrawNode::clear(void) ; +0x8c, 0x1403bfafc\nmov     rcx, [rbx+1A0h]                                                ; +0x92, 0x1403bfb02\ncall    cs:?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x99, 0x1403bfb09\nmov     al, 1                                                          ; +0x9f, 0x1403bfb0f\nadd     rsp, 20h                                                       ; +0xa1, 0x1403bfb11\npop     rbx                                                            ; +0xa5, 0x1403bfb15\nretn                                                                   ; +0xa6, 0x1403bfb16", "xrefs": ["HardStreak::create @ 0x1403bfa2c", "HardStreak::create @ 0x1403bfa1d", "<???> @ 0x1407834a8", "<???> @ 0x140923fe4"], "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"}