	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScmCopyControlSet
_ScmCopyControlSet:                     ## @ScmCopyControlSet
	.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	$304, %rsp                      ## imm = 0x130
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -320(%rbp)
	movq	$0, -312(%rbp)
	leaq	l_.str(%rip), %r15
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_swprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_DPRINT
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_swprintf
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DPRINT
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-320(%rbp), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %edi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-328(%rbp), %rax
	leaq	-312(%rbp), %rbx
	leaq	-304(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	%rbx
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.2:
	movq	-320(%rbp), %rdi
	movq	-312(%rbp), %rsi
	callq	_ScmCopyTree
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.3:
	movq	-312(%rbp), %rdi
	callq	_RegFlushKey
LBB0_4:
	movq	-312(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_RegCloseKey
LBB0_6:
	movq	-320(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_RegCloseKey
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rax
	addq	$304, %rsp                      ## imm = 0x130
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	83                              ## 0x53
	.long	89                              ## 0x59
	.long	83                              ## 0x53
	.long	84                              ## 0x54
	.long	69                              ## 0x45
	.long	77                              ## 0x4d
	.long	92                              ## 0x5c
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	108                             ## 0x6c
	.long	83                              ## 0x53
	.long	101                             ## 0x65
	.long	116                             ## 0x74
	.long	37                              ## 0x25
	.long	48                              ## 0x30
	.long	51                              ## 0x33
	.long	108                             ## 0x6c
	.long	117                             ## 0x75
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Source control set: %S\n"

L_.str.2:                               ## @.str.2
	.asciz	"Destination control set: %S\n"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.no_dead_strip	_ScmCopyControlSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ScmCopyControlSet
_ScmCopyControlSet:                     ; @ScmCopyControlSet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	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
	mov	x19, x1
	mov	x2, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	xzr, xzr, [sp, #24]
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	add	x0, sp, #168
	mov	x1, x20
	bl	_swprintf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #168
	bl	_DPRINT
	add	x0, sp, #40
	mov	x1, x20
	mov	x2, x19
	bl	_swprintf
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #40
	bl	_DPRINT
Lloh9:
	adrp	x21, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x1, sp, #168
	add	x4, sp, #32
	mov	w2, #0
	bl	_RegOpenKeyExW
	mov	x19, x0
Lloh14:
	adrp	x20, _ERROR_SUCCESS@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x8, _KEY_WRITE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KEY_WRITE@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	add	x8, sp, #16
	str	x8, [sp]
	add	x1, sp, #40
	add	x7, sp, #24
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x19, x0
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldp	x1, x0, [sp, #24]
	bl	_ScmCopyTree
	mov	x19, x0
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [sp, #24]
	bl	_RegFlushKey
LBB0_4:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_RegCloseKey
LBB0_6:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_RegCloseKey
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	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
	add	sp, sp, #352
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	83                              ; 0x53
	.long	89                              ; 0x59
	.long	83                              ; 0x53
	.long	84                              ; 0x54
	.long	69                              ; 0x45
	.long	77                              ; 0x4d
	.long	92                              ; 0x5c
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	108                             ; 0x6c
	.long	83                              ; 0x53
	.long	101                             ; 0x65
	.long	116                             ; 0x74
	.long	37                              ; 0x25
	.long	48                              ; 0x30
	.long	51                              ; 0x33
	.long	108                             ; 0x6c
	.long	117                             ; 0x75
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Source control set: %S\n"

l_.str.2:                               ; @.str.2
	.asciz	"Destination control set: %S\n"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.no_dead_strip	_ScmCopyControlSet
.subsections_via_symbols
