	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_ring_fini_tx
_wil_ring_fini_tx:                      ## @wil_ring_fini_tx
	.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	24(%rdi), %r12
	movq	32(%rdi), %r14
	movslq	%esi, %rbx
	addq	$16, %rdi
	callq	_lockdep_assert_held
	cmpl	$0, (%r14,%rbx,4)
	je	LBB0_4
## %bb.1:
	leaq	(%r14,%rbx,4), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_wil_dbg_misc
	leaq	(%rbx,%rbx,2), %rbx
	leaq	(%r12,%rbx,8), %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	$0, (%r12,%rbx,8)
	movq	_U8_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12,%rbx,8)
	movq	$0, 8(%r12,%rbx,8)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	callq	_wmb
	movq	_wil_status_napi_en@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	8(%r15), %rdi
	callq	_napi_synchronize
LBB0_3:
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vring_fini_tx: id=%d\n"

	.comm	_U8_MAX,4,2                     ## @U8_MAX
	.comm	_wil_status_napi_en,4,2         ## @wil_status_napi_en
	.no_dead_strip	_wil_ring_fini_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_ring_fini_tx
_wil_ring_fini_tx:                      ; @wil_ring_fini_tx
	.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	x21, x1
	mov	x19, x0
	ldp	x22, x8, [x0, #24]
	add	x20, x8, w1, sxtw #2
	add	x0, x0, #16
	bl	_lockdep_assert_held
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	sxtw	x23, w21
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_wil_dbg_misc
	mov	w8, #24
	madd	x22, x23, x8, x22
	add	x21, x22, #4
	mov	x0, x21
	bl	_spin_lock_bh
	str	wzr, [x22]
Lloh2:
	adrp	x8, _U8_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _U8_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	str	xzr, [x22, #8]
	mov	x0, x21
	bl	_spin_unlock_bh
	bl	_wmb
Lloh5:
	adrp	x8, _wil_status_napi_en@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wil_status_napi_en@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x19, #8
	bl	_napi_synchronize
LBB0_3:
	ldr	x2, [x19]
	mov	x0, x19
	mov	x1, 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
	br	x2
LBB0_4:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vring_fini_tx: id=%d\n"

	.comm	_U8_MAX,4,2                     ; @U8_MAX
	.comm	_wil_status_napi_en,4,2         ; @wil_status_napi_en
	.no_dead_strip	_wil_ring_fini_tx
.subsections_via_symbols
