	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function query_value
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_query_value:                           ## @query_value
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, %r14d
	movl	$667941, -60(%rbp)              ## imm = 0xA3125
	movl	$2048, %edi                     ## imm = 0x800
	callq	_heap_xalloc
	movq	%rax, %r15
	movl	$2048, -44(%rbp)                ## imm = 0x800
	leaq	-64(%rbp), %rcx
	leaq	-44(%rbp), %r9
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%rax, %r8
	callq	_RegQueryValueExW
	movq	%rax, %rbx
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.1:
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %r14
	callq	_heap_xrealloc
	movq	%rax, %r15
	movl	%ebx, -44(%rbp)
	movl	%r13d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	leaq	-64(%rbp), %rcx
	movq	%rax, %r8
	leaq	-44(%rbp), %r9
	callq	_RegQueryValueExW
	movq	%rax, %rbx
	movq	%r14, %rax
	cmpq	(%r14), %rbx
	je	LBB0_2
## %bb.3:
	movl	%r13d, %r14d
LBB0_4:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
## %bb.5:
	leaq	-60(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_output_string
	movl	-64(%rbp), %esi
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_output_value
	movq	_newlineW@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	xorl	%eax, %eax
	callq	_output_string
	movq	_num_values_found@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_6:
	movq	%r15, %rdi
	callq	_heap_free
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.12:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_MAX_SUBKEY_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_heap_xalloc
	movq	%rax, %r13
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlenW
	movl	%eax, %r15d
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-48(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.13:
	movl	$1, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	callq	_heap_free
	movq	_MAX_SUBKEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	leaq	-48(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	incl	%ebx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_build_subkey_path
	movq	%rax, %r12
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	leaq	-56(%rbp), %r8
	callq	_RegOpenKeyExW
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-56(%rbp), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_query_value
	movl	-56(%rbp), %edi
	callq	_RegCloseKey
	jmp	LBB0_16
LBB0_17:
	movq	%r13, %rdi
	callq	_heap_free
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_7:
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	(%rax), %rbx
	jne	LBB0_18
## %bb.8:
	testq	%r12, %r12
	je	LBB0_11
## %bb.9:
	cmpb	$0, (%r12)
	je	LBB0_11
## %bb.10:
	movq	_STRING_CANNOT_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_output_message
	movl	$1, %r14d
	jmp	LBB0_18
LBB0_11:
	xorl	%r14d, %r14d
	leaq	-60(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_output_string
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_output_value
LBB0_18:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_newlineW,4,2                   ## @newlineW
	.comm	_num_values_found,4,2           ## @num_values_found
	.comm	_ERROR_FILE_NOT_FOUND,8,3       ## @ERROR_FILE_NOT_FOUND
	.comm	_STRING_CANNOT_FIND,4,2         ## @STRING_CANNOT_FIND
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_MAX_SUBKEY_LEN,4,2             ## @MAX_SUBKEY_LEN
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.no_dead_strip	_query_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_value
_query_value:                           ; @query_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	w3, [sp, #8]                    ; 4-byte Folded Spill
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	w8, #12581
	movk	w8, #10, lsl #16
	str	w8, [sp, #16]
	mov	w21, #2048
	mov	w0, #2048
	bl	_heap_xalloc
	mov	x23, x0
	str	w21, [sp, #28]
	add	x3, sp, #20
	add	x5, sp, #28
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	mov	x4, x23
	bl	_RegQueryValueExW
Lloh0:
	adrp	x21, _ERROR_MORE_DATA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ERROR_MORE_DATA@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w24, [sp, #28]
	mov	x0, x23
	mov	x1, x24
	bl	_heap_xrealloc
	mov	x23, x0
	str	w24, [sp, #28]
	add	x3, sp, #20
	add	x5, sp, #28
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	mov	x4, x23
	bl	_RegQueryValueExW
	b	LBB0_1
LBB0_3:
	mov	x24, x0
Lloh2:
	adrp	x27, _ERROR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	str	x19, [sp]
	add	x0, sp, #16
	bl	_output_string
	ldr	w1, [sp, #20]
	ldr	w3, [sp, #28]
	mov	x0, x20
	mov	x2, x23
	bl	_output_value
Lloh4:
	adrp	x8, _newlineW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _newlineW@GOTPAGEOFF]
Lloh6:
	ldrsw	x0, [x8]
	bl	_output_string
Lloh7:
	adrp	x8, _num_values_found@GOTPAGE
Lloh8:
	ldr	x8, [x8, _num_values_found@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	mov	x0, x23
	bl	_heap_free
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_12
; %bb.6:
Lloh9:
	adrp	x28, _MAX_SUBKEY_LEN@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MAX_SUBKEY_LEN@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_heap_xalloc
	mov	x23, x0
	mov	x0, x19
	bl	_strlenW
	mov	x24, x0
	ldr	w8, [x28]
	str	w8, [sp, #24]
	add	x3, sp, #24
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.7:
	mov	w25, #1
Lloh11:
	adrp	x21, _KEY_READ@GOTPAGE
Lloh12:
	ldr	x21, [x21, _KEY_READ@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_heap_free
	ldr	w8, [x28]
	str	w8, [sp, #24]
	add	x3, sp, #24
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	ldr	x8, [x27]
	add	w25, w25, #1
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [sp, #24]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_build_subkey_path
	mov	x26, x0
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_RegOpenKeyExW
	cbnz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldp	w3, w0, [sp, #8]                ; 4-byte Folded Reload
	mov	x1, x20
	mov	x2, x26
	bl	_query_value
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
	b	LBB0_8
LBB0_11:
	mov	x0, x23
	bl	_heap_free
	b	LBB0_17
LBB0_12:
Lloh13:
	adrp	x8, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_17
; %bb.13:
	cbz	x20, LBB0_16
; %bb.14:
	ldrb	w8, [x20]
	cbz	w8, LBB0_16
; %bb.15:
Lloh16:
	adrp	x8, _STRING_CANNOT_FIND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STRING_CANNOT_FIND@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_output_message
	mov	w0, #1
	b	LBB0_18
LBB0_16:
	str	x19, [sp]
	add	x0, sp, #16
	bl	_output_string
Lloh19:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, #0
	mov	x2, #0
	mov	w3, #0
	bl	_output_value
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_newlineW,4,2                   ; @newlineW
	.comm	_num_values_found,4,2           ; @num_values_found
	.comm	_ERROR_FILE_NOT_FOUND,8,3       ; @ERROR_FILE_NOT_FOUND
	.comm	_STRING_CANNOT_FIND,4,2         ; @STRING_CANNOT_FIND
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_MAX_SUBKEY_LEN,4,2             ; @MAX_SUBKEY_LEN
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.no_dead_strip	_query_value
.subsections_via_symbols
