	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_large_page_tx_descs
_write_large_page_tx_descs:             ## @write_large_page_tx_descs
	.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	%edi, %r15d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	_SGE_TX_DESC_MAX_PLEN@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	cmpl	%ebx, (%rax)
	jbe	LBB0_10
## %bb.1:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rdi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r9), %eax
	cmpl	%ebx, %eax
	jbe	LBB0_9
## %bb.2:
	movq	24(%rbp), %r12
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rcx
	xorb	$1, (%r14)
	movq	8(%r12), %rdi
	movq	16(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r9), %eax
	xorl	%r15d, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %ebx
	cmpl	%ebx, %eax
	jbe	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	subl	%ebx, %eax
	movl	%eax, (%r9)
	movl	(%r8), %esi
	movl	(%r13), %edx
	movq	%rcx, %r14
	movl	(%rcx), %ecx
	movq	%rdi, %rbx
	xorl	%r8d, %r8d
	callq	_write_tx_desc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	$0, (%rdi)
	movq	_dma_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_dma_unmap_len_set
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	(%r13), %eax
	addl	%eax, (%r8)
	movl	(%r9), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	cmpl	(%r12), %r15d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, -48(%rbp)                   ## 8-byte Folded Spill
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r14, %rcx
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_SGE_TX_DESC_MAX_PLEN,4,2       ## @SGE_TX_DESC_MAX_PLEN
	.comm	_dma_len,4,2                    ## @dma_len
	.no_dead_strip	_write_large_page_tx_descs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_large_page_tx_descs
_write_large_page_tx_descs:             ; @write_large_page_tx_descs
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x28, _SGE_TX_DESC_MAX_PLEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SGE_TX_DESC_MAX_PLEN@GOTPAGEOFF]
	ldr	w9, [x28]
	cmp	w8, w9
	b.ls	LBB0_9
; %bb.1:
	mov	x23, x5
	mov	x21, x1
	ldr	x27, [x1]
	ldr	x26, [x2]
	ldr	w8, [x5]
	cmp	w8, w9
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	b.ls	LBB0_8
; %bb.2:
	mov	x22, x7
	mov	x24, x4
	mov	x25, x3
Lloh5:
	adrp	x20, _dma_len@GOTPAGE
Lloh6:
	ldr	x20, [x20, _dma_len@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #0
	ldr	w8, [x25]
	eor	w8, w8, #0x1
	str	w8, [x25]
	ldp	x27, x26, [x22, #8]
	ldr	w8, [x23]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x28]
	cmp	w8, w9
	b.ls	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, w9
	str	w8, [x23]
	ldr	w1, [x24]
	ldr	w2, [x28]
	ldr	w3, [x25]
	mov	x0, x27
	mov	w4, #0
	bl	_write_tx_desc
	str	xzr, [x26]
	ldr	w1, [x20]
	mov	x0, x26
	mov	w2, #0
	bl	_dma_unmap_len_set
	ldr	w8, [x28]
	ldr	w9, [x24]
	add	w8, w9, w8
	str	w8, [x24]
	ldr	w8, [x23]
	cbz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w19, w19, #1
	ldr	w9, [x22]
	cmp	w19, w9
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #8
	add	x27, x27, #4
	b	LBB0_4
LBB0_8:
	str	x27, [x21]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x26, [x8]
LBB0_9:
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_SGE_TX_DESC_MAX_PLEN,4,2       ; @SGE_TX_DESC_MAX_PLEN
	.comm	_dma_len,4,2                    ; @dma_len
	.no_dead_strip	_write_large_page_tx_descs
.subsections_via_symbols
