	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_unmap_tx_buf
_vmxnet3_unmap_tx_buf:                  ## @vmxnet3_unmap_tx_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_VMXNET3_MAP_SINGLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edx
	movl	12(%rbx), %eax
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_single
	jmp	LBB0_5
LBB0_2:
	movq	_VMXNET3_MAP_PAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edx
	movl	12(%rbx), %eax
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_page
	jmp	LBB0_5
LBB0_4:
	movq	_VMXNET3_MAP_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
LBB0_5:
	movq	_VMXNET3_MAP_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_MAP_SINGLE,8,3         ## @VMXNET3_MAP_SINGLE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_VMXNET3_MAP_PAGE,8,3           ## @VMXNET3_MAP_PAGE
	.comm	_VMXNET3_MAP_NONE,8,3           ## @VMXNET3_MAP_NONE
	.no_dead_strip	_vmxnet3_unmap_tx_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_unmap_tx_buf
_vmxnet3_unmap_tx_buf:                  ; @vmxnet3_unmap_tx_buf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VMXNET3_MAP_SINGLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMXNET3_MAP_SINGLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x20, _VMXNET3_MAP_NONE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _VMXNET3_MAP_NONE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w2, w8, [x19, #8]
Lloh5:
	adrp	x9, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_dma_unmap_single
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x9, _VMXNET3_MAP_PAGE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VMXNET3_MAP_PAGE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	w2, w8, [x19, #8]
Lloh11:
	adrp	x9, _PCI_DMA_TODEVICE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_dma_unmap_page
	b	LBB0_5
LBB0_4:
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
LBB0_5:
	ldr	x8, [x20]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_MAP_SINGLE,8,3         ; @VMXNET3_MAP_SINGLE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_VMXNET3_MAP_PAGE,8,3           ; @VMXNET3_MAP_PAGE
	.comm	_VMXNET3_MAP_NONE,8,3           ; @VMXNET3_MAP_NONE
	.no_dead_strip	_vmxnet3_unmap_tx_buf
.subsections_via_symbols
