	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipsec_esp
_ipsec_esp:                             ## @ipsec_esp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_crypto_aead_reqtfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_aead_ctx
	movq	%rax, %r13
	movq	24(%rax), %r14
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_crypto_aead_ivsize
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	48(%r15), %rsi
	movl	4(%r13), %edx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	addq	$8, %r13
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_map_single_talitos_ptr
	movq	48(%r15), %rbx
	addq	$16, %rbx
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	addl	4(%r12), %r14d
	movl	32(%r12), %edi
	callq	_sg_virt
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_map_single_talitos_ptr
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	48(%r15), %rsi
	addq	$32, %rsi
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	8(%r12), %rcx
LBB0_2:
	movq	%r12, %r14
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
	movl	(%r15), %r9d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_map_single_talitos_ptr
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	48(%r12), %rsi
	addq	$48, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	12(%rcx), %edx
	addq	%rax, %r13
	movl	(%r15), %r9d
	movq	%rbx, %rdi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_map_single_talitos_ptr
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	48(%r12), %rcx
	movq	%rax, 72(%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 64(%rcx)
	movq	16(%r14), %rsi
	movl	(%r12), %eax
	movl	56(%r12), %r8d
	testl	%eax, %eax
	movl	$1, %edx
	cmovnel	%eax, %edx
	cmpq	24(%r14), %rsi
	jne	LBB0_4
## %bb.3:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %r15
LBB0_4:
	movl	(%r15), %ecx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_talitos_map_sg
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movq	48(%r12), %rbx
	addq	$64, %rbx
	movq	16(%r14), %rdi
	callq	_sg_dma_address
	movq	%rbx, %rdi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	%rax, %rsi
	callq	_to_talitos_ptr
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_6:
	movq	_DESC_HDR_MODE1_MDEU_CICV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	40(%r12), %edx
	cmovnel	-44(%rbp), %edx                 ## 4-byte Folded Reload
	addl	%ebx, %edx
	movq	16(%r14), %rdi
	movq	24(%r12), %rcx
	movl	%eax, %esi
	callq	_sg_to_link_tbl
	movl	%eax, %r15d
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.7:
	movq	_DESC_PTR_LNKTBL_JUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	48(%r12), %rdi
	orl	%eax, 64(%rdi)
	addq	$64, %rdi
	movq	16(%r12), %rsi
	callq	_to_talitos_ptr
	movq	16(%r12), %rsi
	movl	8(%r12), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_dma_sync_single_for_device
	jmp	LBB0_9
LBB0_8:
	movq	48(%r12), %rbx
	addq	$64, %rbx
	movq	16(%r14), %rdi
	callq	_sg_dma_address
	movq	%rbx, %rdi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	%rax, %rsi
	callq	_to_talitos_ptr
LBB0_9:
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	48(%r12), %rcx
	movq	%rax, 88(%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 80(%rcx)
	movq	24(%r14), %rsi
	cmpq	%rsi, 16(%r14)
	je	LBB0_11
## %bb.10:
	movl	4(%r12), %eax
	movl	32(%r12), %r8d
	testl	%eax, %eax
	movl	$1, %edx
	cmovnel	%eax, %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_talitos_map_sg
	movl	%eax, %r15d
LBB0_11:
	leaq	40(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$1, %r15d
	jne	LBB0_13
## %bb.12:
	movq	48(%r12), %rbx
	addq	$80, %rbx
	movq	24(%r14), %rdi
	callq	_sg_dma_address
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_to_talitos_ptr
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_13:
	movslq	(%r12), %rsi
	shlq	$4, %rsi
	addq	$16, %rsi
	movq	24(%r12), %r13
	addq	%rsi, %r13
	movq	48(%r12), %rdi
	addq	$80, %rdi
	addq	16(%r12), %rsi
	callq	_to_talitos_ptr
	movq	24(%r14), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_sg_to_link_tbl
	movslq	%eax, %rbx
	shlq	$4, %rbx
	movq	%r14, %r15
	leaq	(%rbx,%r13), %r14
	movl	$0, -16(%rbx,%r13)
	movq	_DESC_PTR_LNKTBL_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx,%r13)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be16
	movq	%rax, 8(%rbx,%r13)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	addl	%ecx, %eax
	addl	$2, %eax
	movslq	%eax, %rsi
	shlq	$4, %rsi
	addq	16(%r12), %rsi
	movq	%r14, %rdi
	movq	%r15, %r14
	callq	_to_talitos_ptr
	movq	_DESC_PTR_LNKTBL_JUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	48(%r12), %rcx
	orl	%eax, 80(%rcx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rdi
	movq	16(%r12), %rsi
	movl	8(%r12), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_device
LBB0_14:
	movq	48(%r12), %rsi
	addq	$96, %rsi
	movq	16(%rbx), %rcx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_map_single_talitos_ptr
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_talitos_submit
	movl	%eax, %ebx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_ipsec_esp_unmap
	movq	%r12, %rdi
	callq	_kfree
LBB0_16:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_DESC_HDR_MODE1_MDEU_CICV,4,2   ## @DESC_HDR_MODE1_MDEU_CICV
	.comm	_DESC_PTR_LNKTBL_JUMP,4,2       ## @DESC_PTR_LNKTBL_JUMP
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DESC_PTR_LNKTBL_RETURN,4,2     ## @DESC_PTR_LNKTBL_RETURN
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_ipsec_esp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipsec_esp
_ipsec_esp:                             ; @ipsec_esp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x4, [sp]                        ; 8-byte Folded Spill
	mov	x27, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_crypto_aead_reqtfm
	mov	x24, x0
	bl	_crypto_aead_ctx
	mov	x23, x0
	ldr	x22, [x0, #24]
	ldr	w26, [x20]
	ldr	w8, [x0]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x24
	bl	_crypto_aead_ivsize
	mov	x24, x0
	ldr	x1, [x19, #48]
	ldr	w2, [x23, #4]
	add	x28, x23, #8
Lloh0:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w5, [x25]
	mov	x0, x22
	mov	x3, x28
	mov	w4, #0
	bl	_map_single_talitos_ptr
	ldr	x8, [x19, #48]
	add	x21, x8, #16
	ldr	w8, [x20, #4]
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	add	w24, w8, w24
	ldr	w0, [x20, #32]
	bl	_sg_virt
	mov	x3, x0
	ldr	w5, [x25]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	w4, #0
	bl	_map_single_talitos_ptr
	ldr	x8, [x19, #48]
	add	x1, x8, #32
	cbnz	x27, LBB0_2
; %bb.1:
	ldr	x27, [x20, #8]
LBB0_2:
	ldr	w5, [x25]
	mov	x0, x22
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x27
	mov	w4, #0
	bl	_map_single_talitos_ptr
	ldr	x8, [x19, #48]
	add	x1, x8, #48
	ldr	w2, [x23, #12]
	ldr	w8, [x23, #4]
	add	x3, x28, x8
	ldr	w5, [x25]
	mov	x0, x22
	mov	w4, #0
	bl	_map_single_talitos_ptr
	mov	x0, x26
	bl	_cpu_to_be16
	ldr	x8, [x19, #48]
	str	x0, [x8, #72]
	ldr	w24, [sp, #8]                   ; 4-byte Folded Reload
	str	w24, [x8, #64]
	ldr	w8, [x19]
	cmp	w8, #0
	csinc	w2, w8, wzr, ne
	ldp	x1, x8, [x20, #16]
Lloh2:
	adrp	x9, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	cmp	x1, x8
	csel	x8, x9, x25, eq
	mov	x25, x9
	ldr	w3, [x8]
	ldr	w4, [x19, #56]
	mov	x0, x22
	bl	_talitos_map_sg
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #48]
	add	x21, x8, #64
	ldr	x0, [x20, #16]
	bl	_sg_dma_address
	mov	x1, x0
	mov	x0, x21
	bl	_to_talitos_ptr
	mov	w28, #1
	b	LBB0_7
LBB0_4:
	mov	x1, x0
	ldr	w8, [x19, #40]
Lloh4:
	adrp	x9, _DESC_HDR_MODE1_MDEU_CICV@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DESC_HDR_MODE1_MDEU_CICV@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	csel	w8, wzr, w24, eq
	add	w2, w8, w26
	ldr	x0, [x20, #16]
	ldr	x3, [x19, #24]
	bl	_sg_to_link_tbl
	mov	x28, x0
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _DESC_PTR_LNKTBL_JUMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DESC_PTR_LNKTBL_JUMP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x0, [x19, #48]
	ldr	w9, [x0, #64]!
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x1, [x19, #16]
	bl	_to_talitos_ptr
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #8]
	ldr	w3, [x25]
	mov	x0, x22
	bl	_dma_sync_single_for_device
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #48]
	add	x21, x8, #64
	ldr	x0, [x20, #16]
	bl	_sg_dma_address
	mov	x1, x0
	mov	x0, x21
	bl	_to_talitos_ptr
LBB0_7:
	add	x27, x19, #40
	mov	x0, x26
	bl	_cpu_to_be16
	ldr	x8, [x19, #48]
	str	x0, [x8, #88]
	str	w24, [x8, #80]
	ldp	x8, x1, [x20, #16]
Lloh10:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
	cmp	x8, x1
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	csinc	w2, w8, wzr, ne
	ldr	w3, [x24]
	ldr	w4, [x19, #32]
	mov	x0, x22
	bl	_talitos_map_sg
	mov	x28, x0
LBB0_9:
	cmp	w28, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x19, #48]
	add	x21, x8, #80
	ldr	x0, [x20, #24]
	bl	_sg_dma_address
	mov	x1, x0
	mov	x0, x21
	bl	_to_talitos_ptr
	b	LBB0_12
LBB0_11:
	ldrsw	x8, [x19]
	lsl	x8, x8, #4
	add	x8, x8, #16
	ldp	x10, x9, [x19, #16]
	add	x21, x9, x8
	ldr	x9, [x19, #48]
	add	x0, x9, #80
	add	x1, x8, x10
	bl	_to_talitos_ptr
	ldr	x0, [x20, #24]
	mov	x1, x28
	mov	x2, x26
	mov	x3, x21
	bl	_sg_to_link_tbl
	sub	w8, w0, #1
	add	x21, x21, w8, sxtw #4
	str	wzr, [x21]
Lloh12:
	adrp	x8, _DESC_PTR_LNKTBL_RETURN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DESC_PTR_LNKTBL_RETURN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #16]!
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_cpu_to_be16
	str	x0, [x21, #8]
	ldr	x8, [x19, #16]
	ldp	w9, w10, [x19]
	add	w9, w9, w10
	add	w9, w9, #2
	add	x1, x8, w9, sxtw #4
	mov	x0, x21
	bl	_to_talitos_ptr
Lloh15:
	adrp	x8, _DESC_PTR_LNKTBL_JUMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DESC_PTR_LNKTBL_JUMP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [x19, #48]
	ldr	w10, [x9, #80]
	orr	w8, w10, w8
	str	w8, [x9, #80]
	ldr	x0, [x23, #24]
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #8]
	ldr	w3, [x25]
	bl	_dma_sync_single_for_device
LBB0_12:
	ldr	x8, [x19, #48]
	add	x1, x8, #96
	ldr	x3, [x23, #16]
	ldr	w5, [x24]
	mov	x0, x22
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	w4, #0
	bl	_map_single_talitos_ptr
	mov	x0, x22
	mov	x1, x27
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	mov	x3, x20
	bl	_talitos_submit
	mov	x21, x0
Lloh18:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_ipsec_esp_unmap
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_DESC_HDR_MODE1_MDEU_CICV,4,2   ; @DESC_HDR_MODE1_MDEU_CICV
	.comm	_DESC_PTR_LNKTBL_JUMP,4,2       ; @DESC_PTR_LNKTBL_JUMP
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DESC_PTR_LNKTBL_RETURN,4,2     ; @DESC_PTR_LNKTBL_RETURN
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_ipsec_esp
.subsections_via_symbols
