	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function export_registry_data
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_export_registry_data:                  ## @export_registry_data
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	callq	_export_key_name
	movl	$1024, %edi                     ## imm = 0x400
	callq	_heap_xalloc
	movq	%rax, %r13
	movl	$2048, %r15d                    ## imm = 0x800
	movl	$2048, %edi                     ## imm = 0x800
	callq	_heap_xalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$256, %r14d                     ## imm = 0x100
	xorl	%eax, %eax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, -68(%rbp)
	movl	%r15d, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, 8(%rsp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movl	%ebx, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rdx
	leaq	-68(%rbp), %rcx
	xorl	%r8d, %r8d
	leaq	-84(%rbp), %r9
	callq	_RegEnumValueW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	-48(%rbp), %r12d
	cmpl	%r15d, %r12d
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%ebx, %r12d
	leal	(%r14,%r14), %ebx
	shll	$3, %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_heap_xrealloc
	movq	%rax, %r13
	movl	%ebx, %r14d
	movl	%r12d, %ebx
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_heap_xrealloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-68(%rbp), %edx
	movl	-84(%rbp), %ecx
	movl	-48(%rbp), %r9d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_export_data
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	jmp	LBB0_1
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_heap_free
	movq	%r13, %rdi
	callq	_heap_free
	movq	_MAX_SUBKEY_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	shll	$2, %edi
	callq	_heap_xalloc
	movq	%rax, %r15
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_lstrlenW
	movl	%eax, %r14d
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movl	%ebx, %r12d
	movl	$1, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	callq	_heap_free
	movq	_MAX_SUBKEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	leaq	-44(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	incl	%ebx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %ecx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_build_subkey_path
	movq	%rax, %r13
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	leaq	-64(%rbp), %r8
	callq	_RegOpenKeyExW
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_export_registry_data
	movl	-64(%rbp), %edi
	callq	_RegCloseKey
	jmp	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_heap_free
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_MAX_SUBKEY_LEN,4,2             ## @MAX_SUBKEY_LEN
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.no_dead_strip	_export_registry_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function export_registry_data
_export_registry_data:                  ; @export_registry_data
	.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
	mov	x19, x2
	mov	x20, x1
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	x1, x2
	bl	_export_key_name
	mov	w0, #1024
	bl	_heap_xalloc
	mov	x22, x0
	mov	w27, #2048
	mov	w0, #2048
	bl	_heap_xalloc
	mov	x24, x0
	mov	w23, #0
	mov	w28, #256
Lloh0:
	adrp	x26, _ERROR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x21, _ERROR_MORE_DATA@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ERROR_MORE_DATA@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	stp	w27, w28, [sp, #24]
	add	x3, sp, #28
	add	x5, sp, #16
	add	x7, sp, #24
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x4, #0
	mov	x6, x24
	bl	_RegEnumValueW
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w25, [sp, #24]
	cmp	w25, w27
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	w25, w28, #1
	lsl	w1, w28, #3
	mov	x0, x22
	bl	_heap_xrealloc
	mov	x22, x0
	mov	x28, x25
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldp	w5, w2, [sp, #24]
	ldr	w3, [sp, #16]
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x22
	mov	x4, x24
	bl	_export_data
	add	w23, w23, #1
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	mov	x1, x25
	bl	_heap_xrealloc
	mov	x24, x0
	mov	x27, x25
	b	LBB0_1
LBB0_7:
	mov	x0, x24
	bl	_heap_free
	mov	x0, x22
	bl	_heap_free
Lloh4:
	adrp	x27, _MAX_SUBKEY_LEN@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MAX_SUBKEY_LEN@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	w0, w8, #2
	bl	_heap_xalloc
	mov	x22, x0
	mov	x0, x19
	bl	_lstrlenW
	mov	x23, x0
	ldr	w8, [x27]
	str	w8, [sp, #20]
	add	x3, sp, #20
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	ldr	x8, [x26]
	cmp	x0, x8
	ldr	w28, [sp, #8]                   ; 4-byte Folded Reload
	b.ne	LBB0_12
; %bb.8:
	mov	w24, #1
Lloh6:
	adrp	x21, _KEY_READ@GOTPAGE
Lloh7:
	ldr	x21, [x21, _KEY_READ@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x25
	bl	_heap_free
	ldr	w8, [x27]
	str	w8, [sp, #20]
	add	x3, sp, #20
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	ldr	x8, [x26]
	add	w24, w24, #1
	cmp	x0, x8
	b.ne	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [sp, #20]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_build_subkey_path
	mov	x25, x0
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_RegOpenKeyExW
	cbnz	w0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x28
	mov	x2, x25
	bl	_export_registry_data
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
	b	LBB0_9
LBB0_12:
	mov	x0, x22
	bl	_heap_free
	mov	w0, #0
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_MAX_SUBKEY_LEN,4,2             ; @MAX_SUBKEY_LEN
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.no_dead_strip	_export_registry_data
.subsections_via_symbols
