	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_vnic_send_dma             ## -- Begin function hfi1_vnic_send_dma
	.p2align	4, 0x90
_hfi1_vnic_send_dma:                    ## @hfi1_vnic_send_dma
	.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
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdx), %r15
	leaq	(%rsi,%rsi,2), %r13
	leaq	(%r15,%r13,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r15,%r13,8), %r12
	movq	_ECOMM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	8(%r15,%r13,8), %edi
	callq	_READ_ONCE
	movq	_HFI1_VNIC_SDMA_Q_ACTIVE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_sdma_running
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
LBB0_4:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmem_cache_alloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movl	12(%rbx), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_hfi1_vnic_update_pad
	movq	%r14, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_build_vnic_tx_desc
	movq	%rbx, %r14
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	movq	%r14, %rsi
	addq	$8, %rsi
	movq	%r14, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_sdma_txclean
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_kmem_cache_free
LBB0_13:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_14
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_16
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_any
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	(%r15,%r13,8), %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_iowait_get_ib_work
	movq	%r14, %r13
	leaq	8(%r14), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sdma_send_txreq
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	_ECOMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	setne	%dil
	callq	_unlikely
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	%r13, %r14
	jne	LBB0_12
	jmp	LBB0_16
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	%r13, %r14
	jne	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_iowait_starve_clear
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ECOMM,4,2                      ## @ECOMM
	.comm	_HFI1_VNIC_SDMA_Q_ACTIVE,8,3    ## @HFI1_VNIC_SDMA_Q_ACTIVE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_vnic_send_dma             ; -- Begin function hfi1_vnic_send_dma
	.p2align	2
_hfi1_vnic_send_dma:                    ; @hfi1_vnic_send_dma
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x26, x5
	mov	x25, x4
	mov	x19, x3
	mov	x23, x1
	mov	x20, x0
	ldr	x24, [x2]
	mov	w8, #24
	madd	x27, x1, x8, x24
	ldr	x22, [x27, #16]
Lloh0:
	adrp	x28, _ECOMM@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ECOMM@GOTPAGEOFF]
	ldr	w8, [x28]
	neg	w21, w8
	ldr	w0, [x27, #8]
	bl	_READ_ONCE
Lloh2:
	adrp	x8, _HFI1_VNIC_SDMA_Q_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HFI1_VNIC_SDMA_Q_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.1:
	cbz	x22, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_sdma_running
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_4
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_8
LBB0_4:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kmem_cache_alloc
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	stp	x19, x27, [x21, #16]
	ldr	w0, [x21, #12]
	mov	x1, x26
	bl	_hfi1_vnic_update_pad
	str	x26, [x21]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	bl	_build_vnic_tx_desc
	mov	x25, x21
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_12
LBB0_7:
	add	x1, x25, #8
	mov	x0, x20
	bl	_sdma_txclean
	ldr	w0, [x20]
	mov	x1, x25
	bl	_kmem_cache_free
LBB0_8:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_10
; %bb.9:
	str	wzr, [x27]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w8, #24
	madd	x8, x23, x8, x24
	add	x23, x8, #4
	mov	x0, x23
	bl	_iowait_get_ib_work
	mov	x1, x0
	mov	x24, x25
	add	x2, x25, #8
	ldr	w3, [x27]
	mov	x0, x22
	bl	_sdma_send_txreq
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.13:
	ldr	w8, [x28]
	cmn	w21, w8
	cset	w0, ne
	bl	_unlikely
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	mov	x25, x24
	cbnz	x0, LBB0_7
	b	LBB0_11
LBB0_14:
	bl	_unlikely
	mov	x25, x24
	cbnz	x0, LBB0_7
; %bb.15:
	mov	w8, #1
	str	w8, [x27]
	mov	w0, #1
	mov	x1, x23
	bl	_iowait_starve_clear
	mov	w21, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ECOMM,4,2                      ; @ECOMM
	.comm	_HFI1_VNIC_SDMA_Q_ACTIVE,8,3    ; @HFI1_VNIC_SDMA_Q_ACTIVE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
