	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reg_export                     ## -- Begin function reg_export
	.p2align	4, 0x90
_reg_export:                            ## @reg_export
	.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
	movq	%rsi, %r12
	cmpl	$3, %edi
	je	LBB0_8
## %bb.1:
	movl	%edi, %ebx
	cmpl	$5, %edi
	jg	LBB0_8
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	16(%r12), %rdi
	leaq	-40(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_parse_registry_key
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$5, %ebx
	jne	LBB0_5
## %bb.4:
	movq	32(%r12), %rdi
	callq	_is_overwrite_switch
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:
	movl	-40(%rbp), %edi
	movq	-56(%rbp), %rsi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_STRING_INVALID_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_output_message
	jmp	LBB0_9
LBB0_8:
	movq	_STRING_INVALID_SYNTAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_output_message
	movq	_STRING_FUNC_HELP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r12), %rdi
	callq	_struprW
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_output_message
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	24(%r12), %rdi
	movl	%r15d, %esi
	callq	_get_file_handle
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_export_file_header
	movl	-36(%rbp), %esi
	movq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	_export_registry_data
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_export_newline
	movl	%ebx, %edi
	callq	_CloseHandle
	movl	-36(%rbp), %edi
	callq	_RegCloseKey
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_STRING_INVALID_KEY,4,2         ## @STRING_INVALID_KEY
	.comm	_STRING_INVALID_SYNTAX,4,2      ## @STRING_INVALID_SYNTAX
	.comm	_STRING_FUNC_HELP,4,2           ## @STRING_FUNC_HELP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reg_export                     ; -- Begin function reg_export
	.p2align	2
_reg_export:                            ; @reg_export
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	cmp	w0, #3
	b.eq	LBB0_7
; %bb.1:
	mov	x21, x0
	cmp	w0, #5
	b.gt	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x0, [x19, #16]
	add	x1, sp, #28
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_parse_registry_key
	cbz	w0, LBB0_9
; %bb.3:
	cmp	w21, #5
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x19, #32]
	bl	_is_overwrite_switch
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_5:
	ldr	w0, [sp, #28]
	ldr	x1, [sp, #16]
Lloh3:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x4, sp, #24
	mov	w2, #0
	bl	_RegOpenKeyExW
	cbz	x0, LBB0_11
; %bb.6:
Lloh6:
	adrp	x8, _STRING_INVALID_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRING_INVALID_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _STRING_INVALID_SYNTAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STRING_INVALID_SYNTAX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_output_message
Lloh12:
	adrp	x8, _STRING_FUNC_HELP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRING_FUNC_HELP@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	x0, [x19, #8]
	bl	_struprW
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
LBB0_8:
	bl	_output_message
LBB0_9:
	mov	w19, #1
LBB0_10:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_get_file_handle
	mov	x20, x0
	bl	_export_file_header
	ldr	w1, [sp, #24]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_export_registry_data
	mov	x19, x0
	mov	x0, x20
	bl	_export_newline
	mov	x0, x20
	bl	_CloseHandle
	ldr	w0, [sp, #24]
	bl	_RegCloseKey
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_STRING_INVALID_KEY,4,2         ; @STRING_INVALID_KEY
	.comm	_STRING_INVALID_SYNTAX,4,2      ; @STRING_INVALID_SYNTAX
	.comm	_STRING_FUNC_HELP,4,2           ; @STRING_FUNC_HELP
.subsections_via_symbols
