	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto4xx_copy_pkt_to_dst
_crypto4xx_copy_pkt_to_dst:             ## @crypto4xx_copy_pkt_to_dst
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)
	movq	(%rdx), %rax
	movq	%rax, -80(%rbp)
	movq	$0, -72(%rbp)
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %r15
	shlq	$4, %r15
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%r15), %r14
	movq	(%rbx,%r15), %rax
	movq	%rax, -112(%rbp)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_sg_page
	movl	8(%rbx,%r15), %edx
	movq	(%rbx,%r15), %rcx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_dma_map_page
	movl	%eax, -44(%rbp)
	movq	-72(%rbp), %rcx
	movq	-56(%rbp), %rax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdx
	subq	%rcx, %rdx
	cmpq	%rdx, %rax
	cmovbq	%rax, %rdx
	movq	(%r14), %rax
	cmpq	%rdx, %rax
	cmovbq	%rax, %rdx
	movq	%rdx, -64(%rbp)
	leaq	-44(%rbp), %rcx
	leaq	-80(%rbp), %r14
	leaq	-72(%rbp), %rbx
	movq	%r13, %r15
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%rcx, %r13
	movq	%rcx, %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_crypto4xx_fill_one_page
	movq	%r13, %rcx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -56(%rbp)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx
	subq	%rcx, -112(%rbp)
	movl	$1, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, -44(%rbp)
	leaq	-112(%rbp), %rbx
	movq	%r12, %r15
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	leaq	-80(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%r15, %r9
	callq	_crypto4xx_fill_one_page
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	movq	%r15, %r12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	cmovbq	%rax, %rcx
	movq	%rcx, -64(%rbp)
	leaq	-64(%rbp), %r14
	leaq	-80(%rbp), %rbx
	movq	%r12, %r15
	leaq	-72(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_crypto4xx_fill_one_page
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r15, %r12
	jne	LBB0_13
LBB0_14:
	addq	$88, %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
	.no_dead_strip	_crypto4xx_copy_pkt_to_dst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto4xx_copy_pkt_to_dst
_crypto4xx_copy_pkt_to_dst:             ; @crypto4xx_copy_pkt_to_dst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	str	x3, [sp, #40]
	ldr	x8, [x2]
	stp	xzr, x8, [sp, #16]
	cbz	x3, LBB0_15
; %bb.1:
	mov	x19, x4
	mov	x20, x0
	mov	x23, #0
Lloh0:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cbz	x8, LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	add	x21, x19, x23, lsl #4
	ldr	x8, [x21]
	str	x8, [sp]
	ldr	x8, [x20, #8]
	ldr	w22, [x8]
	mov	x0, x21
	bl	_sg_page
	mov	x1, x0
	ldr	w2, [x21, #8]
	ldr	x3, [x21]
	ldr	w4, [x24]
	mov	x0, x22
	bl	_dma_map_page
	str	w0, [sp, #36]
	ldr	x9, [sp, #16]
	ldr	x8, [sp, #40]
	cbz	x9, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x20]
	sub	x9, x10, x9
	cmp	x8, x9
	csel	x8, x8, x9, lo
	ldr	x9, [x21]
	cmp	x9, x8
	csel	x8, x9, x8, lo
	str	x8, [sp, #8]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #36
	add	x2, sp, #8
	add	x3, sp, #24
	add	x4, sp, #16
	add	x5, sp, #40
	mov	x0, x20
	bl	_crypto4xx_fill_one_page
	cbnz	x0, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [sp]
	subs	x9, x9, x8
	str	x9, [sp]
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #36]
	add	w8, w9, w8
	str	w8, [sp, #36]
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #36
	mov	x2, sp
	add	x3, sp, #24
	add	x4, sp, #16
	add	x5, sp, #40
	mov	x0, x20
	bl	_crypto4xx_fill_one_page
	cbnz	x0, LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	cmp	x8, x9
	csel	x8, x8, x9, lo
	str	x8, [sp, #8]
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #36
	add	x2, sp, #8
	add	x3, sp, #24
	add	x4, sp, #16
	add	x5, sp, #40
	mov	x0, x20
	bl	_crypto4xx_fill_one_page
	cbnz	x0, LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]
	cbnz	x8, LBB0_3
LBB0_15:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_crypto4xx_copy_pkt_to_dst
.subsections_via_symbols
