	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_create_function_irq
_rmi_create_function_irq:               ## @rmi_create_function_irq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	callq	_dev_get_drvdata
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.1:
	leaq	4(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	addq	%r12, %rdi
	movl	24(%rbx), %esi
	callq	_set_bit
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	addq	%r12, %rsi
	callq	_irq_create_mapping
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_irq_set_chip_data
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rmi_irq_chip@GOTPCREL(%rip), %rsi
	callq	_irq_set_chip_and_handler
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	movl	$1, %esi
	callq	_irq_set_nested_thread
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_err
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rmi_irq_chip,4,2               ## @rmi_irq_chip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d registering IRQ\n"

	.no_dead_strip	_rmi_create_function_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_create_function_irq
_rmi_create_function_irq:               ; @rmi_create_function_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #32]
	bl	_dev_get_drvdata
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x27, #0
	add	x22, x20, #4
Lloh0:
	adrp	x23, _rmi_irq_chip@GOTPAGE
Lloh1:
	ldr	x23, [x23, _rmi_irq_chip@GOTPAGEOFF]
Lloh2:
	adrp	x28, _IRQF_ONESHOT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _IRQF_ONESHOT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x0, x27, x8
	ldr	w1, [x20, #24]
	bl	_set_bit
	ldr	w0, [x21]
	ldr	x8, [x20, #16]
	add	x1, x27, x8
	bl	_irq_create_mapping
	ldr	x8, [x20, #8]
	lsl	x24, x27, #2
	str	w0, [x8, x24]
	mov	x1, x20
	bl	_irq_set_chip_data
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x24]
Lloh4:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_irq_set_chip_and_handler
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x24]
	mov	w1, #1
	bl	_irq_set_nested_thread
	ldr	x8, [x20, #8]
	ldr	w24, [x8, x24]
	ldr	w25, [x19]
	ldr	w26, [x28]
	mov	x0, x22
	bl	_dev_name
	mov	x5, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, #0
	mov	x3, x25
	mov	x4, x26
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x20]
	cmp	x27, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	mov	x24, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_dev_err
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rmi_irq_chip,4,2               ; @rmi_irq_chip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d registering IRQ\n"

	.no_dead_strip	_rmi_create_function_irq
.subsections_via_symbols
