	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_poll_tx_status     ## -- Begin function mt76x02_mac_poll_tx_status
	.p2align	4, 0x90
_mt76x02_mac_poll_tx_status:            ## @mt76x02_mac_poll_tx_status
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movl	$1, -52(%rbp)
	movq	_MT76_STATE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_trace_mac_txstat_poll
	leaq	4(%rbx), %r15
	leaq	-48(%rbp), %r12
	testl	%r14d, %r14d
	jne	LBB0_3
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %esi
	movq	%rbx, %rdi
	callq	_kfifo_put
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfifo_is_full
	testl	%eax, %eax
	jne	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_spin_trylock
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mt76x02_mac_load_tx_status
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	leaq	-52(%rbp), %rdx
	callq	_mt76x02_send_tx_status
	testl	%r14d, %r14d
	jne	LBB0_3
	jmp	LBB0_4
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT76_STATE_RUNNING,4,2         ## @MT76_STATE_RUNNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_mac_poll_tx_status     ; -- Begin function mt76x02_mac_poll_tx_status
	.p2align	2
_mt76x02_mac_poll_tx_status:            ; @mt76x02_mac_poll_tx_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #1
	stp	w8, wzr, [sp, #4]
Lloh0:
	adrp	x8, _MT76_STATE_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT76_STATE_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_trace_mac_txstat_poll
	add	x21, x20, #4
	cbnz	w19, LBB0_3
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	_kfifo_put
	cbz	w19, LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_kfifo_is_full
	cbnz	w0, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_spin_trylock
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_mt76x02_mac_load_tx_status
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
	cbz	w22, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w19, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_mt76x02_send_tx_status
	cbnz	w19, LBB0_3
	b	LBB0_4
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT76_STATE_RUNNING,4,2         ; @MT76_STATE_RUNNING
.subsections_via_symbols
