	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_interrupt           ## -- Begin function rt2800mmio_interrupt
	.p2align	4, 0x90
_rt2800mmio_interrupt:                  ## @rt2800mmio_interrupt
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_INT_SOURCE_CSR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, %r12d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rt2x00mmio_register_write
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	_DEVICE_STATE_ENABLED_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r14), %rsi
	callq	_test_bit
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:
	movl	%r12d, %eax
	notl	%eax
	movl	%eax, -36(%rbp)
	movq	_INT_SOURCE_CSR_TX_FIFO_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_INT_MASK_CSR_TX_FIFO_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	%r14, %rdi
	callq	_rt2800mmio_fetch_txstatus
	leaq	24(%r14), %rdi
	callq	_kfifo_is_empty
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	20(%r14), %rdi
	callq	_tasklet_schedule
LBB0_6:
	movq	_INT_SOURCE_CSR_PRE_TBTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	16(%r14), %rdi
	callq	_tasklet_hi_schedule
LBB0_8:
	movq	_INT_SOURCE_CSR_TBTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	12(%r14), %rdi
	callq	_tasklet_hi_schedule
LBB0_10:
	movq	_INT_SOURCE_CSR_RX_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	8(%r14), %rdi
	callq	_tasklet_schedule
LBB0_12:
	movq	_INT_SOURCE_CSR_AUTO_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	4(%r14), %rdi
	callq	_tasklet_schedule
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_INT_MASK_CSR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_read
	andl	-36(%rbp), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rt2x00mmio_register_write
	movq	%r14, %rdi
	callq	_spin_unlock
	jmp	LBB0_15
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_15:
	movl	(%r15), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_SOURCE_CSR,4,2             ## @INT_SOURCE_CSR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DEVICE_STATE_ENABLED_RADIO,4,2 ## @DEVICE_STATE_ENABLED_RADIO
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_INT_SOURCE_CSR_TX_FIFO_STATUS,4,2 ## @INT_SOURCE_CSR_TX_FIFO_STATUS
	.comm	_INT_MASK_CSR_TX_FIFO_STATUS,4,2 ## @INT_MASK_CSR_TX_FIFO_STATUS
	.comm	_INT_SOURCE_CSR_PRE_TBTT,4,2    ## @INT_SOURCE_CSR_PRE_TBTT
	.comm	_INT_SOURCE_CSR_TBTT,4,2        ## @INT_SOURCE_CSR_TBTT
	.comm	_INT_SOURCE_CSR_RX_DONE,4,2     ## @INT_SOURCE_CSR_RX_DONE
	.comm	_INT_SOURCE_CSR_AUTO_WAKEUP,4,2 ## @INT_SOURCE_CSR_AUTO_WAKEUP
	.comm	_INT_MASK_CSR,4,2               ## @INT_MASK_CSR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_interrupt           ; -- Begin function rt2800mmio_interrupt
	.p2align	2
_rt2800mmio_interrupt:                  ; @rt2800mmio_interrupt
	.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
Lloh0:
	adrp	x21, _INT_SOURCE_CSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INT_SOURCE_CSR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_rt2x00mmio_register_write
	cbz	w20, LBB0_15
; %bb.1:
Lloh2:
	adrp	x8, _DEVICE_STATE_ENABLED_RADIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEVICE_STATE_ENABLED_RADIO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_test_bit
	cbz	w0, LBB0_14
; %bb.2:
	mvn	w8, w20
	str	w8, [sp, #12]
Lloh5:
	adrp	x8, _INT_SOURCE_CSR_TX_FIFO_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INT_SOURCE_CSR_TX_FIFO_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _INT_MASK_CSR_TX_FIFO_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT_MASK_CSR_TX_FIFO_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
	mov	x0, x19
	bl	_rt2800mmio_fetch_txstatus
	add	x0, x19, #24
	bl	_kfifo_is_empty
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, x19, #20
	bl	_tasklet_schedule
LBB0_5:
Lloh11:
	adrp	x8, _INT_SOURCE_CSR_PRE_TBTT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INT_SOURCE_CSR_PRE_TBTT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_7
; %bb.6:
	add	x0, x19, #16
	bl	_tasklet_hi_schedule
LBB0_7:
Lloh14:
	adrp	x8, _INT_SOURCE_CSR_TBTT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INT_SOURCE_CSR_TBTT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_9
; %bb.8:
	add	x0, x19, #12
	bl	_tasklet_hi_schedule
LBB0_9:
Lloh17:
	adrp	x8, _INT_SOURCE_CSR_RX_DONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INT_SOURCE_CSR_RX_DONE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_11
; %bb.10:
	add	x0, x19, #8
	bl	_tasklet_schedule
LBB0_11:
Lloh20:
	adrp	x8, _INT_SOURCE_CSR_AUTO_WAKEUP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INT_SOURCE_CSR_AUTO_WAKEUP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_13
; %bb.12:
	add	x0, x19, #4
	bl	_tasklet_schedule
LBB0_13:
	mov	x0, x19
	bl	_spin_lock
Lloh23:
	adrp	x20, _INT_MASK_CSR@GOTPAGE
Lloh24:
	ldr	x20, [x20, _INT_MASK_CSR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	ldr	w8, [sp, #12]
	and	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
	mov	x0, x19
	bl	_spin_unlock
LBB0_14:
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh27:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_SOURCE_CSR,4,2             ; @INT_SOURCE_CSR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DEVICE_STATE_ENABLED_RADIO,4,2 ; @DEVICE_STATE_ENABLED_RADIO
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_INT_SOURCE_CSR_TX_FIFO_STATUS,4,2 ; @INT_SOURCE_CSR_TX_FIFO_STATUS
	.comm	_INT_MASK_CSR_TX_FIFO_STATUS,4,2 ; @INT_MASK_CSR_TX_FIFO_STATUS
	.comm	_INT_SOURCE_CSR_PRE_TBTT,4,2    ; @INT_SOURCE_CSR_PRE_TBTT
	.comm	_INT_SOURCE_CSR_TBTT,4,2        ; @INT_SOURCE_CSR_TBTT
	.comm	_INT_SOURCE_CSR_RX_DONE,4,2     ; @INT_SOURCE_CSR_RX_DONE
	.comm	_INT_SOURCE_CSR_AUTO_WAKEUP,4,2 ; @INT_SOURCE_CSR_AUTO_WAKEUP
	.comm	_INT_MASK_CSR,4,2               ; @INT_MASK_CSR
.subsections_via_symbols
