	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_create_function
_rmi_create_function:                   ## @rmi_create_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	%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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_RMI_DEBUG_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rsi
	callq	_rmi_dbg
	movl	24(%rbx), %edi
	callq	_BITS_TO_LONGS
                                        ## kill: def $eax killed $eax def $rax
	leal	32(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	%r14, %rsi
	addq	$24, %rsi
	movq	%r15, %rdi
	callq	_rmi_driver_copy_pdt_to_fd
	movq	%r12, 16(%r14)
	movl	4(%r15), %eax
	movl	%eax, (%r14)
	movl	(%r13), %ecx
	movl	%ecx, 4(%r14)
	addl	%eax, (%r13)
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	addl	%ebx, %edi
	movl	12(%r14), %esi
	callq	_set_bit
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_rmi_register_function
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movl	(%r15), %eax
	cmpl	$52, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$1, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_11
## %bb.8:
	movq	%rsi, %rax
	addq	$16, %rax
	jmp	LBB0_10
LBB0_1:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_9:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %rax
	addq	$8, %rax
LBB0_10:
	movq	%r14, (%rax)
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	_RMI_SCAN_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"Initializing F%02X.\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate memory for F%02X\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RMI_SCAN_CONTINUE,4,2          ## @RMI_SCAN_CONTINUE
	.no_dead_strip	_rmi_create_function
.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
_rmi_create_function:                   ; @rmi_create_function
	.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	x20, x2
	mov	x23, x1
	mov	x24, x0
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _RMI_DEBUG_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMI_DEBUG_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x24
	bl	_rmi_dbg
	ldr	w0, [x19, #24]
	bl	_BITS_TO_LONGS
	lsl	w8, w0, #3
	add	w0, w8, #32
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	add	x1, x21, #24
	mov	x0, x20
	bl	_rmi_driver_copy_pdt_to_fd
	str	x24, [x21, #16]
	ldr	w8, [x20, #4]
	str	w8, [x21]
	ldr	w9, [x23]
	str	w9, [x21, #4]
	ldr	w9, [x23]
	add	w8, w9, w8
	str	w8, [x23]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	add	w0, w23, w8
	ldr	w1, [x21, #12]
	bl	_set_bit
	add	w23, w23, #1
	ldr	w8, [x21]
	cmp	w23, w8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x21
	bl	_rmi_register_function
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #52
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.7:
	add	x8, x19, #16
	b	LBB0_10
LBB0_8:
	ldr	w2, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
	add	x8, x19, #8
LBB0_10:
	str	x21, [x8]
LBB0_11:
	mov	x0, x22
	mov	x1, x19
	bl	_list_add_tail
Lloh13:
	adrp	x8, _RMI_SCAN_CONTINUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RMI_SCAN_CONTINUE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_12:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_DEBUG_CORE,4,2             ; @RMI_DEBUG_CORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing F%02X.\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate memory for F%02X\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RMI_SCAN_CONTINUE,4,2          ; @RMI_SCAN_CONTINUE
	.no_dead_strip	_rmi_create_function
.subsections_via_symbols
