	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptls_ffx_one_pass
_ptls_ffx_one_pass:                     ## @ptls_ffx_one_pass
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %r14d
	movq	24(%rbp), %r13
	movq	16(%rbp), %r12
	movq	32(%rbp), %rsi
	movq	%r13, %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	andl	$15, %r14d
	movl	48(%rbp), %eax
	xorl	%eax, (%r13,%r14,4)
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	cmpq	$8, %rdi
	jb	LBB0_2
## %bb.3:
	leaq	(%r15,%rdi,4), %rax
	cmpq	%r13, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(,%rdi,4), %rax
	addq	%r13, %rax
	cmpq	%r15, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_12:
	movq	%rax, %rcx
	notq	%rcx
	addq	%rdi, %rcx
	movq	%rdi, %rdx
	andq	$3, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rax,4), %esi
	xorl	%esi, (%r13,%rax,4)
	incq	%rax
	decq	%rdx
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %rcx
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rax,4), %ecx
	xorl	%ecx, (%r13,%rax,4)
	movl	4(%r15,%rax,4), %ecx
	xorl	%ecx, 4(%r13,%rax,4)
	movl	8(%r15,%rax,4), %ecx
	xorl	%ecx, 8(%r13,%rax,4)
	movl	12(%r15,%rax,4), %ecx
	xorl	%ecx, 12(%r13,%rax,4)
	addq	$4, %rax
	cmpq	%rax, %rdi
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movq	%rdi, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.7:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r15,%rcx,4), %xmm0
	movups	16(%r15,%rcx,4), %xmm1
	movups	(%r13,%rcx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r13,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%r13,%rcx,4), %xmm1
	movups	48(%r13,%rcx,4), %xmm3
	movups	%xmm2, (%r13,%rcx,4)
	movups	%xmm0, 16(%r13,%rcx,4)
	movups	32(%r15,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%r15,%rcx,4), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%r13,%rcx,4)
	movups	%xmm1, 48(%r13,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %dl
	je	LBB0_11
LBB0_10:
	movups	(%r15,%rcx,4), %xmm0
	movups	16(%r15,%rcx,4), %xmm1
	movups	(%r13,%rcx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r13,%rcx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%r13,%rcx,4)
	movups	%xmm0, 16(%r13,%rcx,4)
LBB0_11:
	cmpq	%rdi, %rax
	jne	LBB0_12
LBB0_16:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ptls_cipher_init
	leaq	_ptls_ffx_one_pass.zeros(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %ecx
	callq	_ptls_cipher_encrypt
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r8, %rax
	decq	%rax
	je	LBB0_32
## %bb.17:
	cmpq	$8, %rax
	jb	LBB0_18
## %bb.19:
	leaq	(%r12,%rax,4), %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_22
## %bb.20:
	leaq	(%rbx,%rax,4), %rcx
	cmpq	%r12, %rcx
	jbe	LBB0_22
LBB0_18:
	xorl	%ecx, %ecx
LBB0_28:
	leal	-1(%r8), %esi
	movq	%r8, %rdx
	subq	%rcx, %rdx
	addq	$-2, %rdx
	andq	$3, %rsi
	je	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rcx,4), %edi
	xorl	%edi, (%rbx,%rcx,4)
	incq	%rcx
	decq	%rsi
	jne	LBB0_29
LBB0_30:
	cmpq	$3, %rdx
	jb	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rcx,4), %edx
	xorl	%edx, (%rbx,%rcx,4)
	movl	4(%r12,%rcx,4), %edx
	xorl	%edx, 4(%rbx,%rcx,4)
	movl	8(%r12,%rcx,4), %edx
	xorl	%edx, 8(%rbx,%rcx,4)
	movl	12(%r12,%rcx,4), %edx
	xorl	%edx, 12(%rbx,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_31
	jmp	LBB0_32
LBB0_22:
	movq	%rax, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_34
## %bb.23:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r12,%rdx,4), %xmm0
	movups	16(%r12,%rdx,4), %xmm1
	movups	(%rbx,%rdx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rdx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%rbx,%rdx,4), %xmm1
	movups	48(%rbx,%rdx,4), %xmm3
	movups	%xmm2, (%rbx,%rdx,4)
	movups	%xmm0, 16(%rbx,%rdx,4)
	movups	32(%r12,%rdx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%r12,%rdx,4), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%rbx,%rdx,4)
	movups	%xmm1, 48(%rbx,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rdi
	jne	LBB0_24
## %bb.25:
	testb	$1, %sil
	je	LBB0_27
LBB0_26:
	movups	(%r12,%rdx,4), %xmm0
	movups	16(%r12,%rdx,4), %xmm1
	movups	(%rbx,%rdx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rbx,%rdx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%rbx,%rdx,4)
	movups	%xmm0, 16(%rbx,%rdx,4)
LBB0_27:
	cmpq	%rcx, %rax
	jne	LBB0_28
LBB0_32:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	-4(%r12,%r8,4), %eax
	xorl	%eax, -4(%rbx,%r8,4)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	xorl	%ecx, %ecx
	testb	$1, %dl
	jne	LBB0_10
	jmp	LBB0_11
LBB0_34:
	xorl	%edx, %edx
	testb	$1, %sil
	jne	LBB0_26
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ptls_ffx_one_pass.zeros
_ptls_ffx_one_pass.zeros:
	.space	64

	.no_dead_strip	_ptls_ffx_one_pass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptls_ffx_one_pass
_ptls_ffx_one_pass:                     ; @ptls_ffx_one_pass
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x21, x6
	mov	x20, x5
	mov	x22, x4
	mov	x19, x3
	mov	x26, x2
	mov	x25, x1
	mov	x24, x0
	ldp	w27, w28, [x29, #24]
	ldr	x1, [x29, #16]
	mov	x0, x7
	mov	w2, #16
	bl	_memcpy
	and	x8, x27, #0xf
	lsl	x8, x8, #2
	ldr	w9, [x23, x8]
	eor	w9, w9, w28
	str	w9, [x23, x8]
	cbz	x26, LBB0_7
; %bb.1:
	cmp	x26, #16
	b.lo	LBB0_4
; %bb.2:
	lsl	x8, x26, #2
	add	x9, x25, x8
	cmp	x9, x23
	b.ls	LBB0_15
; %bb.3:
	add	x8, x23, x8
	cmp	x8, x25
	b.ls	LBB0_15
LBB0_4:
	mov	x8, #0
LBB0_5:
	sub	x9, x26, x8
	lsl	x10, x8, #2
	add	x8, x23, x10
	add	x10, x25, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	ldr	w12, [x8]
	eor	w11, w12, w11
	str	w11, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x24
	mov	x1, x23
	bl	_ptls_cipher_init
Lloh0:
	adrp	x2, _ptls_ffx_one_pass.zeros@PAGE
Lloh1:
	add	x2, x2, _ptls_ffx_one_pass.zeros@PAGEOFF
	mov	x0, x24
	mov	x1, x21
	mov	w3, #16
	bl	_ptls_cipher_encrypt
	subs	x9, x22, #1
	lsl	x8, x9, #2
	b.eq	LBB0_14
; %bb.8:
	cmp	x9, #16
	b.lo	LBB0_11
; %bb.9:
	add	x10, x21, x8
	cmp	x10, x19
	b.ls	LBB0_18
; %bb.10:
	add	x10, x19, x8
	cmp	x10, x21
	b.ls	LBB0_18
LBB0_11:
	mov	x10, #0
LBB0_12:
	mvn	x9, x10
	add	x9, x9, x22
	lsl	x11, x10, #2
	add	x10, x19, x11
	add	x11, x21, x11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	ldr	w13, [x10]
	eor	w12, w13, w12
	str	w12, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_13
LBB0_14:
	ldr	w9, [x21, x8]
	and	w9, w9, w20
	ldr	w10, [x19, x8]
	eor	w9, w10, w9
	str	w9, [x19, x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	and	x8, x26, #0xfffffffffffffff0
	add	x9, x25, #32
	add	x10, x23, #32
	mov	x11, x8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9], #64
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x8, x26
	b.eq	LBB0_7
	b	LBB0_5
LBB0_18:
	and	x10, x9, #0xfffffffffffffff0
	add	x11, x19, #32
	add	x12, x21, #32
	mov	x13, x10
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_19
; %bb.20:
	cmp	x9, x10
	b.eq	LBB0_14
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ptls_ffx_one_pass.zeros
_ptls_ffx_one_pass.zeros:
	.space	64

	.no_dead_strip	_ptls_ffx_one_pass
.subsections_via_symbols
