	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_irq_init
_rmi_irq_init:                          ## @rmi_irq_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rmi_get_platform_data
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_dev_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_irq_get_trigger_type
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movl	(%r14), %r15d
	movq	_rmi_irq_fn@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_dev_driver_string
	movq	%r12, (%rsp)
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	%ebx, %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_rmi_irq_fn,4,2                 ## @rmi_irq_fn
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register interrupt %d\n"

	.no_dead_strip	_rmi_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_irq_init
_rmi_irq_init:                          ; @rmi_irq_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_rmi_get_platform_data
	mov	x20, x0
	mov	x0, x19
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	w0, [x20]
	bl	_irq_get_trigger_type
Lloh0:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, w0, eq
	ldr	w22, [x20]
Lloh3:
	adrp	x9, _rmi_irq_fn@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rmi_irq_fn@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x9]
Lloh6:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w24, w9, w8
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_dev_driver_string
	mov	x5, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x3, x23
	mov	x4, x24
	mov	x6, x19
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w22, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_3
LBB0_2:
	mov	x22, x0
	ldr	w2, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_3:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_rmi_irq_fn,4,2                 ; @rmi_irq_fn
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register interrupt %d\n"

	.no_dead_strip	_rmi_irq_init
.subsections_via_symbols
