	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_QueryStringValue               ## -- Begin function QueryStringValue
	.p2align	4, 0x90
_QueryStringValue:                      ## @QueryStringValue
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	$0, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rdx
	callq	_RegOpenKey
	movl	%eax, %ebx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rdi
LBB0_3:
	leal	-4(,%r12,4), %eax
	movl	%eax, -36(%rbp)
	leaq	-52(%rbp), %rcx
	leaq	-36(%rbp), %r9
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_RegQueryValueEx
	movl	%eax, %ebx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.4:
	movl	-52(%rbp), %eax
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	xorl	%edi, %edi
	callq	__T
	movslq	-36(%rbp), %rcx
	andq	$-4, %rcx
	movl	%eax, (%r14,%rcx)
	movl	(%r15), %eax
LBB0_7:
	cmpl	%eax, %ebx
	je	LBB0_9
LBB0_8:
	xorl	%edi, %edi
	callq	__T
	movl	%eax, (%r14)
LBB0_9:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_RegCloseKey
LBB0_11:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %eax
	movl	$-1, %ebx
	cmpl	%eax, %ebx
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ## @REG_SZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_QueryStringValue               ; -- Begin function QueryStringValue
	.p2align	2
_QueryStringValue:                      ; @QueryStringValue
	.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	x22, x4
	mov	x19, x3
	mov	x21, x2
	str	xzr, [sp, #8]
Lloh0:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
	cbz	x1, LBB0_3
; %bb.1:
	add	x2, sp, #8
	bl	_RegOpenKey
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.2:
	ldr	x0, [sp, #8]
LBB0_3:
	lsl	w8, w22, #2
	sub	w8, w8, #4
	str	w8, [sp, #4]
	mov	x3, sp
	add	x5, sp, #4
	mov	x1, x21
	mov	x2, #0
	mov	x4, x19
	bl	_RegQueryValueEx
	mov	x20, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.4:
	cmp	w20, w8
	b.ne	LBB0_12
LBB0_5:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_7
LBB0_6:
	bl	_RegCloseKey
LBB0_7:
	mov	x0, x20
	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
LBB0_8:
	ldr	w8, [sp]
Lloh2:
	adrp	x9, _REG_SZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REG_SZ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	mov	w0, #0
	bl	__T
	ldrsw	x8, [sp, #4]
	and	x8, x8, #0xfffffffffffffffc
	str	w0, [x19, x8]
	ldr	w8, [x23]
	cmp	w20, w8
	b.eq	LBB0_5
	b	LBB0_12
LBB0_10:
	mov	x20, x0
	cmp	w20, w8
	b.eq	LBB0_5
	b	LBB0_12
LBB0_11:
	mov	x8, x20
	mov	w20, #-1
	cmp	w20, w8
	b.eq	LBB0_5
LBB0_12:
	mov	w0, #0
	bl	__T
	str	w0, [x19]
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ; @REG_SZ
.subsections_via_symbols
