{"type": "func", "start": 6442605936, "end": 6442606049, "name": "cocos2d::CCPointArray::addControlPoint", "pseudocode": "// \n// cocos2d::CCPointArray::addControlPoint from 0x180025d70 to 0x180025de1 (113 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9418\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:21:29 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nfloat *__fastcall cocos2d::CCPointArray::addControlPoint(__int64 a1, float *a2)\n{\n  float *result; // rax\n  __int64 v5; // rcx\n  _BYTE *v6; // rdx\n  float *v7; // [rsp+30h] [rbp+8h] BYREF\n\n  result = (float *)sub_1800E4AC0(8u);\n  v7 = result;\n  if ( result )\n    result = kmVec2Fill(result, *a2, a2[1]);\n  v7 = result;\n  v5 = *(_QWORD *)(a1 + 56);\n  v6 = *(_BYTE **)(v5 + 8);\n  if ( v6 == *(_BYTE **)(v5 + 16) )\n    return (float *)sub_180025630((const void **)v5, v6, &v7);\n  *(_QWORD *)v6 = result;\n  *(_QWORD *)(v5 + 8) += 8LL;\n  return result;\n}", "assembly": "; \n; cocos2d::CCPointArray::addControlPoint from 0x180025d70 to 0x180025de1 (113 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9418\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:21:29 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180025d70\npush    rdi                                                            ; +0x5, 0x180025d75\nsub     rsp, 20h                                                       ; +0x6, 0x180025d76\nmov     rbx, rdx                                                       ; +0xa, 0x180025d7a\nmov     rdi, rcx                                                       ; +0xd, 0x180025d7d\nmov     ecx, 8; Size                                                   ; +0x10, 0x180025d80\ncall    sub_1800E4AC0                                                  ; +0x15, 0x180025d85\nmov     [rsp+28h+arg_0], rax                                           ; +0x1a, 0x180025d8a\ntest    rax, rax                                                       ; +0x1f, 0x180025d8f\njz      short loc_180025DA6                                            ; +0x22, 0x180025d92\nmovss   xmm2, dword ptr [rbx+4]                                        ; +0x24, 0x180025d94\nmovss   xmm1, dword ptr [rbx]                                          ; +0x29, 0x180025d99\nmov     rcx, rax                                                       ; +0x2d, 0x180025d9d\ncall    kmVec2Fill                                                     ; +0x30, 0x180025da0\nnop                                                                    ; +0x35, 0x180025da5\nmov     [rsp+28h+arg_0], rax                                           ; +0x36, 0x180025da6\nmov     rcx, [rdi+38h]                                                 ; +0x3b, 0x180025dab\nmov     rdx, [rcx+8]                                                   ; +0x3f, 0x180025daf\ncmp     rdx, [rcx+10h]                                                 ; +0x43, 0x180025db3\njz      short loc_180025DCC                                            ; +0x47, 0x180025db7\nmov     [rdx], rax                                                     ; +0x49, 0x180025db9\nadd     qword ptr [rcx+8], 8                                           ; +0x4c, 0x180025dbc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x51, 0x180025dc1\nadd     rsp, 20h                                                       ; +0x56, 0x180025dc6\npop     rdi                                                            ; +0x5a, 0x180025dca\nretn                                                                   ; +0x5b, 0x180025dcb\nlea     r8, [rsp+28h+arg_0]                                            ; +0x5c, 0x180025dcc\ncall    sub_180025630                                                  ; +0x61, 0x180025dd1\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x66, 0x180025dd6\nadd     rsp, 20h                                                       ; +0x6b, 0x180025ddb\npop     rdi                                                            ; +0x6f, 0x180025ddf\nretn                                                                   ; +0x70, 0x180025de0", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b9418"], "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"}