	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioc3_tx_unmap
_ioc3_tx_unmap:                         ## @ioc3_tx_unmap
	.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	%rdi, %r15
	movq	8(%rdi), %r13
	movslq	%esi, %r14
	shlq	$4, %r14
	movl	12(%r13,%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	movl	8(%r13,%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movq	_ETXD_B1V@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_ETXD_B1CNT_MASK@GOTPCREL(%rip), %rax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	movq	_ETXD_B1CNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13,%r14), %edi
	callq	_be64_to_cpu
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	callq	_dma_unmap_single
LBB0_2:
	movq	_ETXD_B2V@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_ETXD_B2CNT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_ETXD_B2CNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movl	(%r15), %ebx
	movl	(%r13,%r14), %edi
	callq	_be64_to_cpu
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_unmap_single               ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETXD_B1V,4,2                   ## @ETXD_B1V
	.comm	_ETXD_B1CNT_MASK,4,2            ## @ETXD_B1CNT_MASK
	.comm	_ETXD_B1CNT_SHIFT,4,2           ## @ETXD_B1CNT_SHIFT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ETXD_B2V,4,2                   ## @ETXD_B2V
	.comm	_ETXD_B2CNT_MASK,4,2            ## @ETXD_B2CNT_MASK
	.comm	_ETXD_B2CNT_SHIFT,4,2           ## @ETXD_B2CNT_SHIFT
	.no_dead_strip	_ioc3_tx_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioc3_tx_unmap
_ioc3_tx_unmap:                         ; @ioc3_tx_unmap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	sxtw	x25, w1
	add	x20, x24, w1, sxtw #4
	ldr	w0, [x20, #12]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x20, x0
Lloh0:
	adrp	x8, _ETXD_B1V@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETXD_B1V@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ETXD_B1CNT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETXD_B1CNT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ETXD_B1CNT_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETXD_B1CNT_SHIFT@GOTPAGEOFF]
	and	w8, w8, w20
Lloh10:
	ldr	w9, [x9]
	asr	w22, w8, w9
	ldr	w23, [x19]
	add	x8, x24, x25, lsl #4
	ldr	w0, [x8, #4]
	bl	_be64_to_cpu
	mov	x1, x0
	ldr	w3, [x26]
	mov	x0, x23
	mov	x2, x22
	bl	_dma_unmap_single
LBB0_2:
Lloh11:
	adrp	x8, _ETXD_B2V@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETXD_B2V@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _ETXD_B2CNT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETXD_B2CNT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh17:
	adrp	x9, _ETXD_B2CNT_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ETXD_B2CNT_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	asr	w20, w8, w9
	ldr	w19, [x19]
	lsl	x8, x25, #4
	ldr	w0, [x24, x8]
	bl	_be64_to_cpu
	mov	x1, x0
	ldr	w3, [x26]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dma_unmap_single
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETXD_B1V,4,2                   ; @ETXD_B1V
	.comm	_ETXD_B1CNT_MASK,4,2            ; @ETXD_B1CNT_MASK
	.comm	_ETXD_B1CNT_SHIFT,4,2           ; @ETXD_B1CNT_SHIFT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ETXD_B2V,4,2                   ; @ETXD_B2V
	.comm	_ETXD_B2CNT_MASK,4,2            ; @ETXD_B2CNT_MASK
	.comm	_ETXD_B2CNT_SHIFT,4,2           ; @ETXD_B2CNT_SHIFT
	.no_dead_strip	_ioc3_tx_unmap
.subsections_via_symbols
