{"type": "func", "start": 6442608048, "end": 6442608133, "name": "cocos2d::CCPointArray::getControlPointAtIndex", "pseudocode": "// \n// cocos2d::CCPointArray::getControlPointAtIndex from 0x1800265b0 to 0x180026605 (85 bytes)\n// \n// 6 xrefs:\n// > cocos2d::ccDrawCardinalSpline @ 0x180010a46\n// > cocos2d::ccDrawCardinalSpline @ 0x180010a56\n// > cocos2d::ccDrawCardinalSpline @ 0x180010a67\n// > cocos2d::ccDrawCardinalSpline @ 0x180010a78\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9484\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:30 +0000\n// \n\n_DWORD *__fastcall cocos2d::CCPointArray::getControlPointAtIndex(__int64 a1, _DWORD *a2, unsigned int a3)\n{\n  _QWORD *v3; // r9\n  unsigned int v4; // eax\n  __int64 v6; // r8\n  unsigned __int64 v7; // rcx\n\n  v3 = *(_QWORD **)(a1 + 56);\n  v4 = 0;\n  if ( a3 )\n    v4 = a3;\n  v6 = v4;\n  v7 = (__int64)(v3[1] - *v3) >> 3;\n  if ( v7 - 1 < v4 )\n    v6 = (unsigned int)(v7 - 1);\n  if ( v7 <= (unsigned int)v6 )\n    std::vector<void *>::_Xlen();\n  cocos2d::cc_timeval::operator=(a2, *(_DWORD **)(*v3 + 8 * v6));\n  return a2;\n}", "assembly": "; \n; cocos2d::CCPointArray::getControlPointAtIndex from 0x1800265b0 to 0x180026605 (85 bytes)\n; \n; 6 xrefs:\n; > cocos2d::ccDrawCardinalSpline @ 0x180010a46\n; > cocos2d::ccDrawCardinalSpline @ 0x180010a56\n; > cocos2d::ccDrawCardinalSpline @ 0x180010a67\n; > cocos2d::ccDrawCardinalSpline @ 0x180010a78\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9484\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:30 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800265b0\nsub     rsp, 20h                                                       ; +0x2, 0x1800265b2\nmov     r9, [rcx+38h]                                                  ; +0x6, 0x1800265b6\nxor     eax, eax                                                       ; +0xa, 0x1800265ba\ntest    r8d, r8d                                                       ; +0xc, 0x1800265bc\nmov     rbx, rdx                                                       ; +0xf, 0x1800265bf\ncmovnz  eax, r8d                                                       ; +0x12, 0x1800265c2\nmov     rdx, [r9]                                                      ; +0x16, 0x1800265c6\nmov     rcx, [r9+8]                                                    ; +0x19, 0x1800265c9\nmov     r8d, eax                                                       ; +0x1d, 0x1800265cd\nsub     rcx, rdx                                                       ; +0x20, 0x1800265d0\nsar     rcx, 3                                                         ; +0x23, 0x1800265d3\nlea     rax, [rcx-1]                                                   ; +0x27, 0x1800265d7\ncmp     rax, r8                                                        ; +0x2b, 0x1800265db\ncmovb   r8d, eax                                                       ; +0x2e, 0x1800265de\nmov     eax, r8d                                                       ; +0x32, 0x1800265e2\ncmp     rcx, rax                                                       ; +0x35, 0x1800265e5\njbe     short loc_1800265FF                                            ; +0x38, 0x1800265e8\nmov     rdx, [rdx+r8*8]                                                ; +0x3a, 0x1800265ea\nmov     rcx, rbx                                                       ; +0x3e, 0x1800265ee\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x41, 0x1800265f1\nmov     rax, rbx                                                       ; +0x46, 0x1800265f6\nadd     rsp, 20h                                                       ; +0x49, 0x1800265f9\npop     rbx                                                            ; +0x4d, 0x1800265fd\nretn                                                                   ; +0x4e, 0x1800265fe\ncall    ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ_3; std::vector<void *>::_Xlen(void) ; +0x4f, 0x1800265ff\ndb 0CCh                                                                ; +0x54, 0x180026604", "xrefs": ["cocos2d::ccDrawCardinalSpline @ 0x180010a46", "cocos2d::ccDrawCardinalSpline @ 0x180010a56", "cocos2d::ccDrawCardinalSpline @ 0x180010a67", "cocos2d::ccDrawCardinalSpline @ 0x180010a78", "<???> @ 0x18014cf68", "<???> @ 0x1801b9484"], "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"}