	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_types
_write_types:                           ## @write_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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	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:
	movq	_REG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$3, %r14d
	xorl	%edx, %edx
	movq	%rbx, %r8
	movl	%r14d, %r9d
	callq	_RegSetValueExW
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_2:
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_WRITE@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	subq	$8, %rsp
	leaq	-312(%rbp), %rax
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.10:
	movl	%eax, %edi
	jmp	LBB0_8
LBB0_3:
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.4:
	movl	%r14d, %r12d
	leaq	-304(%rbp), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	callq	_GUIDToString
	movl	-312(%rbp), %edi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movl	(%r13), %r9d
	subq	$8, %rsp
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	leaq	-308(%rbp), %rax
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_GUIDToString
	movl	-308(%rbp), %edi
	movl	(%r15), %r8d
	movl	(%r13), %r9d
	subq	$8, %rsp
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	leaq	-316(%rbp), %rax
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movl	%eax, %r15d
	movl	-316(%rbp), %edi
	callq	_RegCloseKey
	movl	-308(%rbp), %edi
	callq	_RegCloseKey
	addq	$8, %rbx
	decq	%r12
	jne	LBB0_5
LBB0_6:
	movl	-312(%rbp), %edi
	callq	_RegCloseKey
LBB0_7:
	movl	%r15d, %edi
LBB0_8:
	callq	_HRESULT_FROM_WIN32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.9:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSDMO_MAJOR_VERSION,4,2        ## @MSDMO_MAJOR_VERSION
	.comm	_REG_BINARY,4,2                 ## @REG_BINARY
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.no_dead_strip	_write_types
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_types
_write_types:                           ; @write_types
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	mov	x20, x3
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
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:
Lloh6:
	adrp	x8, _REG_BINARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_BINARY@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	lsl	w5, w20, #3
	mov	w2, #0
	mov	x4, x19
	bl	_RegSetValueExW
	mov	x20, x0
	b	LBB0_8
LBB0_2:
Lloh9:
	adrp	x21, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh11:
	adrp	x22, _KEY_WRITE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _KEY_WRITE@GOTPAGEOFF]
	ldr	w5, [x22]
	str	xzr, [sp]
	add	x7, sp, #20
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	cbnz	w0, LBB0_9
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w23, w20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x19, #4
	add	x0, sp, #24
	bl	_GUIDToString
	ldr	w0, [sp, #20]
	ldr	w4, [x21]
	ldr	w5, [x22]
	str	xzr, [sp]
	add	x1, sp, #24
	add	x7, sp, #16
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	add	x0, sp, #24
	mov	x1, x19
	bl	_GUIDToString
	ldr	w0, [sp, #16]
	ldr	w4, [x21]
	ldr	w5, [x22]
	str	xzr, [sp]
	add	x1, sp, #24
	add	x7, sp, #12
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
	ldr	w0, [sp, #16]
	bl	_RegCloseKey
	add	x19, x19, #8
	subs	x23, x23, #1
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	ldr	w0, [sp, #20]
	bl	_RegCloseKey
LBB0_8:
	mov	x0, x20
LBB0_9:
	bl	_HRESULT_FROM_WIN32
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MSDMO_MAJOR_VERSION,4,2        ; @MSDMO_MAJOR_VERSION
	.comm	_REG_BINARY,4,2                 ; @REG_BINARY
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.no_dead_strip	_write_types
.subsections_via_symbols
