	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RegReadString                  ## -- Begin function RegReadString
	.p2align	4, 0x90
_RegReadString:                         ## @RegReadString
	.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, %rbx
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_MID_TRACE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rdx, %rsi
	callq	_DH_DbgPrint
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_4
## %bb.2:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_RegOpenKey
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$0, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:
	movq	-48(%rbp), %rsi
	jmp	LBB0_5
LBB0_4:
	movq	%r14, -48(%rbp)
	movq	%r14, %rsi
LBB0_5:
	movl	(%r13), %edi
	callq	_DH_DbgPrint
	movq	-48(%rbp), %rdi
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %r9
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_RegQueryValueEx
	movq	%rax, %rbx
	movq	%r13, %rax
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rbx
	jne	LBB0_6
## %bb.7:
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi
	callq	_DH_DbgPrint
	movq	-56(%rbp), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %r9
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_RegQueryValueEx
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	movq	_MID_TRACE@GOTPCREL(%rip), %r13
	jne	LBB0_11
## %bb.10:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_DH_DbgPrint
	jmp	LBB0_12
LBB0_6:
	movq	%rax, %r13
	jmp	LBB0_12
LBB0_8:
	xorl	%r12d, %r12d
	movq	_MID_TRACE@GOTPCREL(%rip), %r13
	jmp	LBB0_12
LBB0_11:
	movq	%r12, %rdi
	callq	_free
	xorl	%r12d, %r12d
LBB0_12:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.13:
	cmpq	%r14, %rsi
	je	LBB0_15
## %bb.14:
	movl	(%r13), %edi
	callq	_DH_DbgPrint
	movq	-48(%rbp), %rdi
	callq	_RegCloseKey
LBB0_15:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_DH_DbgPrint
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MID_TRACE,4,2                  ## @MID_TRACE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RegReadString                  ; -- Begin function RegReadString
	.p2align	2
_RegReadString:                         ; @RegReadString
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x23, _MID_TRACE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MID_TRACE@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x2
	bl	_DH_DbgPrint
Lloh2:
	adrp	x24, _ERROR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ERROR_SUCCESS@GOTPAGEOFF]
	cbz	x21, LBB0_4
; %bb.1:
	ldrb	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_RegOpenKey
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
	ldr	x1, [sp]
	b	LBB0_5
LBB0_4:
	str	x19, [sp]
	mov	x1, x19
LBB0_5:
	ldr	w0, [x23]
	bl	_DH_DbgPrint
	ldr	x0, [sp]
	add	x5, sp, #8
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_RegQueryValueEx
	mov	x21, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.6:
	ldr	w0, [x23]
	ldr	x1, [sp, #8]
	bl	_DH_DbgPrint
	ldr	x0, [sp, #8]
	bl	_malloc
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.7:
	ldr	x0, [sp]
	add	x5, sp, #8
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, x22
	bl	_RegQueryValueEx
	mov	x21, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_DH_DbgPrint
	b	LBB0_12
LBB0_9:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_12
LBB0_10:
	mov	x0, x22
	bl	_free
LBB0_11:
	mov	x22, #0
LBB0_12:
	ldr	x1, [sp]
	cbz	x1, LBB0_15
; %bb.13:
	cmp	x1, x19
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x23]
	bl	_DH_DbgPrint
	ldr	x0, [sp]
	bl	_RegCloseKey
LBB0_15:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_DH_DbgPrint
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MID_TRACE,4,2                  ; @MID_TRACE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
.subsections_via_symbols
