	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_irq_fn
_rmi_irq_fn:                            ## @rmi_irq_fn
	.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, %r15
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_kfifo_get
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	-40(%rbp), %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_2:
	movq	%r15, %rdi
	callq	_rmi_process_interrupt_requests
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_RMI_DEBUG_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rsi
	movl	%eax, %ecx
	callq	_rmi_dbg
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rdi
	callq	_kfree
	movq	$0, -48(%rbp)
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfifo_is_empty
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_7:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_rmi_irq_fn
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMI_DEBUG_CORE,4,2             ## @RMI_DEBUG_CORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to process interrupt request: %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rmi_irq_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_irq_fn
_rmi_irq_fn:                            ; @rmi_irq_fn
	.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
	mov	x20, x0
	mov	x0, x1
	bl	_dev_get_drvdata
	mov	x21, x0
	stp	xzr, xzr, [sp]
	mov	x1, sp
	bl	_kfifo_get
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #8]
	ldr	x9, [x21, #24]
	str	w8, [x9]
	ldr	q0, [sp]
	stur	q0, [x21, #8]
LBB0_2:
	mov	x0, x19
	bl	_rmi_process_interrupt_requests
	cbz	w0, LBB0_4
; %bb.3:
	mov	x3, x0
Lloh0:
	adrp	x8, _RMI_DEBUG_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMI_DEBUG_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_rmi_dbg
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
	ldr	x0, [sp]
	bl	_kfree
	str	xzr, [sp]
LBB0_6:
	mov	x0, x21
	bl	_kfifo_is_empty
	cbz	w0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_rmi_irq_fn
LBB0_9:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_DEBUG_CORE,4,2             ; @RMI_DEBUG_CORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to process interrupt request: %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rmi_irq_fn
.subsections_via_symbols
