	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_query
_reg_query:                             ## @reg_query
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_newlineW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_output_string
	movl	-36(%rbp), %edi
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	testq	%r12, %r12
	jne	LBB0_4
## %bb.6:
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_query_all
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_STRING_CANNOT_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_output_message
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_query_value
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:
	movq	_STRING_MATCHES_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_num_values_found@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_output_message
LBB0_7:
	movl	-36(%rbp), %edi
	callq	_RegCloseKey
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_STRING_CANNOT_FIND,4,2         ## @STRING_CANNOT_FIND
	.comm	_newlineW,4,2                   ## @newlineW
	.comm	_STRING_MATCHES_FOUND,4,2       ## @STRING_MATCHES_FOUND
	.comm	_num_values_found,4,2           ## @num_values_found
	.no_dead_strip	_reg_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_query
_reg_query:                             ; @reg_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	w2, #0
	bl	_RegOpenKeyExW
Lloh3:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _newlineW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _newlineW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_output_string
	ldr	w0, [sp, #12]
	cbnz	x21, LBB0_5
; %bb.2:
	cbnz	x22, LBB0_5
; %bb.3:
	mov	x1, x20
	mov	x2, x19
	bl	_query_all
	mov	x20, x0
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _STRING_CANNOT_FIND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STRING_CANNOT_FIND@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_output_message
	mov	w20, #1
	b	LBB0_8
LBB0_5:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_query_value
	mov	x20, x0
	cbz	x19, LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _STRING_MATCHES_FOUND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRING_MATCHES_FOUND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _num_values_found@GOTPAGE
Lloh16:
	ldr	x8, [x8, _num_values_found@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	x8, [sp]
	bl	_output_message
LBB0_7:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_STRING_CANNOT_FIND,4,2         ; @STRING_CANNOT_FIND
	.comm	_newlineW,4,2                   ; @newlineW
	.comm	_STRING_MATCHES_FOUND,4,2       ; @STRING_MATCHES_FOUND
	.comm	_num_values_found,4,2           ; @num_values_found
	.no_dead_strip	_reg_query
.subsections_via_symbols
