	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_find_tx_ring_sta
_wil_find_tx_ring_sta:                  ## @wil_find_tx_ring_sta
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_wil_get_min_tx_ring_id
	movq	_WIL6210_MAX_TX_RINGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_10
## %bb.1:
	movslq	%eax, %rbx
	leaq	(,%rbx,4), %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_WIL6210_MAX_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r13
	cmpl	$0, (%r13,%r14)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	cmpl	$0, 12(%rax,%r14,4)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax,%r14,4), %rdx
	cmpq	(%r15), %rdx
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdx
	movq	(%rdx,%r14,2), %rdx
	movq	(%rdx), %rdx
	cmpq	8(%r12), %rdx
	jge	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rax,%r14,4)
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	_ETH_P_PAE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	cmpq	%rax, %r15
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_8
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	addq	%r14, %r13
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
LBB0_11:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIL6210_MAX_TX_RINGS,4,2       ## @WIL6210_MAX_TX_RINGS
	.comm	_ETH_P_PAE,4,2                  ## @ETH_P_PAE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx -> ring %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Tx while no rings active?\n"

	.no_dead_strip	_wil_find_tx_ring_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_find_tx_ring_sta
_wil_find_tx_ring_sta:                  ; @wil_find_tx_ring_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_wil_get_min_tx_ring_id
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x23, _WIL6210_MAX_TX_RINGS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WIL6210_MAX_TX_RINGS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_11
; %bb.1:
	sxtw	x24, w0
	sbfiz	x22, x0, #2, #32
Lloh2:
	adrp	x25, _ETH_P_PAE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ETH_P_PAE@GOTPAGEOFF]
	sbfiz	x26, x0, #4, #32
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x22, x22, #4
	add	x26, x26, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #24]
	ldr	w9, [x27, x22]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #16]
	add	x10, x9, x22, lsl #2
	ldr	w10, [x10, #12]
	cbz	w10, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9, x26]
	ldr	x11, [x21]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x10, x11, [x19]
	ldr	x10, [x10, x24, lsl #3]
	ldr	x10, [x10]
	cmp	x10, x11
	b.ge	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, x22, lsl #2
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x20]
	ldr	w0, [x25]
	bl	_cpu_to_be16
	cmp	x28, x0
	b.ne	LBB0_2
LBB0_10:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_txrx
	add	x0, x27, x22
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_txrx
	mov	x0, #0
LBB0_12:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WIL6210_MAX_TX_RINGS,4,2       ; @WIL6210_MAX_TX_RINGS
	.comm	_ETH_P_PAE,4,2                  ; @ETH_P_PAE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx -> ring %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Tx while no rings active?\n"

	.no_dead_strip	_wil_find_tx_ring_sta
.subsections_via_symbols
