	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_tx_complete
_bnad_tx_complete:                      ## @bnad_tx_complete
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_BNAD_TXQ_FREE_SENT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnad_txcmpl_process
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%r12, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_BNA_QE_FREE_CNT
	movq	_BNAD_NETIF_WAKE_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.6:
	movq	_BNAD_TXQ_TX_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_netif_wake_queue
	movq	_netif_queue_wakeup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BNAD_UPDATE_CTR
LBB0_8:
	movq	_BNAD_TXQ_TX_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movq	%rax, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_bna_ib_ack
LBB0_10:
	xorl	%eax, %eax
	callq	_smp_mb__before_clear_bit
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNAD_TXQ_FREE_SENT,4,2         ## @BNAD_TXQ_FREE_SENT
	.comm	_BNAD_NETIF_WAKE_THRESHOLD,8,3  ## @BNAD_NETIF_WAKE_THRESHOLD
	.comm	_BNAD_TXQ_TX_STARTED,4,2        ## @BNAD_TXQ_TX_STARTED
	.comm	_netif_queue_wakeup,4,2         ## @netif_queue_wakeup
	.no_dead_strip	_bnad_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_tx_complete
_bnad_tx_complete:                      ; @bnad_tx_complete
	.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	x19, x1
	mov	x21, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x23, _BNAD_TXQ_FREE_SENT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BNAD_TXQ_FREE_SENT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_11
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	bl	_bnad_txcmpl_process
	mov	x20, x0
Lloh2:
	adrp	x24, _BNAD_TXQ_TX_STARTED@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BNAD_TXQ_TX_STARTED@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x22
	bl	_netif_queue_stopped
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x22
	bl	_netif_carrier_ok
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_BNA_QE_FREE_CNT
Lloh4:
	adrp	x8, _BNAD_NETIF_WAKE_THRESHOLD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BNAD_NETIF_WAKE_THRESHOLD@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_8
; %bb.6:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_netif_wake_queue
Lloh7:
	adrp	x8, _netif_queue_wakeup@GOTPAGE
Lloh8:
	ldr	x8, [x8, _netif_queue_wakeup@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_BNAD_UPDATE_CTR
LBB0_8:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	bl	_likely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_bna_ib_ack
LBB0_10:
	bl	_smp_mb__before_clear_bit
	ldr	w0, [x23]
	mov	x1, x19
	bl	_clear_bit
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_TXQ_FREE_SENT,4,2         ; @BNAD_TXQ_FREE_SENT
	.comm	_BNAD_NETIF_WAKE_THRESHOLD,8,3  ; @BNAD_NETIF_WAKE_THRESHOLD
	.comm	_BNAD_TXQ_TX_STARTED,4,2        ; @BNAD_TXQ_TX_STARTED
	.comm	_netif_queue_wakeup,4,2         ; @netif_queue_wakeup
	.no_dead_strip	_bnad_tx_complete
.subsections_via_symbols
