	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800usb_tx_sta_fifo_read_completed
_rt2800usb_tx_sta_fifo_read_completed:  ## @rt2800usb_tx_sta_fifo_read_completed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	movl	%esi, %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_warn
LBB0_2:
	movq	_TX_STATUS_READING@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_rt2800_txstatus_pending
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movl	$1, %eax
	jmp	LBB0_14
LBB0_5:
	movl	%edx, %r14d
	movq	_TX_STA_FIFO_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %edi
	callq	_rt2x00_get_field32
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	leaq	16(%rbx), %rdi
	movl	%r14d, %esi
	callq	_kfifo_put
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_warn
LBB0_8:
	movl	12(%rbx), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	movl	$1, %eax
	jmp	LBB0_14
LBB0_9:
	movq	%rbx, %rdi
	callq	_rt2800_txstatus_timeout
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	12(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_queue_work
LBB0_11:
	movq	%rbx, %rdi
	callq	_rt2800_txstatus_pending
	testq	%rax, %rax
	je	LBB0_2
## %bb.12:
	addq	$4, %rbx
	movq	_TXSTATUS_READ_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hrtimer_start
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX status read failed %d\n"

	.comm	_TX_STA_FIFO_VALID,4,2          ## @TX_STA_FIFO_VALID
L_.str.1:                               ## @.str.1
	.asciz	"TX status FIFO overrun\n"

	.comm	_TXSTATUS_READ_INTERVAL,4,2     ## @TXSTATUS_READ_INTERVAL
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_TX_STATUS_READING,4,2          ## @TX_STATUS_READING
	.no_dead_strip	_rt2800usb_tx_sta_fifo_read_completed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800usb_tx_sta_fifo_read_completed
_rt2800usb_tx_sta_fifo_read_completed:  ; @rt2800usb_tx_sta_fifo_read_completed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	cbz	w1, LBB0_5
; %bb.1:
	str	x1, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_warn
LBB0_2:
Lloh2:
	adrp	x20, _TX_STATUS_READING@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TX_STATUS_READING@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x19
	bl	_rt2800_txstatus_pending
	cbz	x0, LBB0_13
; %bb.3:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_test_and_set_bit
	cbnz	w0, LBB0_13
; %bb.4:
	mov	w0, #1
	b	LBB0_14
LBB0_5:
	mov	x20, x2
Lloh4:
	adrp	x8, _TX_STA_FIFO_VALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TX_STA_FIFO_VALID@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_rt2x00_get_field32
	cbz	w0, LBB0_9
; %bb.6:
	add	x0, x19, #16
	mov	x1, x20
	bl	_kfifo_put
	cbnz	w0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_warn
LBB0_8:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	bl	_queue_work
	mov	w0, #1
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	bl	_rt2800_txstatus_timeout
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	bl	_queue_work
LBB0_11:
	mov	x0, x19
	bl	_rt2800_txstatus_pending
	cbz	x0, LBB0_2
; %bb.12:
	add	x0, x19, #4
Lloh9:
	adrp	x8, _TXSTATUS_READ_INTERVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXSTATUS_READ_INTERVAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_hrtimer_start
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX status read failed %d\n"

	.comm	_TX_STA_FIFO_VALID,4,2          ; @TX_STA_FIFO_VALID
l_.str.1:                               ; @.str.1
	.asciz	"TX status FIFO overrun\n"

	.comm	_TXSTATUS_READ_INTERVAL,4,2     ; @TXSTATUS_READ_INTERVAL
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_TX_STATUS_READING,4,2          ; @TX_STATUS_READING
	.no_dead_strip	_rt2800usb_tx_sta_fifo_read_completed
.subsections_via_symbols
