	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_QueryRegistryValue             ## -- Begin function QueryRegistryValue
	.p2align	4, 0x90
_QueryRegistryValue:                    ## @QueryRegistryValue
	.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, %r15
	movq	$0, (%rcx)
	movq	_REG_NONE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rdx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movl	%esi, %r12d
	movl	%edi, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_RegQueryValueExW
	movq	%rax, %r14
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_11
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r15), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
LBB0_5:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_13
## %bb.6:
	testq	%rbx, %rbx
	movq	_REG_NONE@GOTPCREL(%rip), %r14
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_8:
	movq	$0, (%r15)
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_NONE,8,3                   ## @REG_NONE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_QueryRegistryValue             ; -- Begin function QueryRegistryValue
	.p2align	2
_QueryRegistryValue:                    ; @QueryRegistryValue
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
Lloh0:
	adrp	x25, _REG_NONE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REG_NONE@GOTPAGEOFF]
	str	xzr, [x3]
	ldr	x8, [x25]
	str	x8, [x2]
Lloh2:
	adrp	x26, _TRUE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x22, x1
	mov	x23, x0
	mov	x21, #0
Lloh4:
	adrp	x27, _ERROR_SUCCESS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh6:
	adrp	x28, _ERROR_MORE_DATA@GOTPAGE
Lloh7:
	ldr	x28, [x28, _ERROR_MORE_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, #0
	mov	x3, x19
	mov	x4, x21
	mov	x5, x20
	bl	_RegQueryValueExW
	mov	x24, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x21, LBB0_6
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	cmp	x24, x8
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_GetProcessHeap
	ldr	x2, [x20]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	cbnz	x8, LBB0_2
LBB0_8:
	ldr	x8, [x27]
	cmp	x24, x8
	b.eq	LBB0_12
; %bb.9:
	cbz	x21, LBB0_11
; %bb.10:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_11:
	mov	x21, #0
	str	xzr, [x20]
	ldr	x8, [x25]
	str	x8, [x19]
LBB0_12:
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_NONE,8,3                   ; @REG_NONE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
.subsections_via_symbols
