{"type": "func", "start": 6442832400, "end": 6442834053, "name": "cocos2d::CCMotionStreak::update", "pseudocode": "// \n// cocos2d::CCMotionStreak::update from 0x18005d210 to 0x18005d885 (1653 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800f9458\n// > <???> @ 0x18013924c\n// > <???> @ 0x1801392c0\n// > <???> @ 0x1801392d0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3150\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\nvoid __fastcall cocos2d::CCMotionStreak::update(cocos2d::CCMotionStreak *this, float a2, float a3)\n{\n  struct cocos2d::CCPoint *v3; // rdx\n  float v5; // xmm6_4\n  int v6; // ebp\n  unsigned int v7; // esi\n  unsigned int m_uNuPoints; // eax\n  GLubyte **p_m_pColorPointer; // rbx\n  float *m_pPointState; // rax\n  float v11; // xmm1_4\n  __int64 v12; // r14\n  __int64 v13; // r9\n  __int64 v14; // r10\n  __int64 v15; // rax\n  __int64 v16; // r10\n  __int64 v17; // rdx\n  __int64 v18; // r9\n  unsigned int v19; // eax\n  float *v20; // rbx\n  float *v21; // rax\n  float *v22; // rax\n  float v23; // xmm0_4\n  float v24; // xmm1_4\n  unsigned int v25; // eax\n  bool v26; // r14\n  signed int v27; // ecx\n  float *v28; // rbx\n  float *v29; // rax\n  float *v30; // rax\n  float v31; // xmm0_4\n  float v32; // xmm2_4\n  unsigned int v33; // ebx\n  __int64 v34; // rsi\n  cocos2d::CCPoint *m_pPointVertexes; // rcx\n  GLubyte *m_pColorPointer; // rcx\n  __int64 v37; // r8\n  GLubyte *v38; // rcx\n  struct cocos2d::_ccVertex2F *v39; // r9\n  cocos2d *v40; // rcx\n  bool m_bRepeatMode; // r8\n  unsigned int v42; // r8d\n  __int64 v43; // rdx\n  int v44; // eax\n  __int64 v45; // rcx\n  float v46; // xmm0_4\n  cocos2d::ccTex2F *v47; // rax\n  GLfloat v48; // xmm0_4\n  cocos2d::ccTex2F *v49; // rax\n  unsigned int v50; // ecx\n  unsigned int v51; // r8d\n  float v52; // xmm1_4\n  __int64 v53; // rdx\n  int v54; // eax\n  __int64 v55; // rcx\n  float v56; // xmm0_4\n  cocos2d::ccTex2F *m_pTexCoords; // rax\n  GLfloat v58; // xmm0_4\n  cocos2d::ccTex2F *v59; // rax\n  unsigned int v60; // [rsp+28h] [rbp-70h]\n  int v61; // [rsp+A0h] [rbp+8h] BYREF\n  int v62; // [rsp+B0h] [rbp+18h] BYREF\n  float v63; // [rsp+B8h] [rbp+20h] BYREF\n\n  if ( !this->m_bStartingPositionInitialized )\n    return;\n  v5 = a2 * this->m_fFadeDelta;\n  v6 = 0;\n  v7 = 0;\n  m_uNuPoints = this->m_uNuPoints;\n  if ( m_uNuPoints )\n  {\n    p_m_pColorPointer = &this->m_pColorPointer;\n    do\n    {\n      this->m_pPointState[v7] = this->m_pPointState[v7] - v5;\n      m_pPointState = this->m_pPointState;\n      v11 = m_pPointState[v7];\n      if ( v11 > 0.0 )\n      {\n        v12 = v7 - v6;\n        if ( v6 )\n        {\n          m_pPointState[v12] = v11;\n          cocos2d::CCSize::operator=(&this->m_pPointVertexes[v12], &this->m_pPointVertexes[v7]);\n          v13 = 2 * v7;\n          v14 = (unsigned int)(2 * v12);\n          v15 = (unsigned int)(v14 + 1);\n          this->m_pVertices[v14] = this->m_pVertices[v13];\n          v16 = (unsigned int)(8 * v12);\n          v17 = (unsigned int)(v13 + 1);\n          v18 = 8 * v7;\n          this->m_pVertices[v15] = this->m_pVertices[v17];\n          v3 = (struct cocos2d::CCPoint *)*p_m_pColorPointer;\n          (*p_m_pColorPointer)[v16] = (*p_m_pColorPointer)[v18];\n          (*p_m_pColorPointer)[(unsigned int)(v16 + 1)] = (*p_m_pColorPointer)[(unsigned int)(v18 + 1)];\n          (*p_m_pColorPointer)[(unsigned int)(v16 + 2)] = (*p_m_pColorPointer)[(unsigned int)(v18 + 2)];\n          (*p_m_pColorPointer)[(unsigned int)(v16 + 4)] = (*p_m_pColorPointer)[(unsigned int)(v18 + 4)];\n          (*p_m_pColorPointer)[(unsigned int)(v16 + 5)] = (*p_m_pColorPointer)[(unsigned int)(v18 + 5)];\n          (*p_m_pColorPointer)[(unsigned int)(v16 + 6)] = (*p_m_pColorPointer)[(unsigned int)(v18 + 6)];\n        }\n        else\n        {\n          LODWORD(v16) = 8 * v12;\n        }\n        if ( this->m_bDontOpacityFade )\n          LOBYTE(v3) = -1;\n        else\n          v3 = (struct cocos2d::CCPoint *)(unsigned int)(int)(float)(this->m_pPointState[v12] * 255.0);\n        (*p_m_pColorPointer)[(unsigned int)(v16 + 3)] = (unsigned __int8)v3;\n        (*p_m_pColorPointer)[(unsigned int)(v16 + 7)] = (unsigned __int8)v3;\n      }\n      else\n      {\n        ++v6;\n        p_m_pColorPointer = &this->m_pColorPointer;\n      }\n      m_uNuPoints = this->m_uNuPoints;\n      ++v7;\n    }\n    while ( v7 < m_uNuPoints );\n  }\n  v19 = m_uNuPoints - v6;\n  this->m_uNuPoints = v19;\n  if ( v19 >= this->m_uMaxPoints || !this->m_bStroke )\n  {\n    v27 = v19;\n    goto LABEL_36;\n  }\n  if ( v19 )\n  {\n    v20 = (float *)cocos2d::cc_timeval::operator=(&v61, &this->m_tPositionR);\n    v21 = (float *)cocos2d::cc_timeval::operator=(&v62, &this->m_pPointVertexes[this->m_uNuPoints - 1]);\n    v22 = cocos2d::CCSize::operator-(v21, &v63, v20);\n    v23 = v22[1];\n    v24 = *v22;\n    v25 = this->m_uNuPoints;\n    v26 = this->m_fMinSeg > (float)((float)(v24 * v24) + (float)(v23 * v23));\n    if ( v25 == 1 )\n    {\n      LOBYTE(v3) = 0;\n      v27 = 1;\n    }\n    else\n    {\n      v28 = (float *)cocos2d::cc_timeval::operator=(&v61, &this->m_tPositionR);\n      v29 = (float *)cocos2d::cc_timeval::operator=(&v62, &this->m_pPointVertexes[this->m_uNuPoints - 2]);\n      v30 = cocos2d::CCSize::operator-(v29, &v63, v28);\n      v31 = v30[1];\n      v32 = *v30;\n      v25 = this->m_uNuPoints;\n      v27 = v25;\n      a3 = (float)(v32 * v32) + (float)(v31 * v31);\n      LOBYTE(v3) = (float)(this->m_fMinSeg + this->m_fMinSeg) > a3;\n    }\n    if ( v26 || (_BYTE)v3 )\n      goto LABEL_36;\n    if ( v25\n      && this->m_fMaxSeg != 0.0\n      && cocos2d::CCPoint::getDistance(&this->m_pPointVertexes[v25 - 1], &this->m_tPositionR) > this->m_fMaxSeg )\n    {\n      v33 = 0;\n      if ( this->m_uNuPoints )\n      {\n        v34 = 0;\n        do\n        {\n          cocos2d::CCSize::operator=(&this->m_pPointVertexes[v33], &this->m_tPositionR);\n          ++v34;\n          ++v33;\n          this->m_pPointState[v34 - 1] = 0.0;\n        }\n        while ( v33 < this->m_uNuPoints );\n      }\n      m_pPointVertexes = this->m_pPointVertexes;\n      this->m_uNuPoints = 1;\n      cocos2d::CCSize::operator=(m_pPointVertexes, &this->m_tPositionR);\n      *this->m_pPointState = 1.0;\n    }\n  }\n  cocos2d::CCSize::operator=(&this->m_pPointVertexes[this->m_uNuPoints], &this->m_tPositionR);\n  this->m_pPointState[this->m_uNuPoints] = 1.0;\n  m_pColorPointer = this->m_pColorPointer;\n  v37 = 8 * this->m_uNuPoints;\n  *(_WORD *)&m_pColorPointer[v37] = *(_WORD *)&this->_displayedColor.r;\n  m_pColorPointer[v37 + 2] = this->_displayedColor.b;\n  v38 = this->m_pColorPointer;\n  *(_WORD *)&v38[v37 + 4] = *(_WORD *)&this->_displayedColor.r;\n  v38[v37 + 6] = this->_displayedColor.b;\n  this->m_pColorPointer[(unsigned int)(v37 + 3)] = -1;\n  this->m_pColorPointer[(unsigned int)(v37 + 7)] = -1;\n  v39 = (struct cocos2d::_ccVertex2F *)this->m_uNuPoints;\n  if ( (_DWORD)v39 && this->m_bFastMode )\n  {\n    v40 = (cocos2d *)this->m_pPointVertexes;\n    if ( (unsigned int)v39 <= 1 )\n      cocos2d::ccVertexLineToPolygon(v40, v3, a3, nullptr, COERCE_FLOAT(2), v60);\n    else\n      cocos2d::ccVertexLineToPolygon(v40, v3, a3, v39, COERCE_FLOAT(1), v60);\n  }\n  v27 = this->m_uNuPoints + 1;\n  this->m_uNuPoints = v27;\nLABEL_36:\n  if ( !this->m_bFastMode )\n  {\n    cocos2d::ccVertexLineToPolygon((cocos2d *)this->m_pPointVertexes, v3, a3, nullptr, *(float *)&v27, v60);\n    v27 = this->m_uNuPoints;\n  }\n  m_bRepeatMode = this->m_bRepeatMode;\n  if ( m_bRepeatMode && v6 )\n    this->m_fRepeatTime = (float)v6 + this->m_fRepeatTime;\n  this->m_idk = 0;\n  if ( v27 )\n  {\n    if ( this->m_uPreviousNuPoints == v27 )\n    {\n      if ( !m_bRepeatMode )\n        return;\n    }\n    else if ( !m_bRepeatMode )\n    {\n      v51 = 0;\n      v52 = 1.0 / (float)v27;\n      do\n      {\n        v53 = 2 * v51;\n        v54 = v51;\n        v55 = (unsigned int)(v53 + 1);\n        ++v51;\n        v56 = (float)v54;\n        m_pTexCoords = this->m_pTexCoords;\n        m_pTexCoords[v53].u = 0.0;\n        v58 = v56 * v52;\n        m_pTexCoords[v53].v = v58;\n        v59 = this->m_pTexCoords;\n        v59[v55].u = 1.0;\n        v59[v55].v = v58;\n        v50 = this->m_uNuPoints;\n      }\n      while ( v51 < v50 );\n      goto LABEL_51;\n    }\n    v42 = 0;\n    do\n    {\n      v43 = 2 * v42;\n      v44 = v42;\n      v45 = (unsigned int)(v43 + 1);\n      ++v42;\n      v46 = (float)v44;\n      v47 = this->m_pTexCoords;\n      v48 = (float)(v46 + this->m_fRepeatTime) * this->m_fRepeatSpeed;\n      v47[v43].u = 0.0;\n      v47[v43].v = v48;\n      v49 = this->m_pTexCoords;\n      v49[v45].u = 1.0;\n      v49[v45].v = v48;\n      v50 = this->m_uNuPoints;\n    }\n    while ( v42 < v50 );\nLABEL_51:\n    this->m_uPreviousNuPoints = v50;\n  }\n}", "assembly": "; \n; cocos2d::CCMotionStreak::update from 0x18005d210 to 0x18005d885 (1653 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800f9458\n; > <???> @ 0x18013924c\n; > <???> @ 0x1801392c0\n; > <???> @ 0x1801392d0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3150\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\nmov     rax, rsp                                                       ; +0x0, 0x18005d210\npush    rdi                                                            ; +0x3, 0x18005d213\nsub     rsp, 90h                                                       ; +0x4, 0x18005d214\ncmp     byte ptr [rcx+161h], 0                                         ; +0xb, 0x18005d21b\nmov     rdi, rcx                                                       ; +0x12, 0x18005d222\nmovaps  xmmword ptr [rax-48h], xmm6                                    ; +0x15, 0x18005d225\nmovaps  xmm6, xmm1                                                     ; +0x19, 0x18005d229\njz      loc_18005D877                                                  ; +0x1c, 0x18005d22c\nmulss   xmm6, dword ptr [rcx+17Ch]                                     ; +0x22, 0x18005d232\nmov     [rax-18h], rbp                                                 ; +0x2a, 0x18005d23a\nmov     [rax-20h], rsi                                                 ; +0x2e, 0x18005d23e\nmov     [rax-28h], r12                                                 ; +0x32, 0x18005d242\nxor     r12d, r12d                                                     ; +0x36, 0x18005d246\nmovaps  xmmword ptr [rax-58h], xmm7                                    ; +0x39, 0x18005d249\nmov     ebp, r12d                                                      ; +0x3d, 0x18005d24d\nmov     [rax-10h], rbx                                                 ; +0x40, 0x18005d250\nmov     esi, r12d                                                      ; +0x44, 0x18005d254\nmov     [rax-30h], r14                                                 ; +0x47, 0x18005d257\nxorps   xmm7, xmm7                                                     ; +0x4b, 0x18005d25b\nmov     eax, [rcx+188h]                                                ; +0x4e, 0x18005d25e\ntest    eax, eax                                                       ; +0x54, 0x18005d264\njz      loc_18005D408                                                  ; +0x56, 0x18005d266\nmovaps  [rsp+98h+var_68], xmm8                                         ; +0x5c, 0x18005d26c\nlea     rbx, [rcx+1A8h]                                                ; +0x62, 0x18005d272\nmovss   xmm8, cs:dword_1800E5838                                       ; +0x69, 0x18005d279\nmov     [rsp+98h+var_38], r15                                          ; +0x72, 0x18005d282\nnop     word ptr [rax+rax+00000000h]                                   ; +0x77, 0x18005d287\nmov     rax, [rdi+198h]                                                ; +0x80, 0x18005d290\nmov     ecx, esi                                                       ; +0x87, 0x18005d297\nmovss   xmm0, dword ptr [rax+rcx*4]                                    ; +0x89, 0x18005d299\nsubss   xmm0, xmm6                                                     ; +0x8e, 0x18005d29e\nmovss   dword ptr [rax+rcx*4], xmm0                                    ; +0x92, 0x18005d2a2\nmov     rax, [rdi+198h]                                                ; +0x97, 0x18005d2a7\nmovss   xmm1, dword ptr [rax+rcx*4]                                    ; +0x9e, 0x18005d2ae\ncomiss  xmm7, xmm1                                                     ; +0xa3, 0x18005d2b3\njb      short loc_18005D2C6                                            ; +0xa6, 0x18005d2b6\ninc     ebp                                                            ; +0xa8, 0x18005d2b8\nlea     rbx, [rdi+1A8h]                                                ; +0xaa, 0x18005d2ba\njmp     loc_18005D3ED                                                  ; +0xb1, 0x18005d2c1\nmov     r14d, esi                                                      ; +0xb6, 0x18005d2c6\nsub     r14d, ebp                                                      ; +0xb9, 0x18005d2c9\nlea     r15, ds:0[r14*4]                                               ; +0xbc, 0x18005d2cc\ntest    ebp, ebp                                                       ; +0xc4, 0x18005d2d4\njz      loc_18005D3AE                                                  ; +0xc6, 0x18005d2d6\nmovss   dword ptr [rax+r15], xmm1                                      ; +0xcc, 0x18005d2dc\nmov     rax, [rdi+190h]                                                ; +0xd2, 0x18005d2e2\nlea     rdx, [rax+rcx*8]                                               ; +0xd9, 0x18005d2e9\nlea     rcx, [rax+r14*8]                                               ; +0xdd, 0x18005d2ed\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xe1, 0x18005d2f1\nmov     rdx, [rdi+1A0h]                                                ; +0xe6, 0x18005d2f6\nlea     r9d, [rsi+rsi]                                                 ; +0xed, 0x18005d2fd\nlea     r10d, [r14+r14]                                                ; +0xf1, 0x18005d301\nlea     eax, [r10+1]                                                   ; +0xf5, 0x18005d305\nmovsd   xmm0, qword ptr [rdx+r9*8]                                     ; +0xf9, 0x18005d309\nmovsd   qword ptr [rdx+r10*8], xmm0                                    ; +0xff, 0x18005d30f\nlea     r10d, ds:0[r10*4]                                              ; +0x105, 0x18005d315\nmov     r8, [rdi+1A0h]                                                 ; +0x10d, 0x18005d31d\nlea     ecx, [r10+1]                                                   ; +0x114, 0x18005d324\nlea     edx, [r9+1]                                                    ; +0x118, 0x18005d328\nlea     r9d, ds:0[r9*4]                                                ; +0x11c, 0x18005d32c\nmovsd   xmm0, qword ptr [r8+rdx*8]                                     ; +0x124, 0x18005d334\nmovsd   qword ptr [r8+rax*8], xmm0                                     ; +0x12a, 0x18005d33a\nmov     rdx, [rbx]                                                     ; +0x130, 0x18005d340\nmovzx   eax, byte ptr [r9+rdx]                                         ; +0x133, 0x18005d343\nmov     [r10+rdx], al                                                  ; +0x138, 0x18005d348\nlea     eax, [r9+1]                                                    ; +0x13c, 0x18005d34c\nmov     r8, [rbx]                                                      ; +0x140, 0x18005d350\nmovzx   eax, byte ptr [rax+r8]                                         ; +0x143, 0x18005d353\nmov     [rcx+r8], al                                                   ; +0x148, 0x18005d358\nlea     eax, [r9+2]                                                    ; +0x14c, 0x18005d35c\nmov     r8, [rbx]                                                      ; +0x150, 0x18005d360\nlea     ecx, [r10+2]                                                   ; +0x153, 0x18005d363\nmovzx   eax, byte ptr [rax+r8]                                         ; +0x157, 0x18005d367\nmov     [rcx+r8], al                                                   ; +0x15c, 0x18005d36c\nlea     eax, [r9+4]                                                    ; +0x160, 0x18005d370\nmov     r8, [rbx]                                                      ; +0x164, 0x18005d374\nlea     ecx, [r10+4]                                                   ; +0x167, 0x18005d377\nmovzx   eax, byte ptr [rax+r8]                                         ; +0x16b, 0x18005d37b\nmov     [rcx+r8], al                                                   ; +0x170, 0x18005d380\nlea     eax, [r9+5]                                                    ; +0x174, 0x18005d384\nmov     r8, [rbx]                                                      ; +0x178, 0x18005d388\nlea     ecx, [r10+5]                                                   ; +0x17b, 0x18005d38b\nmovzx   eax, byte ptr [rax+r8]                                         ; +0x17f, 0x18005d38f\nmov     [rcx+r8], al                                                   ; +0x184, 0x18005d394\nlea     eax, [r9+6]                                                    ; +0x188, 0x18005d398\nmov     r8, [rbx]                                                      ; +0x18c, 0x18005d39c\nlea     ecx, [r10+6]                                                   ; +0x18f, 0x18005d39f\nmovzx   eax, byte ptr [rax+r8]                                         ; +0x193, 0x18005d3a3\nmov     [rcx+r8], al                                                   ; +0x198, 0x18005d3a8\njmp     short loc_18005D3B6                                            ; +0x19c, 0x18005d3ac\nlea     r10d, ds:0[r14*8]                                              ; +0x19e, 0x18005d3ae\ncmp     [rdi+1CCh], r12b                                               ; +0x1a6, 0x18005d3b6\njnz     short loc_18005D3D7                                            ; +0x1ad, 0x18005d3bd\nmov     rax, [rdi+198h]                                                ; +0x1af, 0x18005d3bf\nmovss   xmm0, dword ptr [rax+r15]                                      ; +0x1b6, 0x18005d3c6\nmulss   xmm0, xmm8                                                     ; +0x1bc, 0x18005d3cc\ncvttss2si edx, xmm0                                                    ; +0x1c1, 0x18005d3d1\njmp     short loc_18005D3D9                                            ; +0x1c5, 0x18005d3d5\nmov     dl, 0FFh; struct cocos2d::CCPoint *                            ; +0x1c7, 0x18005d3d7\nmov     rax, [rbx]                                                     ; +0x1c9, 0x18005d3d9\nlea     ecx, [r10+3]                                                   ; +0x1cc, 0x18005d3dc\nmov     [rcx+rax], dl                                                  ; +0x1d0, 0x18005d3e0\nlea     ecx, [r10+7]                                                   ; +0x1d3, 0x18005d3e3\nmov     rax, [rbx]                                                     ; +0x1d7, 0x18005d3e7\nmov     [rcx+rax], dl                                                  ; +0x1da, 0x18005d3ea\nmov     eax, [rdi+188h]                                                ; +0x1dd, 0x18005d3ed\ninc     esi                                                            ; +0x1e3, 0x18005d3f3\ncmp     esi, eax                                                       ; +0x1e5, 0x18005d3f5\njb      loc_18005D290                                                  ; +0x1e7, 0x18005d3f7\nmovaps  xmm8, [rsp+98h+var_68]                                         ; +0x1ed, 0x18005d3fd\nmov     r15, [rsp+98h+var_38]                                          ; +0x1f3, 0x18005d403\nsub     eax, ebp                                                       ; +0x1f8, 0x18005d408\nmov     [rdi+188h], eax                                                ; +0x1fa, 0x18005d40a\ncmp     eax, [rdi+184h]                                                ; +0x200, 0x18005d410\njnb     loc_18005D6E2                                                  ; +0x206, 0x18005d416\ncmp     [rdi+162h], r12b                                               ; +0x20c, 0x18005d41c\njz      loc_18005D6E2                                                  ; +0x213, 0x18005d423\ntest    eax, eax                                                       ; +0x219, 0x18005d429\njz      loc_18005D5EE                                                  ; +0x21b, 0x18005d42b\nlea     rdx, [rdi+1D0h]                                                ; +0x221, 0x18005d431\nlea     rcx, [rsp+98h+arg_0]                                           ; +0x228, 0x18005d438\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x230, 0x18005d440\nmov     edx, [rdi+188h]                                                ; +0x235, 0x18005d445\nmov     rbx, rax                                                       ; +0x23b, 0x18005d44b\nmov     rcx, [rdi+190h]                                                ; +0x23e, 0x18005d44e\ndec     edx                                                            ; +0x245, 0x18005d455\nlea     rdx, [rcx+rdx*8]                                               ; +0x247, 0x18005d457\nlea     rcx, [rsp+98h+arg_10]                                          ; +0x24b, 0x18005d45b\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x253, 0x18005d463\nmov     r8, rbx                                                        ; +0x258, 0x18005d468\nlea     rdx, [rsp+98h+arg_18]                                          ; +0x25b, 0x18005d46b\nmov     rcx, rax                                                       ; +0x263, 0x18005d473\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0x266, 0x18005d476\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x26b, 0x18005d47b\nmovss   xmm1, dword ptr [rax]                                          ; +0x270, 0x18005d480\nmov     eax, [rdi+188h]                                                ; +0x274, 0x18005d484\nmulss   xmm0, xmm0                                                     ; +0x27a, 0x18005d48a\nmulss   xmm1, xmm1                                                     ; +0x27e, 0x18005d48e\naddss   xmm1, xmm0                                                     ; +0x282, 0x18005d492\nmovss   xmm0, dword ptr [rdi+180h]                                     ; +0x286, 0x18005d496\ncomiss  xmm0, xmm1                                                     ; +0x28e, 0x18005d49e\nsetnbe  r14b                                                           ; +0x291, 0x18005d4a1\ncmp     eax, 1                                                         ; +0x295, 0x18005d4a5\njnz     short loc_18005D4B0                                            ; +0x298, 0x18005d4a8\nxor     dl, dl                                                         ; +0x29a, 0x18005d4aa\nmov     ecx, eax                                                       ; +0x29c, 0x18005d4ac\njmp     short loc_18005D52A                                            ; +0x29e, 0x18005d4ae\nlea     rdx, [rdi+1D0h]                                                ; +0x2a0, 0x18005d4b0\nlea     rcx, [rsp+98h+arg_0]                                           ; +0x2a7, 0x18005d4b7\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x2af, 0x18005d4bf\nmov     edx, [rdi+188h]                                                ; +0x2b4, 0x18005d4c4\nmov     rbx, rax                                                       ; +0x2ba, 0x18005d4ca\nmov     rcx, [rdi+190h]                                                ; +0x2bd, 0x18005d4cd\nsub     edx, 2                                                         ; +0x2c4, 0x18005d4d4\nlea     rdx, [rcx+rdx*8]                                               ; +0x2c7, 0x18005d4d7\nlea     rcx, [rsp+98h+arg_10]                                          ; +0x2cb, 0x18005d4db\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x2d3, 0x18005d4e3\nmov     r8, rbx                                                        ; +0x2d8, 0x18005d4e8\nlea     rdx, [rsp+98h+arg_18]                                          ; +0x2db, 0x18005d4eb\nmov     rcx, rax                                                       ; +0x2e3, 0x18005d4f3\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0x2e6, 0x18005d4f6\nmovss   xmm1, dword ptr [rdi+180h]                                     ; +0x2eb, 0x18005d4fb\naddss   xmm1, xmm1                                                     ; +0x2f3, 0x18005d503\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x2f7, 0x18005d507\nmovss   xmm2, dword ptr [rax]                                          ; +0x2fc, 0x18005d50c\nmov     eax, [rdi+188h]                                                ; +0x300, 0x18005d510\nmov     ecx, eax                                                       ; +0x306, 0x18005d516\nmulss   xmm2, xmm2                                                     ; +0x308, 0x18005d518\nmulss   xmm0, xmm0                                                     ; +0x30c, 0x18005d51c\naddss   xmm2, xmm0                                                     ; +0x310, 0x18005d520\ncomiss  xmm1, xmm2                                                     ; +0x314, 0x18005d524\nsetnbe  dl                                                             ; +0x317, 0x18005d527\ntest    r14b, r14b                                                     ; +0x31a, 0x18005d52a\njnz     loc_18005D6E4                                                  ; +0x31d, 0x18005d52d\ntest    dl, dl                                                         ; +0x323, 0x18005d533\njnz     loc_18005D6E4                                                  ; +0x325, 0x18005d535\ntest    eax, eax                                                       ; +0x32b, 0x18005d53b\njz      loc_18005D5EE                                                  ; +0x32d, 0x18005d53d\nmovss   xmm0, dword ptr [rdi+1C8h]                                     ; +0x333, 0x18005d543\nucomiss xmm0, xmm7                                                     ; +0x33b, 0x18005d54b\njp      short loc_18005D556                                            ; +0x33e, 0x18005d54e\njz      loc_18005D5EE                                                  ; +0x340, 0x18005d550\nlea     ecx, [rax-1]                                                   ; +0x346, 0x18005d556\nmov     rax, [rdi+190h]                                                ; +0x349, 0x18005d559\nlea     rdx, [rdi+1D0h]; struct cocos2d::CCPoint *                     ; +0x350, 0x18005d560\nlea     rcx, [rax+rcx*8]; this                                         ; +0x357, 0x18005d567\ncall    ?getDistance@CCPoint@cocos2d@@QEBAMAEBV12@@Z; cocos2d::CCPoint::getDistance(cocos2d::CCPoint const &) ; +0x35b, 0x18005d56b\ncomiss  xmm0, dword ptr [rdi+1C8h]                                     ; +0x360, 0x18005d570\njbe     short loc_18005D5EE                                            ; +0x367, 0x18005d577\nmov     ebx, r12d                                                      ; +0x369, 0x18005d579\ncmp     [rdi+188h], ebx                                                ; +0x36c, 0x18005d57c\njbe     short loc_18005D5C4                                            ; +0x372, 0x18005d582\nmov     rsi, r12                                                       ; +0x374, 0x18005d584\nnop     word ptr [rax+rax+00000000h]                                   ; +0x377, 0x18005d587\nmov     rax, [rdi+190h]                                                ; +0x380, 0x18005d590\nlea     rdx, [rdi+1D0h]                                                ; +0x387, 0x18005d597\nmovsxd  rcx, ebx                                                       ; +0x38e, 0x18005d59e\nlea     rcx, [rax+rcx*8]                                               ; +0x391, 0x18005d5a1\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x395, 0x18005d5a5\nmov     rax, [rdi+198h]                                                ; +0x39a, 0x18005d5aa\nlea     rsi, [rsi+4]                                                   ; +0x3a1, 0x18005d5b1\ninc     ebx                                                            ; +0x3a5, 0x18005d5b5\nmov     [rsi+rax-4], r12d                                              ; +0x3a7, 0x18005d5b7\ncmp     ebx, [rdi+188h]                                                ; +0x3ac, 0x18005d5bc\njb      short loc_18005D590                                            ; +0x3b2, 0x18005d5c2\nmov     rcx, [rdi+190h]                                                ; +0x3b4, 0x18005d5c4\nlea     rdx, [rdi+1D0h]                                                ; +0x3bb, 0x18005d5cb\nmov     dword ptr [rdi+188h], 1                                        ; +0x3c2, 0x18005d5d2\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x3cc, 0x18005d5dc\nmov     rax, [rdi+198h]                                                ; +0x3d1, 0x18005d5e1\nmov     dword ptr [rax], 3F800000h                                     ; +0x3d8, 0x18005d5e8\nmov     ecx, [rdi+188h]                                                ; +0x3de, 0x18005d5ee\nlea     rdx, [rdi+1D0h]                                                ; +0x3e4, 0x18005d5f4\nmov     rax, [rdi+190h]                                                ; +0x3eb, 0x18005d5fb\nlea     rcx, [rax+rcx*8]                                               ; +0x3f2, 0x18005d602\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x3f6, 0x18005d606\nmov     rax, [rdi+198h]                                                ; +0x3fb, 0x18005d60b\nmov     ecx, [rdi+188h]                                                ; +0x402, 0x18005d612\nmov     dword ptr [rax+rcx*4], 3F800000h                               ; +0x408, 0x18005d618\nmovzx   eax, word ptr [rdi+14Ah]                                       ; +0x40f, 0x18005d61f\nmov     r8d, [rdi+188h]                                                ; +0x416, 0x18005d626\nmov     rcx, [rdi+1A8h]                                                ; +0x41d, 0x18005d62d\nshl     r8d, 3                                                         ; +0x424, 0x18005d634\nmov     [rcx+r8], ax                                                   ; +0x428, 0x18005d638\nmovzx   eax, byte ptr [rdi+14Ch]                                       ; +0x42d, 0x18005d63d\nmov     [rcx+r8+2], al                                                 ; +0x434, 0x18005d644\nmovzx   eax, word ptr [rdi+14Ah]                                       ; +0x439, 0x18005d649\nmov     rcx, [rdi+1A8h]                                                ; +0x440, 0x18005d650\nmov     [rcx+r8+4], ax                                                 ; +0x447, 0x18005d657\nmovzx   eax, byte ptr [rdi+14Ch]                                       ; +0x44d, 0x18005d65d\nmov     [rcx+r8+6], al                                                 ; +0x454, 0x18005d664\nlea     ecx, [r8+3]                                                    ; +0x459, 0x18005d669\nmov     rax, [rdi+1A8h]                                                ; +0x45d, 0x18005d66d\nmov     byte ptr [rcx+rax], 0FFh                                       ; +0x464, 0x18005d674\nlea     ecx, [r8+7]                                                    ; +0x468, 0x18005d678\nmov     rax, [rdi+1A8h]                                                ; +0x46c, 0x18005d67c\nmov     byte ptr [rcx+rax], 0FFh                                       ; +0x473, 0x18005d683\nmov     r9d, [rdi+188h]                                                ; +0x477, 0x18005d687\ntest    r9d, r9d                                                       ; +0x47e, 0x18005d68e\njz      short loc_18005D6D2                                            ; +0x481, 0x18005d691\ncmp     [rdi+160h], r12b                                               ; +0x483, 0x18005d693\njz      short loc_18005D6D2                                            ; +0x48a, 0x18005d69a\nmov     r8, [rdi+1A0h]                                                 ; +0x48c, 0x18005d69c\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x493, 0x18005d6a3\nmov     rcx, [rdi+190h]; this                                          ; +0x49b, 0x18005d6ab\ncmp     r9d, 1                                                         ; +0x4a2, 0x18005d6b2\njbe     short loc_18005D6C2                                            ; +0x4a6, 0x18005d6b6\nmov     [rsp+98h+var_78], 1                                            ; +0x4a8, 0x18005d6b8\njmp     short loc_18005D6CD                                            ; +0x4b0, 0x18005d6c0\nmov     [rsp+98h+var_78], 2; float                                     ; +0x4b2, 0x18005d6c2\nxor     r9d, r9d; struct cocos2d::_ccVertex2F *                        ; +0x4ba, 0x18005d6ca\ncall    ?ccVertexLineToPolygon@cocos2d@@YAXPEAVCCPoint@1@MPEAU_ccVertex2F@1@II@Z; cocos2d::ccVertexLineToPolygon(cocos2d::CCPoint *,float,cocos2d::_ccVertex2F *,uint,uint) ; +0x4bd, 0x18005d6cd\nmov     ecx, [rdi+188h]                                                ; +0x4c2, 0x18005d6d2\ninc     ecx                                                            ; +0x4c8, 0x18005d6d8\nmov     [rdi+188h], ecx                                                ; +0x4ca, 0x18005d6da\njmp     short loc_18005D6E4                                            ; +0x4d0, 0x18005d6e0\nmov     ecx, eax                                                       ; +0x4d2, 0x18005d6e2\nmovaps  xmm7, [rsp+98h+var_58]                                         ; +0x4d4, 0x18005d6e4\nmov     r14, [rsp+98h+var_30]                                          ; +0x4d9, 0x18005d6e9\nmov     rsi, [rsp+98h+var_20]                                          ; +0x4de, 0x18005d6ee\nmov     rbx, [rsp+98h+var_10]                                          ; +0x4e3, 0x18005d6f3\ncmp     [rdi+160h], r12b                                               ; +0x4eb, 0x18005d6fb\njnz     short loc_18005D72C                                            ; +0x4f2, 0x18005d702\nmov     r8, [rdi+1A0h]                                                 ; +0x4f4, 0x18005d704\nxor     r9d, r9d; struct cocos2d::_ccVertex2F *                        ; +0x4fb, 0x18005d70b\nmovss   xmm1, dword ptr [rdi+178h]                                     ; +0x4fe, 0x18005d70e\nmov     [rsp+98h+var_78], ecx; float                                   ; +0x506, 0x18005d716\nmov     rcx, [rdi+190h]; this                                          ; +0x50a, 0x18005d71a\ncall    ?ccVertexLineToPolygon@cocos2d@@YAXPEAVCCPoint@1@MPEAU_ccVertex2F@1@II@Z; cocos2d::ccVertexLineToPolygon(cocos2d::CCPoint *,float,cocos2d::_ccVertex2F *,uint,uint) ; +0x511, 0x18005d721\nmov     ecx, [rdi+188h]                                                ; +0x516, 0x18005d726\nmovzx   r8d, byte ptr [rdi+1B8h]                                       ; +0x51c, 0x18005d72c\ntest    r8b, r8b                                                       ; +0x524, 0x18005d734\njz      short loc_18005D757                                            ; +0x527, 0x18005d737\ntest    ebp, ebp                                                       ; +0x529, 0x18005d739\njz      short loc_18005D757                                            ; +0x52b, 0x18005d73b\nxorps   xmm0, xmm0                                                     ; +0x52d, 0x18005d73d\nmov     eax, ebp                                                       ; +0x530, 0x18005d740\ncvtsi2ss xmm0, rax                                                     ; +0x532, 0x18005d742\naddss   xmm0, dword ptr [rdi+1C0h]                                     ; +0x537, 0x18005d747\nmovss   dword ptr [rdi+1C0h], xmm0                                     ; +0x53f, 0x18005d74f\nmov     rbp, [rsp+98h+var_18]                                          ; +0x547, 0x18005d757\nmov     [rdi+1C4h], r12b                                               ; +0x54f, 0x18005d75f\ntest    ecx, ecx                                                       ; +0x556, 0x18005d766\njz      loc_18005D872                                                  ; +0x558, 0x18005d768\nlea     rdx, [rdi+18Ch]                                                ; +0x55e, 0x18005d76e\ncmp     [rdx], ecx                                                     ; +0x565, 0x18005d775\njnz     short loc_18005D784                                            ; +0x567, 0x18005d777\ntest    r8b, r8b                                                       ; +0x569, 0x18005d779\njz      loc_18005D872                                                  ; +0x56c, 0x18005d77c\njmp     short loc_18005D789                                            ; +0x572, 0x18005d782\ntest    r8b, r8b                                                       ; +0x574, 0x18005d784\njz      short loc_18005D7F7                                            ; +0x577, 0x18005d787\nmov     r8d, r12d                                                      ; +0x579, 0x18005d789\ntest    ecx, ecx                                                       ; +0x57c, 0x18005d78c\njz      loc_18005D870                                                  ; +0x57e, 0x18005d78e\nnop     dword ptr [rax+00h]                                            ; +0x584, 0x18005d794\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x588, 0x18005d798\nlea     edx, [r8+r8]                                                   ; +0x590, 0x18005d7a0\nmov     eax, r8d                                                       ; +0x594, 0x18005d7a4\nxorps   xmm0, xmm0                                                     ; +0x597, 0x18005d7a7\nlea     ecx, [rdx+1]                                                   ; +0x59a, 0x18005d7aa\ninc     r8d                                                            ; +0x59d, 0x18005d7ad\ncvtsi2ss xmm0, rax                                                     ; +0x5a0, 0x18005d7b0\nmov     rax, [rdi+1B0h]                                                ; +0x5a5, 0x18005d7b5\naddss   xmm0, dword ptr [rdi+1C0h]                                     ; +0x5ac, 0x18005d7bc\nmulss   xmm0, dword ptr [rdi+1BCh]                                     ; +0x5b4, 0x18005d7c4\nmov     [rax+rdx*8], r12d                                              ; +0x5bc, 0x18005d7cc\nmovss   dword ptr [rax+rdx*8+4], xmm0                                  ; +0x5c0, 0x18005d7d0\nmov     rax, [rdi+1B0h]                                                ; +0x5c6, 0x18005d7d6\nmov     dword ptr [rax+rcx*8], 3F800000h                               ; +0x5cd, 0x18005d7dd\nmovss   dword ptr [rax+rcx*8+4], xmm0                                  ; +0x5d4, 0x18005d7e4\nmov     ecx, [rdi+188h]                                                ; +0x5da, 0x18005d7ea\ncmp     r8d, ecx                                                       ; +0x5e0, 0x18005d7f0\njb      short loc_18005D7A0                                            ; +0x5e3, 0x18005d7f3\njmp     short loc_18005D869                                            ; +0x5e5, 0x18005d7f5\nmovss   xmm1, cs:flt_1800E61A8                                         ; +0x5e7, 0x18005d7f7\nxorps   xmm0, xmm0                                                     ; +0x5ef, 0x18005d7ff\nmov     eax, ecx                                                       ; +0x5f2, 0x18005d802\nmov     r8d, r12d                                                      ; +0x5f4, 0x18005d804\ncvtsi2ss xmm0, rax                                                     ; +0x5f7, 0x18005d807\ndivss   xmm1, xmm0                                                     ; +0x5fc, 0x18005d80c\ntest    ecx, ecx                                                       ; +0x600, 0x18005d810\njz      short loc_18005D870                                            ; +0x602, 0x18005d812\nnop     dword ptr [rax+00h]                                            ; +0x604, 0x18005d814\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x608, 0x18005d818\nlea     edx, [r8+r8]                                                   ; +0x610, 0x18005d820\nmov     eax, r8d                                                       ; +0x614, 0x18005d824\nlea     ecx, [rdx+1]                                                   ; +0x617, 0x18005d827\nxorps   xmm0, xmm0                                                     ; +0x61a, 0x18005d82a\ninc     r8d                                                            ; +0x61d, 0x18005d82d\ncvtsi2ss xmm0, rax                                                     ; +0x620, 0x18005d830\nmov     rax, [rdi+1B0h]                                                ; +0x625, 0x18005d835\nmov     [rax+rdx*8], r12d                                              ; +0x62c, 0x18005d83c\nmulss   xmm0, xmm1                                                     ; +0x630, 0x18005d840\nmovss   dword ptr [rax+rdx*8+4], xmm0                                  ; +0x634, 0x18005d844\nmov     rax, [rdi+1B0h]                                                ; +0x63a, 0x18005d84a\nmov     dword ptr [rax+rcx*8], 3F800000h                               ; +0x641, 0x18005d851\nmovss   dword ptr [rax+rcx*8+4], xmm0                                  ; +0x648, 0x18005d858\nmov     ecx, [rdi+188h]                                                ; +0x64e, 0x18005d85e\ncmp     r8d, ecx                                                       ; +0x654, 0x18005d864\njb      short loc_18005D820                                            ; +0x657, 0x18005d867\nlea     rdx, [rdi+18Ch]                                                ; +0x659, 0x18005d869\nmov     [rdx], ecx                                                     ; +0x660, 0x18005d870\nmov     r12, [rsp+98h+var_28]                                          ; +0x662, 0x18005d872\nmovaps  xmm6, [rsp+98h+var_48]                                         ; +0x667, 0x18005d877\nadd     rsp, 90h                                                       ; +0x66c, 0x18005d87c\npop     rdi                                                            ; +0x673, 0x18005d883\nretn                                                                   ; +0x674, 0x18005d884", "xrefs": ["<???> @ 0x1800f9458", "<???> @ 0x18013924c", "<???> @ 0x1801392c0", "<???> @ 0x1801392d0", "<???> @ 0x1801438a8", "<???> @ 0x1801b3150"], "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"}