{"type": "func", "start": 5372643088, "end": 5372643371, "name": "HardStreak::addPoint", "pseudocode": "// \n// HardStreak::addPoint from 0x1403c0710 to 0x1403c082b (283 bytes)\n// \n// 4 xrefs:\n// > HardStreak::init @ 0x1403bfab7\n// > PlayerObject::createFadeOutDartStreak @ 0x1404f6acf\n// > PlayerObject::placeStreakPoint @ 0x1404fec6d\n// > <???> @ 0x140924014\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\n// Hidden C++ exception states: #wind=2\nvoid __fastcall HardStreak::addPoint(__int64 a1, const struct cocos2d::CCPoint *a2)\n{\n  struct cocos2d::CCObject *Object; // rax\n  __int64 v5; // rax\n  float *v6; // rax\n  const struct cocos2d::CCPoint *v7; // rax\n  const struct cocos2d::CCPoint *v8; // rdi\n  _OWORD *v9; // rsi\n  __int64 v10; // rax\n  char v11; // [rsp+40h] [rbp+8h] BYREF\n  _OWORD *v12; // [rsp+50h] [rbp+18h] BYREF\n  char v13; // [rsp+58h] [rbp+20h] BYREF\n\n  if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 416))\n    || (Object = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 416)),\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (struct cocos2d::CCObject *)((char *)Object + 56)),\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a2),\n        cocos2d::CCPoint::operator-(&v11, &v13, v5),\n        (float)((float)(*v6 * *v6) + (float)(v6[1] * v6[1])) >= 0.0099999998) )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, a2);\n    v8 = v7;\n    v9 = operator new(0x40u);\n    v12 = v9;\n    *v9 = 0;\n    v9[1] = 0;\n    v9[2] = 0;\n    v9[3] = 0;\n    cocos2d::CCObject::CCObject((cocos2d::CCObject *)v9);\n    *(_QWORD *)v9 = &PointNode::`vftable';\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)((char *)v9 + 56));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v8);\n    cocos2d::CCPoint::operator=((char *)v9 + 56, v10);\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);\n    cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 416), (struct cocos2d::CCObject *)v9);\n  }\n}", "assembly": "; \n; HardStreak::addPoint from 0x1403c0710 to 0x1403c082b (283 bytes)\n; \n; 4 xrefs:\n; > HardStreak::init @ 0x1403bfab7\n; > PlayerObject::createFadeOutDartStreak @ 0x1404f6acf\n; > PlayerObject::placeStreakPoint @ 0x1404fec6d\n; > <???> @ 0x140924014\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403c0710\npush    rbp                                                            ; +0x5, 0x1403c0715\npush    rsi                                                            ; +0x6, 0x1403c0716\npush    rdi                                                            ; +0x7, 0x1403c0717\nsub     rsp, 20h                                                       ; +0x8, 0x1403c0718\nmov     rbx, rdx                                                       ; +0xc, 0x1403c071c\nmov     rbp, rcx                                                       ; +0xf, 0x1403c071f\nmov     rcx, [rcx+1A0h]                                                ; +0x12, 0x1403c0722\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x19, 0x1403c0729\ntest    eax, eax                                                       ; +0x1f, 0x1403c072f\njz      short loc_1403C0796                                            ; +0x21, 0x1403c0731\nmov     rcx, [rbp+1A0h]                                                ; +0x23, 0x1403c0733\ncall    cs:?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x2a, 0x1403c073a\nlea     rdx, [rax+38h]                                                 ; +0x30, 0x1403c0740\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x34, 0x1403c0744\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x39, 0x1403c0749\nmov     rdx, rbx                                                       ; +0x3f, 0x1403c074f\nlea     rcx, [rsp+38h+arg_10]                                          ; +0x42, 0x1403c0752\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x47, 0x1403c0757\nmov     r8, rax                                                        ; +0x4d, 0x1403c075d\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x50, 0x1403c0760\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x55, 0x1403c0765\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x5a, 0x1403c076a\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x60, 0x1403c0770\nmovss   xmm1, dword ptr [rax]                                          ; +0x65, 0x1403c0775\nmulss   xmm1, xmm1                                                     ; +0x69, 0x1403c0779\nmulss   xmm0, xmm0                                                     ; +0x6d, 0x1403c077d\naddss   xmm1, xmm0                                                     ; +0x71, 0x1403c0781\nmovss   xmm0, cs:dword_140834D9C                                       ; +0x75, 0x1403c0785\ncomiss  xmm0, xmm1                                                     ; +0x7d, 0x1403c078d\nja      loc_1403C081E                                                  ; +0x80, 0x1403c0790\nmov     rdx, rbx                                                       ; +0x86, 0x1403c0796\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x89, 0x1403c0799\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x8e, 0x1403c079e\nmov     rdi, rax                                                       ; +0x94, 0x1403c07a4\nmov     ecx, 40h ; '@'; Size                                           ; +0x97, 0x1403c07a7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9c, 0x1403c07ac\nmov     rsi, rax                                                       ; +0xa1, 0x1403c07b1\nmov     [rsp+38h+arg_10], rax                                          ; +0xa4, 0x1403c07b4\nxorps   xmm0, xmm0                                                     ; +0xa9, 0x1403c07b9\nmovups  xmmword ptr [rax], xmm0                                        ; +0xac, 0x1403c07bc\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0xaf, 0x1403c07bf\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xb3, 0x1403c07c3\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0xb7, 0x1403c07c7\nmov     rcx, rax                                                       ; +0xbb, 0x1403c07cb\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0xbe, 0x1403c07ce\nnop                                                                    ; +0xc4, 0x1403c07d4\nlea     rax, ??_7PointNode@@6B@; const PointNode::`vftable'            ; +0xc5, 0x1403c07d5\nmov     [rsi], rax                                                     ; +0xcc, 0x1403c07dc\nlea     rcx, [rsi+38h]                                                 ; +0xcf, 0x1403c07df\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xd3, 0x1403c07e3\nnop                                                                    ; +0xd9, 0x1403c07e9\nmov     rdx, rdi                                                       ; +0xda, 0x1403c07ea\nlea     rcx, [rsp+38h+arg_10]                                          ; +0xdd, 0x1403c07ed\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xe2, 0x1403c07f2\nmov     rdx, rax                                                       ; +0xe8, 0x1403c07f8\nlea     rcx, [rsi+38h]                                                 ; +0xeb, 0x1403c07fb\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xef, 0x1403c07ff\nmov     rcx, rsi                                                       ; +0xf5, 0x1403c0805\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf8, 0x1403c0808\nmov     rdx, rsi                                                       ; +0xfe, 0x1403c080e\nmov     rcx, [rbp+1A0h]                                                ; +0x101, 0x1403c0811\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x108, 0x1403c0818\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x10e, 0x1403c081e\nadd     rsp, 20h                                                       ; +0x113, 0x1403c0823\npop     rdi                                                            ; +0x117, 0x1403c0827\npop     rsi                                                            ; +0x118, 0x1403c0828\npop     rbp                                                            ; +0x119, 0x1403c0829\nretn                                                                   ; +0x11a, 0x1403c082a", "xrefs": ["HardStreak::init @ 0x1403bfab7", "PlayerObject::createFadeOutDartStreak @ 0x1404f6acf", "PlayerObject::placeStreakPoint @ 0x1404fec6d", "<???> @ 0x140924014"], "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"}