	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smscore_find_registry
_smscore_find_registry:                 ## @smscore_find_registry
	.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, %r14
	movq	_g_smscore_registrylock@GOTPCREL(%rip), %rdi
	callq	_kmutex_lock
	movq	_g_smscore_registry@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	cmpq	%r15, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rbx
	cmpq	%r15, %rbx
	jne	LBB0_2
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_default_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_g_smscore_registry@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_7:
	movq	_g_smscore_registrylock@GOTPCREL(%rip), %rdi
	callq	_kmutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_smscore_registrylock,4,2     ## @g_smscore_registrylock
	.comm	_g_smscore_registry,8,3         ## @g_smscore_registry
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_default_mode,4,2               ## @default_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create smscore_registry.\n"

	.no_dead_strip	_smscore_find_registry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smscore_find_registry
_smscore_find_registry:                 ; @smscore_find_registry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x0, _g_smscore_registrylock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _g_smscore_registrylock@GOTPAGEOFF]
	bl	_kmutex_lock
Lloh2:
	adrp	x21, _g_smscore_registry@GOTPAGE
Lloh3:
	ldr	x21, [x21, _g_smscore_registry@GOTPAGEOFF]
	ldr	x19, [x21]
	cmp	x19, x21
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	w2, #4
	bl	_strncmp
	cbz	w0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x19, [x19]
	cmp	x19, x21
	b.ne	LBB0_1
LBB0_3:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _default_mode@GOTPAGE
Lloh8:
	ldr	x8, [x8, _default_mode@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	w2, #4
	bl	_strscpy
Lloh10:
	adrp	x1, _g_smscore_registry@GOTPAGE
Lloh11:
	ldr	x1, [x1, _g_smscore_registry@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_6:
Lloh14:
	adrp	x0, _g_smscore_registrylock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _g_smscore_registrylock@GOTPAGEOFF]
	bl	_kmutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_g_smscore_registrylock,4,2     ; @g_smscore_registrylock
	.comm	_g_smscore_registry,8,3         ; @g_smscore_registry
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_default_mode,4,2               ; @default_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create smscore_registry.\n"

	.no_dead_strip	_smscore_find_registry
.subsections_via_symbols
