	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wil_update_net_queues
___wil_update_net_queues:               ## @__wil_update_net_queues
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_wil_get_min_tx_ring_id
	movl	%eax, %r12d
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdx
	subq	(%r14), %rdx
	shrq	$2, %rdx
	movq	(%r13), %rcx
	movl	8(%r13), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	movq	_drop_if_ring_full@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
## %bb.4:
	cmpl	%ebx, 8(%r13)
	je	LBB0_23
	jmp	LBB0_5
LBB0_2:
	movq	(%r13), %rcx
	movl	8(%r13), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	cmpl	%ebx, 8(%r13)
	je	LBB0_23
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.6:
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_wil_ring_avail_low
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_23
LBB0_8:
	movq	%r13, %rdi
	callq	_vif_to_ndev
	movl	%eax, %edi
	callq	_netif_tx_stop_all_queues
	movl	$1, 8(%r13)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wil_dbg_txrx                   ## TAILCALL
LBB0_9:
	movq	_wil_status_suspending@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_23
## %bb.10:
	movq	_wil_status_suspended@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_23
## %bb.11:
	movq	_WIL6210_MAX_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jge	LBB0_20
## %bb.12:
	movslq	%r12d, %r12
	leaq	(,%r12,4), %rbx
	jmp	LBB0_13
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_20
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,4), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%r14), %rdx
	cmpl	$0, (%rdx,%rbx)
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, 8(%rcx,%rbx,4)
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rdx,%rbx), %rdi
	cmpq	%r15, %rdi
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_wil_ring_avail_low
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_WIL6210_MAX_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_20:
	testq	%r15, %r15
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_wil_ring_avail_high
	testq	%rax, %rax
	je	LBB0_23
LBB0_22:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	movq	%r13, %rdi
	callq	_vif_to_ndev
	movl	%eax, %edi
	callq	_netif_tx_wake_all_queues
	movl	$0, 8(%r13)
	jmp	LBB0_23
LBB0_24:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	subq	(%r14), %rdx
	addq	%rbx, %rdx
	shrq	$2, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wil_dbg_txrx                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vring %d, mid %d, check_stop=%d, stopped=%d"

L_.str.1:                               ## @.str.1
	.asciz	"check_stop=%d, mid=%d, stopped=%d"

	.comm	_drop_if_ring_full,8,3          ## @drop_if_ring_full
L_.str.2:                               ## @.str.2
	.asciz	"netif_tx_stop called\n"

	.comm	_wil_status_suspending,4,2      ## @wil_status_suspending
	.comm	_wil_status_suspended,4,2       ## @wil_status_suspended
	.comm	_WIL6210_MAX_TX_RINGS,4,2       ## @WIL6210_MAX_TX_RINGS
L_.str.3:                               ## @.str.3
	.asciz	"ring %d full, can't wake\n"

L_.str.4:                               ## @.str.4
	.asciz	"calling netif_tx_wake\n"

	.no_dead_strip	___wil_update_net_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wil_update_net_queues
___wil_update_net_queues:               ; @__wil_update_net_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_wil_get_min_tx_ring_id
	mov	x22, x0
	cmp	x19, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	sub	x8, x21, x8
	lsr	x8, x8, #2
	ldr	x9, [x19]
	ldr	w10, [x19, #8]
	stp	x23, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_txrx
Lloh2:
	adrp	x8, _drop_if_ring_full@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drop_if_ring_full@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp, #8]
	mov	x9, x23
	str	x9, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_txrx
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, w23
	b.eq	LBB0_1
; %bb.6:
	cbz	w23, LBB0_10
; %bb.7:
	cbz	x21, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_wil_ring_avail_low
	bl	_unlikely
	cbz	x0, LBB0_1
LBB0_9:
	mov	x0, x19
	bl	_vif_to_ndev
	bl	_netif_tx_stop_all_queues
	mov	w8, #1
	str	w8, [x19, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_wil_dbg_txrx
LBB0_10:
Lloh9:
	adrp	x8, _wil_status_suspending@GOTPAGE
Lloh10:
	ldr	x8, [x8, _wil_status_suspending@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_test_bit
	cbnz	x0, LBB0_1
; %bb.11:
Lloh12:
	adrp	x8, _wil_status_suspended@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wil_status_suspended@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_test_bit
	cbnz	x0, LBB0_1
; %bb.12:
Lloh15:
	adrp	x23, _WIL6210_MAX_TX_RINGS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _WIL6210_MAX_TX_RINGS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_20
; %bb.13:
	sxtw	x25, w22
	sbfiz	x24, x22, #2, #32
	sbfiz	x22, x22, #4, #32
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x25, x25, #1
	add	x24, x24, #4
	add	x22, x22, #16
	cmp	x25, w8, sxtw
	b.ge	LBB0_20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x9, x22]
	ldr	x11, [x19]
	cmp	x10, x11
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x26, [x20]
	ldr	w10, [x26, x24]
	cbz	w10, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x0, x26, x24
	add	x9, x9, x24, lsl #2
	ldr	w9, [x9, #8]
	cmp	w9, #0
	ccmp	x0, x21, #4, ne
	b.eq	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_wil_ring_avail_low
	cbnz	w0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x23]
	b	LBB0_14
LBB0_20:
	cbz	x21, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	_wil_ring_avail_high
	cbz	x0, LBB0_1
LBB0_22:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_txrx
	mov	x0, x19
	bl	_vif_to_ndev
	bl	_netif_tx_wake_all_queues
	str	wzr, [x19, #8]
	b	LBB0_1
LBB0_23:
	ldr	x8, [x20]
	sub	x8, x26, x8
	add	x8, x8, x24
	lsr	x8, x8, #2
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_txrx
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vring %d, mid %d, check_stop=%d, stopped=%d"

l_.str.1:                               ; @.str.1
	.asciz	"check_stop=%d, mid=%d, stopped=%d"

	.comm	_drop_if_ring_full,8,3          ; @drop_if_ring_full
l_.str.2:                               ; @.str.2
	.asciz	"netif_tx_stop called\n"

	.comm	_wil_status_suspending,4,2      ; @wil_status_suspending
	.comm	_wil_status_suspended,4,2       ; @wil_status_suspended
	.comm	_WIL6210_MAX_TX_RINGS,4,2       ; @WIL6210_MAX_TX_RINGS
l_.str.3:                               ; @.str.3
	.asciz	"ring %d full, can't wake\n"

l_.str.4:                               ; @.str.4
	.asciz	"calling netif_tx_wake\n"

	.no_dead_strip	___wil_update_net_queues
.subsections_via_symbols
