	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_entry_txstatus_timeout
_rt2800_entry_txstatus_timeout:         ## @rt2800_entry_txstatus_timeout
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ENTRY_DATA_STATUS_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_DEVICE_STATE_FLUSHING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	movl	$2000, %eax                     ## imm = 0x7D0
	movl	$50, %edi
	cmovel	%eax, %edi
	callq	_msecs_to_jiffies
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addq	16(%r14), %rax
	movq	%rax, %rsi
	callq	_time_after
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_rt2x00_dbg
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTRY_DATA_STATUS_PENDING,4,2  ## @ENTRY_DATA_STATUS_PENDING
	.comm	_DEVICE_STATE_FLUSHING,4,2      ## @DEVICE_STATE_FLUSHING
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX status timeout for entry %d in queue %d\n"

	.no_dead_strip	_rt2800_entry_txstatus_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_entry_txstatus_timeout
_rt2800_entry_txstatus_timeout:         ; @rt2800_entry_txstatus_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ENTRY_DATA_STATUS_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTRY_DATA_STATUS_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x1, #24
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DEVICE_STATE_FLUSHING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEVICE_STATE_FLUSHING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cmp	x0, #0
	mov	w8, #50
	mov	w9, #2000
	csel	w0, w9, w8, eq
	bl	_msecs_to_jiffies
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	add	x1, x9, x0
	mov	x0, x8
	bl	_time_after
	mov	x20, x0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	w2, [x19, #8]
	ldp	w3, w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rt2x00_dbg
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTRY_DATA_STATUS_PENDING,4,2  ; @ENTRY_DATA_STATUS_PENDING
	.comm	_DEVICE_STATE_FLUSHING,4,2      ; @DEVICE_STATE_FLUSHING
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX status timeout for entry %d in queue %d\n"

	.no_dead_strip	_rt2800_entry_txstatus_timeout
.subsections_via_symbols
