	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_txdone_entry_check
_rt2800_txdone_entry_check:             ## @rt2800_txdone_entry_check
	.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, %ebx
	movq	%rdi, %r12
	movq	_ENTRY_DATA_IO_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %rsi
	callq	_test_bit
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.1:
	movq	_TX_STA_FIFO_WCID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %r14d
	movq	_TX_STA_FIFO_TX_ACK_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_TX_STA_FIFO_PID_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TX_STA_FIFO_TX_AGGRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_rt2800_drv_get_txwi
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r13d
	movq	_TXWI_W1_WIRELESS_CLI_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %r15d
	movq	_TXWI_W1_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %ebx
	movq	_TXWI_W1_PACKETID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	cmpl	%r15d, %r14d
	jne	LBB0_5
## %bb.2:
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.3:
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.4:
	cmpl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_6
LBB0_5:
	movq	8(%r12), %rax
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_rt2x00_dbg
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTRY_DATA_IO_FAILED,4,2       ## @ENTRY_DATA_IO_FAILED
	.comm	_TX_STA_FIFO_WCID,4,2           ## @TX_STA_FIFO_WCID
	.comm	_TX_STA_FIFO_TX_ACK_REQUIRED,4,2 ## @TX_STA_FIFO_TX_ACK_REQUIRED
	.comm	_TX_STA_FIFO_PID_TYPE,4,2       ## @TX_STA_FIFO_PID_TYPE
	.comm	_TX_STA_FIFO_TX_AGGRE,4,2       ## @TX_STA_FIFO_TX_AGGRE
	.comm	_TXWI_W1_WIRELESS_CLI_ID,4,2    ## @TXWI_W1_WIRELESS_CLI_ID
	.comm	_TXWI_W1_ACK,4,2                ## @TXWI_W1_ACK
	.comm	_TXWI_W1_PACKETID,4,2           ## @TXWI_W1_PACKETID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX status report missed for queue %d entry %d\n"

	.no_dead_strip	_rt2800_txdone_entry_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_txdone_entry_check
_rt2800_txdone_entry_check:             ; @rt2800_txdone_entry_check
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENTRY_DATA_IO_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTRY_DATA_IO_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _TX_STA_FIFO_WCID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_STA_FIFO_WCID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	mov	x20, x0
Lloh6:
	adrp	x8, _TX_STA_FIFO_TX_ACK_REQUIRED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_STA_FIFO_TX_ACK_REQUIRED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	mov	x23, x0
Lloh9:
	adrp	x8, _TX_STA_FIFO_PID_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_STA_FIFO_PID_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	mov	x21, x0
Lloh12:
	adrp	x8, _TX_STA_FIFO_TX_AGGRE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_STA_FIFO_TX_AGGRE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	mov	x22, x0
	mov	x0, x19
	bl	_rt2800_drv_get_txwi
	mov	w1, #1
	bl	_rt2x00_desc_read
	mov	x24, x0
Lloh15:
	adrp	x8, _TXWI_W1_WIRELESS_CLI_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TXWI_W1_WIRELESS_CLI_ID@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
	mov	x25, x0
Lloh18:
	adrp	x8, _TXWI_W1_ACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TXWI_W1_ACK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_rt2x00_get_field32
	mov	x26, x0
Lloh21:
	adrp	x8, _TXWI_W1_PACKETID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TXWI_W1_PACKETID@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_rt2x00_get_field32
	cmp	w20, w25
	ccmp	w23, w26, #0, eq
	b.ne	LBB0_4
; %bb.2:
	cmp	w22, #0
	ccmp	w21, w0, #4, eq
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	ldp	w2, w0, [x8]
	ldr	w3, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rt2x00_dbg
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTRY_DATA_IO_FAILED,4,2       ; @ENTRY_DATA_IO_FAILED
	.comm	_TX_STA_FIFO_WCID,4,2           ; @TX_STA_FIFO_WCID
	.comm	_TX_STA_FIFO_TX_ACK_REQUIRED,4,2 ; @TX_STA_FIFO_TX_ACK_REQUIRED
	.comm	_TX_STA_FIFO_PID_TYPE,4,2       ; @TX_STA_FIFO_PID_TYPE
	.comm	_TX_STA_FIFO_TX_AGGRE,4,2       ; @TX_STA_FIFO_TX_AGGRE
	.comm	_TXWI_W1_WIRELESS_CLI_ID,4,2    ; @TXWI_W1_WIRELESS_CLI_ID
	.comm	_TXWI_W1_ACK,4,2                ; @TXWI_W1_ACK
	.comm	_TXWI_W1_PACKETID,4,2           ; @TXWI_W1_PACKETID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX status report missed for queue %d entry %d\n"

	.no_dead_strip	_rt2800_txdone_entry_check
.subsections_via_symbols
