	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_registry_key             ## -- Begin function parse_registry_key
	.p2align	4, 0x90
_parse_registry_key:                    ## @parse_registry_key
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_sane_path
	movq	_FALSE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_strchrW
	leaq	8(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%rax, %rcx
	movq	%rcx, (%r15)
	movq	%rbx, %rdi
	callq	_path_get_rootkey
	movl	%eax, (%r12)
	movq	(%r15), %rsi
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movl	%eax, %edi
	callq	_get_long_key
	movq	%rax, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_6
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	$0, -8(%rsi)
LBB0_4:
	movq	_STRING_INVALID_SYSTEM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_output_message
LBB0_6:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_STRING_INVALID_SYSTEM_KEY,4,2  ## @STRING_INVALID_SYSTEM_KEY
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_registry_key             ; -- Begin function parse_registry_key
	.p2align	2
_parse_registry_key:                    ; @parse_registry_key
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_sane_path
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #92
	bl	_strchrW
	add	x8, x0, #8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	str	x8, [x21]
	mov	x0, x19
	bl	_path_get_rootkey
	str	w0, [x22]
	ldr	x1, [x21]
	cbz	w0, LBB0_3
; %bb.2:
	bl	_get_long_key
	str	x0, [x20]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	cbz	x1, LBB0_5
; %bb.4:
	stur	xzr, [x1, #-8]
LBB0_5:
Lloh2:
	adrp	x8, _STRING_INVALID_SYSTEM_KEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRING_INVALID_SYSTEM_KEY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_output_message
LBB0_6:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_STRING_INVALID_SYSTEM_KEY,4,2  ; @STRING_INVALID_SYSTEM_KEY
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
