	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_interrupt
_rt61pci_interrupt:                     ## @rt61pci_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_MCU_INT_SOURCE_CSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rt2x00mmio_register_write
	movq	_INT_SOURCE_CSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rt2x00mmio_register_write
	movl	%r15d, %eax
	orl	%r14d, %eax
	je	LBB0_1
## %bb.2:
	movq	_DEVICE_STATE_ENABLED_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_test_bit
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movq	_INT_SOURCE_CSR_RXDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	16(%rbx), %rdi
	callq	_tasklet_schedule
LBB0_5:
	movq	_INT_SOURCE_CSR_TXDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	12(%rbx), %rdi
	callq	_tasklet_schedule
LBB0_7:
	movq	_INT_SOURCE_CSR_BEACON_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	8(%rbx), %rdi
	callq	_tasklet_hi_schedule
LBB0_9:
	movq	_MCU_INT_SOURCE_CSR_TWAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	4(%rbx), %rdi
	callq	_tasklet_schedule
LBB0_11:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_INT_MASK_CSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rt2x00mmio_register_read
	orl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rt2x00mmio_register_write
	movq	_MCU_INT_MASK_CSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rt2x00mmio_register_read
	orl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rt2x00mmio_register_write
	movq	%rbx, %rdi
	callq	_spin_unlock
	jmp	LBB0_12
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
LBB0_12:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_INT_SOURCE_CSR,4,2         ## @MCU_INT_SOURCE_CSR
	.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_RXDONE,4,2      ## @INT_SOURCE_CSR_RXDONE
	.comm	_INT_SOURCE_CSR_TXDONE,4,2      ## @INT_SOURCE_CSR_TXDONE
	.comm	_INT_SOURCE_CSR_BEACON_DONE,4,2 ## @INT_SOURCE_CSR_BEACON_DONE
	.comm	_MCU_INT_SOURCE_CSR_TWAKEUP,4,2 ## @MCU_INT_SOURCE_CSR_TWAKEUP
	.comm	_INT_MASK_CSR,4,2               ## @INT_MASK_CSR
	.comm	_MCU_INT_MASK_CSR,4,2           ## @MCU_INT_MASK_CSR
	.no_dead_strip	_rt61pci_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_interrupt
_rt61pci_interrupt:                     ; @rt61pci_interrupt
	.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	x19, x1
Lloh0:
	adrp	x21, _MCU_INT_SOURCE_CSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MCU_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
Lloh2:
	adrp	x22, _INT_SOURCE_CSR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INT_SOURCE_CSR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_rt2x00mmio_register_write
	orr	w8, w21, w20
	cbz	w8, LBB0_12
; %bb.1:
Lloh4:
	adrp	x8, _DEVICE_STATE_ENABLED_RADIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DEVICE_STATE_ENABLED_RADIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_bit
	cbz	w0, LBB0_11
; %bb.2:
Lloh7:
	adrp	x8, _INT_SOURCE_CSR_RXDONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INT_SOURCE_CSR_RXDONE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x19, #16
	bl	_tasklet_schedule
LBB0_4:
Lloh10:
	adrp	x8, _INT_SOURCE_CSR_TXDONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INT_SOURCE_CSR_TXDONE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x19, #12
	bl	_tasklet_schedule
LBB0_6:
Lloh13:
	adrp	x8, _INT_SOURCE_CSR_BEACON_DONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INT_SOURCE_CSR_BEACON_DONE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_8
; %bb.7:
	add	x0, x19, #8
	bl	_tasklet_hi_schedule
LBB0_8:
Lloh16:
	adrp	x8, _MCU_INT_SOURCE_CSR_TWAKEUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MCU_INT_SOURCE_CSR_TWAKEUP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_10
; %bb.9:
	add	x0, x19, #4
	bl	_tasklet_schedule
LBB0_10:
	mov	x0, x19
	bl	_spin_lock
Lloh19:
	adrp	x22, _INT_MASK_CSR@GOTPAGE
Lloh20:
	ldr	x22, [x22, _INT_MASK_CSR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	orr	w2, w0, w21
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
Lloh21:
	adrp	x21, _MCU_INT_MASK_CSR@GOTPAGE
Lloh22:
	ldr	x21, [x21, _MCU_INT_MASK_CSR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00mmio_register_read
	orr	w2, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2x00mmio_register_write
	mov	x0, x19
	bl	_spin_unlock
LBB0_11:
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh25:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_INT_SOURCE_CSR,4,2         ; @MCU_INT_SOURCE_CSR
	.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_RXDONE,4,2      ; @INT_SOURCE_CSR_RXDONE
	.comm	_INT_SOURCE_CSR_TXDONE,4,2      ; @INT_SOURCE_CSR_TXDONE
	.comm	_INT_SOURCE_CSR_BEACON_DONE,4,2 ; @INT_SOURCE_CSR_BEACON_DONE
	.comm	_MCU_INT_SOURCE_CSR_TWAKEUP,4,2 ; @MCU_INT_SOURCE_CSR_TWAKEUP
	.comm	_INT_MASK_CSR,4,2               ; @INT_MASK_CSR
	.comm	_MCU_INT_MASK_CSR,4,2           ; @MCU_INT_MASK_CSR
	.no_dead_strip	_rt61pci_interrupt
.subsections_via_symbols
