{"type": "func", "start": 5372642656, "end": 5372643075, "name": "HardStreak::appendQuad", "pseudocode": "// \n// HardStreak::appendQuad from 0x1403c0560 to 0x1403c0703 (419 bytes)\n// \n// 2 xrefs:\n// > HardStreak::updateStroke @ 0x1403c04b3\n// > <???> @ 0x140924008\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__int64 __fastcall HardStreak::appendQuad(__int64 a1, unsigned int *a2, __m128 *a3)\n{\n  unsigned int v5; // ecx\n  int v7; // eax\n  __int64 v8; // rax\n  void *v9; // rcx\n  unsigned int v10; // xmm4_4\n  unsigned int v11; // xmm3_4\n  unsigned int v12; // xmm1_4\n  unsigned int v13; // xmm0_4\n  unsigned int v14; // xmm2_4\n  int v15; // r8d\n  __int64 v16; // rcx\n  __int64 v17; // rdx\n  unsigned int v18; // xmm0_4\n  unsigned int v19; // xmm1_4\n  unsigned int v20; // xmm2_4\n  unsigned int v21; // xmm3_4\n  unsigned int v22; // xmm4_4\n  __int64 result; // rax\n\n  v5 = *(_DWORD *)(a1 + 352);\n  if ( *(_DWORD *)(a1 + 356) + 6 > v5 )\n  {\n    v7 = 6;\n    if ( v5 > 6 )\n      v7 = v5;\n    v8 = v5 + v7;\n    v9 = *(void **)(a1 + 360);\n    *(_DWORD *)(a1 + 352) = v8;\n    *(_QWORD *)(a1 + 360) = realloc(v9, 20 * v8);\n  }\n  v10 = a2[4];\n  v11 = a2[5];\n  v12 = a2[2];\n  v13 = a2[1];\n  v14 = a2[3];\n  v15 = (unsigned __int8)(int)(float)(COERCE_FLOAT(*a3) * 255.0)\n      | (((unsigned __int8)(int)(float)(_mm_shuffle_ps(*a3, *a3, 85).m128_f32[0] * 255.0)\n        | (((unsigned __int8)(int)(float)(_mm_shuffle_ps(*a3, *a3, 170).m128_f32[0] * 255.0)\n          | ((unsigned __int8)(int)(float)(_mm_shuffle_ps(*a3, *a3, 255).m128_f32[0] * 255.0) << 8)) << 8)) << 8);\n  v16 = *(_QWORD *)(a1 + 360);\n  v17 = 5LL * *(int *)(a1 + 356);\n  *(_DWORD *)(v16 + 4 * v17) = *a2;\n  *(_DWORD *)(v16 + 4 * v17 + 4) = v13;\n  *(_DWORD *)(v16 + 4 * v17 + 8) = v15;\n  *(_QWORD *)(v16 + 4 * v17 + 12) = 0;\n  *(_DWORD *)(v16 + 4 * v17 + 20) = v12;\n  *(_DWORD *)(v16 + 4 * v17 + 24) = v14;\n  *(_DWORD *)(v16 + 4 * v17 + 28) = v15;\n  *(_QWORD *)(v16 + 4 * v17 + 32) = 0;\n  *(_DWORD *)(v16 + 4 * v17 + 40) = v10;\n  *(_DWORD *)(v16 + 4 * v17 + 44) = v11;\n  *(_DWORD *)(v16 + 4 * v17 + 48) = v15;\n  *(_QWORD *)(v16 + 4 * v17 + 52) = 0;\n  v18 = a2[1];\n  v19 = a2[4];\n  v20 = a2[5];\n  v21 = a2[6];\n  v22 = a2[7];\n  result = *a2;\n  *(_DWORD *)(v16 + 4 * v17 + 60) = result;\n  *(_DWORD *)(v16 + 4 * v17 + 64) = v18;\n  *(_DWORD *)(v16 + 4 * v17 + 68) = v15;\n  *(_QWORD *)(v16 + 4 * v17 + 72) = 0;\n  *(_DWORD *)(v16 + 4 * v17 + 80) = v19;\n  *(_DWORD *)(v16 + 4 * v17 + 84) = v20;\n  *(_DWORD *)(v16 + 4 * v17 + 88) = v15;\n  *(_QWORD *)(v16 + 4 * v17 + 92) = 0;\n  *(_DWORD *)(v16 + 4 * v17 + 100) = v21;\n  *(_DWORD *)(v16 + 4 * v17 + 104) = v22;\n  *(_DWORD *)(v16 + 4 * v17 + 108) = v15;\n  *(_QWORD *)(v16 + 4 * v17 + 112) = 0;\n  *(_DWORD *)(a1 + 356) += 6;\n  *(_BYTE *)(a1 + 376) = 1;\n  return result;\n}", "assembly": "; \n; HardStreak::appendQuad from 0x1403c0560 to 0x1403c0703 (419 bytes)\n; \n; 2 xrefs:\n; > HardStreak::updateStroke @ 0x1403c04b3\n; > <???> @ 0x140924008\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_0], rbx                                               ; +0x0, 0x1403c0560\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1403c0565\npush    rdi                                                            ; +0xa, 0x1403c056a\nsub     rsp, 20h                                                       ; +0xb, 0x1403c056b\nmov     rbx, rcx                                                       ; +0xf, 0x1403c056f\nmov     rsi, r8                                                        ; +0x12, 0x1403c0572\nmov     ecx, [rcx+160h]                                                ; +0x15, 0x1403c0575\nmov     rdi, rdx                                                       ; +0x1b, 0x1403c057b\nmov     eax, [rbx+164h]                                                ; +0x1e, 0x1403c057e\nadd     eax, 6                                                         ; +0x24, 0x1403c0584\ncmp     eax, ecx                                                       ; +0x27, 0x1403c0587\njbe     short loc_1403C05B9                                            ; +0x29, 0x1403c0589\nmov     eax, 6                                                         ; +0x2b, 0x1403c058b\ncmp     ecx, eax                                                       ; +0x30, 0x1403c0590\ncmova   eax, ecx                                                       ; +0x32, 0x1403c0592\nadd     eax, ecx                                                       ; +0x35, 0x1403c0595\nmov     rcx, [rbx+168h]; Block                                         ; +0x37, 0x1403c0597\nmov     [rbx+160h], eax                                                ; +0x3e, 0x1403c059e\nlea     rdx, [rax+rax*4]                                               ; +0x44, 0x1403c05a4\nshl     rdx, 2; Size                                                   ; +0x48, 0x1403c05a8\ncall    cs:realloc                                                     ; +0x4c, 0x1403c05ac\nmov     [rbx+168h], rax                                                ; +0x52, 0x1403c05b2\nmovups  xmm2, xmmword ptr [rsi]                                        ; +0x59, 0x1403c05b9\nxor     r9d, r9d                                                       ; +0x5c, 0x1403c05bc\nmovss   xmm1, cs:dword_140835964                                       ; +0x5f, 0x1403c05bf\nmovss   xmm4, dword ptr [rdi+10h]                                      ; +0x67, 0x1403c05c7\nmovaps  xmm0, xmm2                                                     ; +0x6c, 0x1403c05cc\nmovss   xmm3, dword ptr [rdi+14h]                                      ; +0x6f, 0x1403c05cf\nshufps  xmm0, xmm2, 0FFh                                               ; +0x74, 0x1403c05d4\nmulss   xmm0, xmm1                                                     ; +0x78, 0x1403c05d8\ncvttss2si eax, xmm0                                                    ; +0x7c, 0x1403c05dc\nmovaps  xmm0, xmm2                                                     ; +0x80, 0x1403c05e0\nshufps  xmm0, xmm2, 0AAh                                               ; +0x83, 0x1403c05e3\nmulss   xmm0, xmm1                                                     ; +0x87, 0x1403c05e7\nmovzx   r8d, al                                                        ; +0x8b, 0x1403c05eb\nshl     r8d, 8                                                         ; +0x8f, 0x1403c05ef\ncvttss2si eax, xmm0                                                    ; +0x93, 0x1403c05f3\nmovaps  xmm0, xmm2                                                     ; +0x97, 0x1403c05f7\nmovzx   ecx, al                                                        ; +0x9a, 0x1403c05fa\nor      r8d, ecx                                                       ; +0x9d, 0x1403c05fd\nshufps  xmm0, xmm2, 55h ; 'U'                                          ; +0xa0, 0x1403c0600\nmulss   xmm0, xmm1                                                     ; +0xa4, 0x1403c0604\nshl     r8d, 8                                                         ; +0xa8, 0x1403c0608\nmulss   xmm2, xmm1                                                     ; +0xac, 0x1403c060c\nmovss   xmm1, dword ptr [rdi+8]                                        ; +0xb0, 0x1403c0610\ncvttss2si eax, xmm0                                                    ; +0xb5, 0x1403c0615\nmovss   xmm0, dword ptr [rdi+4]                                        ; +0xb9, 0x1403c0619\nmovzx   ecx, al                                                        ; +0xbe, 0x1403c061e\nor      r8d, ecx                                                       ; +0xc1, 0x1403c0621\ncvttss2si eax, xmm2                                                    ; +0xc4, 0x1403c0624\nshl     r8d, 8                                                         ; +0xc8, 0x1403c0628\nmovss   xmm2, dword ptr [rdi+0Ch]                                      ; +0xcc, 0x1403c062c\nmovzx   ecx, al                                                        ; +0xd1, 0x1403c0631\nmovsxd  rax, dword ptr [rbx+164h]                                      ; +0xd4, 0x1403c0634\nor      r8d, ecx                                                       ; +0xdb, 0x1403c063b\nmov     rcx, [rbx+168h]                                                ; +0xde, 0x1403c063e\nlea     rdx, [rax+rax*4]                                               ; +0xe5, 0x1403c0645\nmov     eax, [rdi]                                                     ; +0xe9, 0x1403c0649\nmov     [rcx+rdx*4], eax                                               ; +0xeb, 0x1403c064b\nmovss   dword ptr [rcx+rdx*4+4], xmm0                                  ; +0xee, 0x1403c064e\nmov     [rcx+rdx*4+8], r8d                                             ; +0xf4, 0x1403c0654\nmov     [rcx+rdx*4+0Ch], r9                                            ; +0xf9, 0x1403c0659\nmovss   dword ptr [rcx+rdx*4+14h], xmm1                                ; +0xfe, 0x1403c065e\nmovss   dword ptr [rcx+rdx*4+18h], xmm2                                ; +0x104, 0x1403c0664\nmov     [rcx+rdx*4+1Ch], r8d                                           ; +0x10a, 0x1403c066a\nmov     [rcx+rdx*4+20h], r9                                            ; +0x10f, 0x1403c066f\nmovss   dword ptr [rcx+rdx*4+28h], xmm4                                ; +0x114, 0x1403c0674\nmovss   dword ptr [rcx+rdx*4+2Ch], xmm3                                ; +0x11a, 0x1403c067a\nmov     [rcx+rdx*4+30h], r8d                                           ; +0x120, 0x1403c0680\nmov     [rcx+rdx*4+34h], r9                                            ; +0x125, 0x1403c0685\nmovss   xmm0, dword ptr [rdi+4]                                        ; +0x12a, 0x1403c068a\nmovss   xmm1, dword ptr [rdi+10h]                                      ; +0x12f, 0x1403c068f\nmovss   xmm2, dword ptr [rdi+14h]                                      ; +0x134, 0x1403c0694\nmovss   xmm3, dword ptr [rdi+18h]                                      ; +0x139, 0x1403c0699\nmovss   xmm4, dword ptr [rdi+1Ch]                                      ; +0x13e, 0x1403c069e\nmov     eax, [rdi]                                                     ; +0x143, 0x1403c06a3\nmov     [rcx+rdx*4+3Ch], eax                                           ; +0x145, 0x1403c06a5\nmovss   dword ptr [rcx+rdx*4+40h], xmm0                                ; +0x149, 0x1403c06a9\nmov     [rcx+rdx*4+44h], r8d                                           ; +0x14f, 0x1403c06af\nmov     [rcx+rdx*4+48h], r9                                            ; +0x154, 0x1403c06b4\nmovss   dword ptr [rcx+rdx*4+50h], xmm1                                ; +0x159, 0x1403c06b9\nmovss   dword ptr [rcx+rdx*4+54h], xmm2                                ; +0x15f, 0x1403c06bf\nmov     [rcx+rdx*4+58h], r8d                                           ; +0x165, 0x1403c06c5\nmov     [rcx+rdx*4+5Ch], r9                                            ; +0x16a, 0x1403c06ca\nmovss   dword ptr [rcx+rdx*4+64h], xmm3                                ; +0x16f, 0x1403c06cf\nmovss   dword ptr [rcx+rdx*4+68h], xmm4                                ; +0x175, 0x1403c06d5\nmov     [rcx+rdx*4+6Ch], r8d                                           ; +0x17b, 0x1403c06db\nmov     [rcx+rdx*4+70h], r9                                            ; +0x180, 0x1403c06e0\nadd     dword ptr [rbx+164h], 6                                        ; +0x185, 0x1403c06e5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x18c, 0x1403c06ec\nmov     byte ptr [rbx+178h], 1                                         ; +0x191, 0x1403c06f1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x198, 0x1403c06f8\nadd     rsp, 20h                                                       ; +0x19d, 0x1403c06fd\npop     rdi                                                            ; +0x1a1, 0x1403c0701\nretn                                                                   ; +0x1a2, 0x1403c0702", "xrefs": ["HardStreak::updateStroke @ 0x1403c04b3", "<???> @ 0x140924008"], "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"}