	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fe_tx_dma_map_page
___fe_tx_dma_map_page:                  ## @__fe_tx_dma_map_page
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	40(%rsi), %rbx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%r14, %rcx
	callq	_dma_map_page
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ecx
	andl	$1, %ecx
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_fe_tx_dma_write_desc
	movl	(%r13), %eax
LBB0_5:
	movq	8(%r13), %rbx
	shlq	$3, %rbx
	addq	(%r12), %rbx
	testb	$1, %al
	jne	LBB0_6
## %bb.7:
	movq	_DMA_DUMMY_DESC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r15, 24(%r13)
	movq	%r14, %rdi
	callq	_TX_DMA_PLEN0
	movl	%eax, 16(%r13)
	movq	_dma_len0@GOTPCREL(%rip), %r12
	movq	_dma_addr0@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%r15, 32(%r13)
	movq	%r14, %rdi
	callq	_TX_DMA_PLEN1
	orl	%eax, 16(%r13)
	movq	_dma_len1@GOTPCREL(%rip), %r12
	movq	_dma_addr1@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_dma_unmap_addr_set
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_dma_unmap_len_set
	incl	(%r13)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %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	_EIO,4,2                        ## @EIO
	.comm	_dma_addr1,4,2                  ## @dma_addr1
	.comm	_dma_len1,4,2                   ## @dma_len1
	.comm	_DMA_DUMMY_DESC,8,3             ## @DMA_DUMMY_DESC
	.comm	_dma_addr0,4,2                  ## @dma_addr0
	.comm	_dma_len0,4,2                   ## @dma_len0
	.no_dead_strip	___fe_tx_dma_map_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fe_tx_dma_map_page
___fe_tx_dma_map_page:                  ; @__fe_tx_dma_map_page
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x1, #40]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x2
	mov	x2, x3
	mov	x3, x20
	bl	_dma_map_page
	mov	x21, x0
	mov	x0, x23
	mov	x1, x21
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.3:
	tbnz	w8, #0, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x19
	bl	_fe_tx_dma_write_desc
	ldr	w8, [x19]
LBB0_5:
	ldr	x9, [x22]
	ldr	x10, [x19, #8]
	add	x22, x9, x10, lsl #3
	tbnz	w8, #0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _DMA_DUMMY_DESC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_DUMMY_DESC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x22]
	str	x21, [x19, #24]
	mov	x0, x20
	bl	_TX_DMA_PLEN0
	str	w0, [x19, #16]
Lloh9:
	adrp	x23, _dma_len0@GOTPAGE
Lloh10:
	ldr	x23, [x23, _dma_len0@GOTPAGEOFF]
Lloh11:
	adrp	x8, _dma_addr0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dma_addr0@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	str	x21, [x19, #32]
	mov	x0, x20
	bl	_TX_DMA_PLEN1
	ldr	w8, [x19, #16]
	orr	w8, w8, w0
	str	w8, [x19, #16]
Lloh13:
	adrp	x23, _dma_len1@GOTPAGE
Lloh14:
	ldr	x23, [x23, _dma_len1@GOTPAGEOFF]
Lloh15:
	adrp	x8, _dma_addr1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dma_addr1@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_dma_unmap_addr_set
	ldr	w1, [x23]
	mov	x0, x22
	mov	x2, x20
	bl	_dma_unmap_len_set
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_dma_addr1,4,2                  ; @dma_addr1
	.comm	_dma_len1,4,2                   ; @dma_len1
	.comm	_DMA_DUMMY_DESC,8,3             ; @DMA_DUMMY_DESC
	.comm	_dma_addr0,4,2                  ; @dma_addr0
	.comm	_dma_len0,4,2                   ; @dma_len0
	.no_dead_strip	___fe_tx_dma_map_page
.subsections_via_symbols
