	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetRegValue                    ## -- Begin function GetRegValue
	.p2align	4, 0x90
_GetRegValue:                           ## @GetRegValue
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	movq	_FALSE@GOTPCREL(%rip), %r13
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r12, -64(%rbp)
	movl	-44(%rbp), %edi
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r9
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_RegQueryValueExW
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_RegCloseKey
	cmpq	(%r15), %rbx
	jne	LBB0_5
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)
	jne	LBB0_5
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %r13
	cmpq	$8, %r12
	je	LBB0_5
## %bb.4:
	andq	$-4, %r12
	movl	$0, -4(%r12,%r14)
LBB0_5:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetRegValue                    ; -- Begin function GetRegValue
	.p2align	2
_GetRegValue:                           ; @GetRegValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
Lloh0:
	adrp	x8, _KEY_QUERY_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	w2, #0
	bl	_RegOpenKeyExW
Lloh3:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	str	x20, [sp, #8]
	ldr	w0, [sp, #28]
	add	x3, sp, #16
	add	x5, sp, #8
	mov	x1, x22
	mov	x2, #0
	mov	x4, x19
	bl	_RegQueryValueExW
	mov	x22, x0
	ldr	w0, [sp, #28]
	bl	_RegCloseKey
	ldr	x8, [x23]
	ldr	x9, [sp, #16]
	cmp	x22, x8
	ccmp	x9, x21, #0, eq
	b.eq	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	cmp	x20, #8
	b.eq	LBB0_5
; %bb.4:
	and	x8, x20, #0xfffffffffffffffc
	add	x8, x8, x19
	stur	wzr, [x8, #-4]
LBB0_5:
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
