	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function read_types
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_read_types
	.p2align	4, 0x90
_read_types:                            ## @read_types
	.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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -320(%rbp)                ## 4-byte Spill
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSDMO_MAJOR_VERSION@GOTPCREL(%rip), %rax
	cmpl	$6, (%rax)
	jl	LBB0_2
## %bb.1:
	movl	-320(%rbp), %eax                ## 4-byte Reload
	shll	$3, %eax
	movl	%eax, -304(%rbp)
	leaq	-304(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueExW
	movq	%rax, %rdi
	callq	_HRESULT_FROM_WIN32
	movl	-304(%rbp), %ecx
	sarl	$3, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_19
LBB0_2:
	movq	%r8, -384(%rbp)                 ## 8-byte Spill
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -316(%rbp)                ## 4-byte Spill
	movl	$0, (%r14)
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	leaq	-312(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	cmpq	%rax, %rbx
	jne	LBB0_18
## %bb.3:
	movq	%rsp, -368(%rbp)                ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	movq	%rbx, %rcx
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rbx
	movq	%r13, -328(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rcx
	movq	%r15, %r12
	cmpq	%rax, %rsi
	jne	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	(%rcx), %eax
	movl	%eax, -308(%rbp)
	movl	-312(%rbp), %edi
	subq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r12, %r15
	movl	%r12d, %esi
	movq	%r13, %rdx
	movq	%rcx, %r12
	leaq	-308(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	addq	$16, %rsp
	movq	%rax, %rsi
	movq	(%rbx), %rax
	cmpq	%rax, %rsi
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsp, -376(%rbp)                ## 8-byte Spill
	movl	(%r12), %eax
	shlq	$2, %rax
	movq	%rsi, -352(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -360(%rbp)                ## 8-byte Spill
	movl	-312(%rbp), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	xorl	%edx, %edx
	leaq	-332(%rbp), %r8
	callq	_RegOpenKeyExW
	movq	-352(%rbp), %rsi                ## 8-byte Reload
	cmpq	(%rbx), %rsi
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, -344(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	incl	%r13d
	cmpq	%rax, %r12
	jne	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -308(%rbp)
	movl	-332(%rbp), %edi
	subq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%r13d, %esi
	movq	-360(%rbp), %rdx                ## 8-byte Reload
	leaq	-308(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	addq	$16, %rsp
	movq	%rax, %r12
	movq	(%rbx), %rax
	cmpq	%rax, %r12
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	-320(%rbp), %eax                ## 4-byte Reload
	cmpl	%eax, (%r14)
	jge	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_szToGuidFmt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	movq	-328(%rbp), %rdx                ## 8-byte Reload
	callq	_wsprintfW
	movslq	(%r14), %rax
	movq	-384(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_CLSIDFromString
	movq	_szToGuidFmt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	-360(%rbp), %rdx                ## 8-byte Reload
	callq	_wsprintfW
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,8), %rsi
	movq	%r15, %rdi
	callq	_CLSIDFromString
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,8), %rdi
	addq	$4, %rdi
	callq	_debugstr_guid
	movl	%eax, %r15d
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,8), %rdi
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rbx
	callq	_debugstr_guid
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_TRACE
	incl	(%r14)
	movq	(%rbx), %rax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_MAX_PATH@GOTPCREL(%rip), %rcx
	movq	%r15, %r12
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-344(%rbp), %r12                ## 8-byte Reload
	movq	_MAX_PATH@GOTPCREL(%rip), %rcx
	movq	-328(%rbp), %r13                ## 8-byte Reload
	movq	-352(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -316(%rbp)                ## 4-byte Spill
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-344(%rbp), %r12                ## 8-byte Reload
	movq	_MAX_PATH@GOTPCREL(%rip), %rcx
	movq	-328(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-376(%rbp), %rsp                ## 8-byte Reload
	incl	%r12d
	movq	(%rbx), %rax
	cmpq	%rax, %rsi
	je	LBB0_4
LBB0_17:
	movl	-312(%rbp), %edi
	callq	_RegCloseKey
	movq	-368(%rbp), %rsp                ## 8-byte Reload
LBB0_18:
	movl	-316(%rbp), %eax                ## 4-byte Reload
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_MSDMO_MAJOR_VERSION,4,2        ## @MSDMO_MAJOR_VERSION
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_S_FALSE,4,2                    ## @S_FALSE
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_szToGuidFmt,4,2                ## @szToGuidFmt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding type %s subtype %s at index %i\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_types                     ; -- Begin function read_types
	.p2align	2
_read_types:                            ; @read_types
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #352
	mov	x19, sp
	mov	x21, x4
	mov	x25, x3
	mov	x20, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _MSDMO_MAJOR_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSDMO_MAJOR_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #6
	b.lt	LBB0_2
; %bb.1:
	lsl	w8, w25, #3
	str	w8, [x19, #80]
	add	x5, x19, #80
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	bl	_RegQueryValueExW
	bl	_HRESULT_FROM_WIN32
	mov	x24, x0
	ldr	w8, [x19, #80]
	asr	w8, w8, #3
	str	w8, [x20]
	b	LBB0_16
LBB0_2:
Lloh6:
	adrp	x8, _S_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	str	wzr, [x20]
Lloh9:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x22, [x23]
Lloh11:
	adrp	x26, _KEY_READ@GOTPAGE
Lloh12:
	ldr	x26, [x26, _KEY_READ@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x4, x19, #76
	mov	w2, #0
	bl	_RegOpenKeyExW
	cmp	x22, x0
	b.ne	LBB0_16
; %bb.3:
	str	x21, [x19, #48]                 ; 8-byte Folded Spill
	str	w24, [x19, #20]                 ; 4-byte Folded Spill
	mov	x8, sp
	str	x8, [x19, #8]                   ; 8-byte Folded Spill
Lloh13:
	adrp	x24, _MAX_PATH@GOTPAGE
Lloh14:
	ldr	x24, [x24, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	mov	w21, #0
	ldr	x28, [x19, #48]                 ; 8-byte Folded Reload
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh17:
	adrp	x26, _KEY_READ@GOTPAGE
Lloh18:
	ldr	x26, [x26, _KEY_READ@GOTPAGEOFF]
	ldr	w21, [x19, #36]                 ; 4-byte Folded Reload
	ldr	x22, [x19, #24]                 ; 8-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #40]                  ; 8-byte Folded Reload
	mov	sp, x8
	add	w21, w21, #1
	ldr	x8, [x23]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x22, x8
	b.ne	LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w8, [x24]
	str	w8, [x19, #72]
	ldr	w0, [x19, #76]
	add	x3, x19, #72
	mov	x1, x21
	mov	x2, x27
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, sp
	str	x8, [x19, #40]                  ; 8-byte Folded Spill
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh19:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh20:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x8, x9, x8
	str	x8, [x19, #56]                  ; 8-byte Folded Spill
	mov	sp, x8
	ldr	w0, [x19, #76]
	ldr	w3, [x26]
	add	x4, x19, #68
	mov	x1, x27
	mov	w2, #0
	bl	_RegOpenKeyExW
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x22, [x19, #24]                 ; 8-byte Folded Spill
	str	w21, [x19, #36]                 ; 4-byte Folded Spill
	mov	w22, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w22, w22, #1
	cmp	x26, x8
	b.ne	LBB0_4
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	str	w8, [x19, #72]
	ldr	w0, [x19, #68]
	add	x3, x19, #72
	mov	x1, x22
	ldr	x2, [x19, #56]                  ; 8-byte Folded Reload
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	mov	x26, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [x20]
	cmp	w8, w25
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh21:
	adrp	x21, _szToGuidFmt@GOTPAGE
Lloh22:
	ldr	x21, [x21, _szToGuidFmt@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, x19, #80
	mov	x2, x27
	bl	_wsprintfW
	ldrsw	x8, [x20]
	add	x8, x28, x8, lsl #3
	add	x1, x8, #4
	add	x0, x19, #80
	bl	_CLSIDFromString
	ldr	w1, [x21]
	add	x0, x19, #80
	ldr	x2, [x19, #56]                  ; 8-byte Folded Reload
	bl	_wsprintfW
	ldrsw	x8, [x20]
	add	x1, x28, x8, lsl #3
	add	x0, x19, #80
	bl	_CLSIDFromString
	ldrsw	x8, [x20]
	add	x8, x28, x8, lsl #3
	add	x0, x8, #4
	bl	_debugstr_guid
	mov	x21, x23
	mov	x23, x27
	mov	x27, x24
	mov	x24, x25
	mov	x25, x0
	ldrsw	x8, [x20]
	add	x0, x28, x8, lsl #3
	bl	_debugstr_guid
	mov	x2, x0
	ldr	w3, [x20]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x25, x24
	mov	x24, x27
	mov	x27, x23
	mov	x23, x21
	bl	_TRACE
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [x21]
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh25:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #20]                  ; 4-byte Folded Spill
Lloh28:
	adrp	x8, _ERROR_MORE_DATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR_MORE_DATA@GOTPAGEOFF]
Lloh30:
	ldr	x22, [x8]
Lloh31:
	adrp	x26, _KEY_READ@GOTPAGE
Lloh32:
	ldr	x26, [x26, _KEY_READ@GOTPAGEOFF]
	ldr	w21, [x19, #36]                 ; 4-byte Folded Reload
	b	LBB0_5
LBB0_15:
	ldr	w0, [x19, #76]
	bl	_RegCloseKey
	ldr	x8, [x19, #8]                   ; 8-byte Folded Reload
	mov	sp, x8
	ldr	w24, [x19, #20]                 ; 4-byte Folded Reload
LBB0_16:
	ldur	x8, [x29, #-96]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_MSDMO_MAJOR_VERSION,4,2        ; @MSDMO_MAJOR_VERSION
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_S_FALSE,4,2                    ; @S_FALSE
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_szToGuidFmt,4,2                ; @szToGuidFmt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding type %s subtype %s at index %i\n"

.subsections_via_symbols
