	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00usb_interrupt_txdone
_rt2x00usb_interrupt_txdone:            ## @rt2x00usb_interrupt_txdone
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	movq	_ENTRY_OWNER_DEVICE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.2:
	movq	_ENTRY_DATA_IO_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_3:
	movq	%rbx, %rdi
	callq	_rt2x00lib_dmadone
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_5:
	movq	_REQUIRE_TXSTATUS_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_has_cap_flag
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	leaq	8(%r14), %rdi
	callq	_kfifo_is_empty
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTRY_OWNER_DEVICE_DATA,4,2    ## @ENTRY_OWNER_DEVICE_DATA
	.comm	_ENTRY_DATA_IO_FAILED,4,2       ## @ENTRY_DATA_IO_FAILED
	.comm	_REQUIRE_TXSTATUS_FIFO,4,2      ## @REQUIRE_TXSTATUS_FIFO
	.no_dead_strip	_rt2x00usb_interrupt_txdone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00usb_interrupt_txdone
_rt2x00usb_interrupt_txdone:            ; @rt2x00usb_interrupt_txdone
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _ENTRY_OWNER_DEVICE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTRY_OWNER_DEVICE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ENTRY_DATA_IO_FAILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENTRY_DATA_IO_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
LBB0_3:
	mov	x0, x20
	bl	_rt2x00lib_dmadone
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	blr	x8
LBB0_5:
Lloh6:
	adrp	x8, _REQUIRE_TXSTATUS_FIFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQUIRE_TXSTATUS_FIFO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_has_cap_flag
	cbz	w0, LBB0_8
; %bb.6:
	add	x0, x19, #8
	bl	_kfifo_is_empty
	cbz	w0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x19, #4]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_queue_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTRY_OWNER_DEVICE_DATA,4,2    ; @ENTRY_OWNER_DEVICE_DATA
	.comm	_ENTRY_DATA_IO_FAILED,4,2       ; @ENTRY_DATA_IO_FAILED
	.comm	_REQUIRE_TXSTATUS_FIFO,4,2      ; @REQUIRE_TXSTATUS_FIFO
	.no_dead_strip	_rt2x00usb_interrupt_txdone
.subsections_via_symbols
