	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmi_unregister_function        ## -- Begin function rmi_unregister_function
	.p2align	4, 0x90
_rmi_unregister_function:               ## @rmi_unregister_function
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_RMI_DEBUG_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %r14
	movl	20(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	callq	_rmi_dbg
	movq	%r14, %rdi
	callq	_device_del
	movl	16(%r15), %edi
	callq	_of_node_put
	movq	%r14, %rdi
	callq	_put_device
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_irq_dispose_mapping
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	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	"Unregistering F%02X.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmi_unregister_function        ; -- Begin function rmi_unregister_function
	.p2align	2
_rmi_unregister_function:               ; @rmi_unregister_function
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _RMI_DEBUG_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMI_DEBUG_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #16
	ldr	w3, [x19, #20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_rmi_dbg
	mov	x0, x20
	bl	_device_del
	ldr	w0, [x19, #16]
	bl	_of_node_put
	mov	x0, x20
	bl	_put_device
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_irq_dispose_mapping
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_DEBUG_CORE,4,2             ; @RMI_DEBUG_CORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unregistering F%02X.\n"

.subsections_via_symbols
