	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_packet
_prepare_packet:                        ## @prepare_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_EC_HOST_REQUEST_VERSION@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	callq	_BUG_ON
	movslq	(%r14), %rax
	addq	$40, %rax
	movslq	8(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	seta	%dil
	callq	_BUG_ON
	movq	16(%rbx), %r15
	movq	(%r12), %rax
	movq	%rax, 32(%r15)
	movl	20(%r14), %ecx
	movl	%ecx, 28(%r15)
	movl	16(%r14), %ecx
	movl	%ecx, 24(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movl	(%r14), %edx
	movl	%edx, (%r15)
	movdqu	224(%r15), %xmm0
	movdqu	288(%r15), %xmm1
	movdqu	160(%r15), %xmm2
	paddq	%xmm1, %xmm2
	movdqu	192(%r15), %xmm1
	movdqu	256(%r15), %xmm3
	movdqu	128(%r15), %xmm4
	paddq	%xmm3, %xmm4
	movdqu	240(%r15), %xmm3
	movdqu	304(%r15), %xmm5
	movdqu	176(%r15), %xmm6
	paddq	%xmm5, %xmm6
	movdqu	208(%r15), %xmm5
	movdqu	64(%r15), %xmm7
	paddq	%xmm1, %xmm7
	paddq	%xmm4, %xmm7
	movdqu	80(%r15), %xmm1
	paddq	%xmm5, %xmm1
	movdqu	96(%r15), %xmm4
	paddq	%xmm0, %xmm4
	paddq	%xmm2, %xmm4
	paddq	%xmm7, %xmm4
	movdqu	112(%r15), %xmm0
	paddq	%xmm3, %xmm0
	paddq	%xmm6, %xmm0
	movdqu	272(%r15), %xmm2
	movdqu	144(%r15), %xmm3
	paddq	%xmm2, %xmm3
	paddq	%xmm1, %xmm3
	paddq	%xmm0, %xmm3
	paddq	%xmm4, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	paddq	%xmm3, %xmm0
	movq	%xmm0, %rbx
	addq	56(%r15), %rbx
	addq	48(%r15), %rbx
	addq	40(%r15), %rbx
	addq	24(%r15), %rbx
	addq	(%r15), %rbx
	addq	%rax, %rbx
	leaq	320(%r15), %rdi
	movq	8(%r14), %rsi
	callq	_memcpy
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	8(%r14), %rcx
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %edx
	andl	$-4, %edx
	movq	%rbx, %xmm0
	leaq	-4(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %ebx
	andl	$3, %ebx
	cmpq	$12, %rdi
	jae	LBB0_5
## %bb.4:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rcx,%rdi,8), %xmm1
	movdqu	48(%rcx,%rdi,8), %xmm3
	movdqu	64(%rcx,%rdi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rcx,%rdi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rcx,%rdi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rcx,%rdi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rdi
	addq	$-4, %rsi
	jne	LBB0_6
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	leaq	(%rcx,%rdi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rbx
	jne	LBB0_9
LBB0_10:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rbx
	cmpq	%rax, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rcx,%rdx,8), %rbx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	negq	%rbx
	movq	%rbx, 8(%r15)
	addl	$40, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_HOST_REQUEST_VERSION,8,3    ## @EC_HOST_REQUEST_VERSION
	.no_dead_strip	_prepare_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_packet
_prepare_packet:                        ; @prepare_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _EC_HOST_REQUEST_VERSION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EC_HOST_REQUEST_VERSION@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	ldrsw	x8, [x19]
	add	x8, x8, #40
	ldrsw	x9, [x20, #8]
	cmp	x8, x9
	cset	w0, hi
	bl	_BUG_ON
	ldr	x20, [x20, #16]
	ldr	x8, [x21]
	str	x8, [x20, #32]
	ldr	d0, [x19, #16]
	str	d0, [x20, #24]
	stp	xzr, xzr, [x20, #8]
	ldr	w2, [x19]
	str	w2, [x20]
	ldr	x9, [x20]
	ldr	x10, [x20, #24]
	add	x9, x10, x9
	add	x8, x8, x9
	ldp	x9, x10, [x20, #40]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #56]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #72]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #88]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #104]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #120]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #136]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #152]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #168]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #184]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #200]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #216]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #232]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #248]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #264]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #280]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [x20, #296]
	add	x8, x9, x8
	add	x8, x10, x8
	ldr	x9, [x20, #312]
	add	x21, x9, x8
	add	x0, x20, #320
	ldr	x1, [x19, #8]
	bl	_memcpy
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	w8, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x21
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.2d	v1, v4, v1
	add.2d	v0, v5, v0
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	add.2d	v0, v0, v1
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x21, d0
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #3
	sub	x10, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	add	x21, x11, x21
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	neg	x9, x21
	str	x9, [x20, #8]
	add	w0, w8, #40
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_HOST_REQUEST_VERSION,8,3    ; @EC_HOST_REQUEST_VERSION
	.no_dead_strip	_prepare_packet
.subsections_via_symbols
