	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_dump_tx_rings
_mwl8k_dump_tx_rings:                   ## @mwl8k_dump_tx_rings
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mwl8k_tx_queues
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rax,%rdx,8), %ecx
	movl	(%rax,%rdx,8), %r9d
	movl	4(%rax,%rdx,8), %r8d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	pushq	%r11
	pushq	%r13
	pushq	%rbx
	callq	_wiphy_err
	addq	$32, %rsp
	incq	%r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mwl8k_tx_queues
	cltq
	cmpq	%rax, %r12
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rax)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r12,2), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$0, %r13d
	movl	$0, %r11d
	movl	$0, %ebx
	movq	_MWL8K_TXD_STATUS_FW_OWNED@GOTPCREL(%rip), %r14
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rax
	addq	$16, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$8, %r12d
	xorl	%ebx, %ebx
	xorl	%r11d, %r11d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r11, -104(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r12), %edi
	callq	_le32_to_cpu
	movq	-104(%rbp), %r11                ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	testl	%eax, (%r14)
	setne	%cl
	sete	%dl
	addl	%edx, %r13d
	addl	%ecx, %ebx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$1, -8(%rax,%r12)
	adcl	$0, %r11d
	incq	%r15
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r12
	cmpq	%rax, %r15
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_TX_DESCS,4,2             ## @MWL8K_TX_DESCS
	.comm	_MWL8K_TXD_STATUS_FW_OWNED,4,2  ## @MWL8K_TXD_STATUS_FW_OWNED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"txq[%d] len=%d head=%d tail=%d fw_owned=%d drv_owned=%d unused=%d\n"

	.no_dead_strip	_mwl8k_dump_tx_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_dump_tx_rings
_mwl8k_dump_tx_rings:                   ; @mwl8k_dump_tx_rings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_mwl8k_tx_queues
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x25, _MWL8K_TX_DESCS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MWL8K_TX_DESCS@GOTPAGEOFF]
Lloh2:
	adrp	x27, _MWL8K_TXD_STATUS_FW_OWNED@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MWL8K_TXD_STATUS_FW_OWNED@GOTPAGEOFF]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	mov	w22, #0
	mov	w24, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	ldr	w0, [x8]
	mov	w8, #24
	madd	x8, x21, x8, x9
	ldp	w4, w3, [x8, #4]
	ldr	w5, [x8]
	str	w22, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x6, x24
	mov	x7, x23
	bl	_wiphy_err
	add	x21, x21, #1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	bl	_mwl8k_tx_queues
	cmp	x21, w0, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [x19]
	ldr	w8, [x25]
	cmp	w8, #1
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	mov	x19, #0
	mov	w24, #0
	mov	w22, #0
	mov	w23, #0
	mov	w8, #24
	madd	x8, x21, x8, x9
	add	x20, x8, #16
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	add	x28, x8, x26
	ldr	w0, [x28, #8]
	bl	_le32_to_cpu
	ldr	w8, [x27]
	tst	w8, w0
	cinc	w23, w23, eq
	cinc	w24, w24, ne
	ldr	x8, [x28]
	cmp	x8, #0
	cinc	w22, w22, eq
	add	x19, x19, #1
	ldrsw	x8, [x25]
	add	x26, x26, #16
	cmp	x19, x8
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_TX_DESCS,4,2             ; @MWL8K_TX_DESCS
	.comm	_MWL8K_TXD_STATUS_FW_OWNED,4,2  ; @MWL8K_TXD_STATUS_FW_OWNED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"txq[%d] len=%d head=%d tail=%d fw_owned=%d drv_owned=%d unused=%d\n"

	.no_dead_strip	_mwl8k_dump_tx_rings
.subsections_via_symbols
