	.file	"extr_controlset.c_ScmCopyControlSet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str4.8,"aMS",@progbits,4
	.align 8
.LC0:
	.string	"S"
	.string	""
	.string	""
	.string	"Y"
	.string	""
	.string	""
	.string	"S"
	.string	""
	.string	""
	.string	"T"
	.string	""
	.string	""
	.string	"E"
	.string	""
	.string	""
	.string	"M"
	.string	""
	.string	""
	.string	"\\"
	.string	""
	.string	""
	.string	"C"
	.string	""
	.string	""
	.string	"o"
	.string	""
	.string	""
	.string	"n"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"o"
	.string	""
	.string	""
	.string	"l"
	.string	""
	.string	""
	.string	"S"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"%"
	.string	""
	.string	""
	.string	"0"
	.string	""
	.string	""
	.string	"3"
	.string	""
	.string	""
	.string	"l"
	.string	""
	.string	""
	.string	"u"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Source control set: %S\n"
.LC2:
	.string	"Destination control set: %S\n"
	.text
	.p2align 4
	.type	ScmCopyControlSet, @function
ScmCopyControlSet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdx, rdi
	mov	r13, rsi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 304
	.cfi_def_cfa_offset 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 296[rsp], rax
	xor	eax, eax
	lea	r12, 32[rsp]
	lea	rbp, 160[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	rdi, r12
	call	swprintf@PLT
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	call	DPRINT@PLT
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	swprintf@PLT
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	call	DPRINT@PLT
	mov	ecx, DWORD PTR KEY_READ[rip]
	xor	edx, edx
	mov	rsi, r12
	mov	edi, DWORD PTR HKEY_LOCAL_MACHINE[rip]
	lea	r8, 8[rsp]
	call	RegOpenKeyExW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	je	.L14
.L2:
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L3
	call	RegCloseKey@PLT
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L1
	call	RegCloseKey@PLT
.L1:
	mov	rax, QWORD PTR 296[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 304
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 344
	mov	r9d, DWORD PTR KEY_WRITE[rip]
	xor	ecx, ecx
	xor	edx, edx
	lea	rax, 32[rsp]
	mov	r8d, DWORD PTR REG_OPTION_NON_VOLATILE[rip]
	mov	edi, DWORD PTR HKEY_LOCAL_MACHINE[rip]
	mov	rsi, rbp
	push	rax
	.cfi_def_cfa_offset 352
	lea	rax, 32[rsp]
	push	rax
	.cfi_def_cfa_offset 360
	push	0
	.cfi_def_cfa_offset 368
	call	RegCreateKeyExW@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 336
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L2
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	call	ScmCopyTree@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L2
	mov	rdi, QWORD PTR 16[rsp]
	call	RegFlushKey@PLT
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ScmCopyControlSet, .-ScmCopyControlSet
	.comm	REG_OPTION_NON_VOLATILE,4,4
	.comm	KEY_WRITE,4,4
	.comm	KEY_READ,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	ERROR_SUCCESS,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_controlset.c_ScmCopyControlSet.c"
	.text
	.section	.rodata.str4.4,"aMS",%progbits,4
	.align	2
.LC0:
	.ascii	"S\000\000\000Y\000\000\000S\000\000\000T\000\000\000"
	.ascii	"E\000\000\000M\000\000\000\\\000\000\000C\000\000\000"
	.ascii	"o\000\000\000n\000\000\000t\000\000\000r\000\000\000"
	.ascii	"o\000\000\000l\000\000\000S\000\000\000e\000\000\000"
	.ascii	"t\000\000\000%\000\000\0000\000\000\0003\000\000\000"
	.ascii	"l\000\000\000u\000\000\000\000\000\000\000"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"Source control set: %S\012\000"
	.align	2
.LC2:
	.ascii	"Destination control set: %S\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ScmCopyControlSet, %function
ScmCopyControlSet:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, #0
	mov	r4, r1
	sub	sp, sp, #300
	ldr	r3, .L16
	mov	r2, r0
	ldr	r1, .L16+4
	add	r0, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #292]
	mov	r3,#0
	str	r5, [sp, #24]
	str	r5, [sp, #28]
	bl	swprintf
	add	r1, sp, #36
	ldr	r0, .L16+8
	bl	DPRINT
	mov	r2, r4
	ldr	r1, .L16+4
	add	r0, sp, #164
	bl	swprintf
	add	r1, sp, #164
	ldr	r0, .L16+12
	bl	DPRINT
	ldr	r7, .L16+16
	ldr	r3, .L16+20
	add	ip, sp, #24
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r0, [r7]
	add	r1, sp, #36
	str	ip, [sp]
	bl	RegOpenKeyExW
	ldr	r6, .L16+24
	mov	r4, r0
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L14
.L2:
	ldr	r0, [sp, #28]
	cmp	r0, #0
	beq	.L3
	bl	RegCloseKey
.L3:
	ldr	r0, [sp, #24]
	cmp	r0, #0
	beq	.L1
	bl	RegCloseKey
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #292]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #300
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	ldr	r2, .L16+28
	ldr	r3, .L16+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #32
	add	r3, sp, #28
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	mov	r2, r5
	mov	r3, r5
	ldr	r0, [r7]
	str	r5, [sp, #8]
	add	r1, sp, #164
	bl	RegCreateKeyExW
	ldr	r3, [r6]
	mov	r4, r0
	cmp	r3, r0
	bne	.L2
	ldr	r1, [sp, #28]
	ldr	r0, [sp, #24]
	bl	ScmCopyTree
	ldr	r3, [r6]
	mov	r4, r0
	cmp	r3, r0
	bne	.L2
	ldr	r0, [sp, #28]
	bl	RegFlushKey
	b	.L2
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	HKEY_LOCAL_MACHINE
	.word	KEY_READ
	.word	ERROR_SUCCESS
	.word	KEY_WRITE
	.word	REG_OPTION_NON_VOLATILE
	.size	ScmCopyControlSet, .-ScmCopyControlSet
	.comm	REG_OPTION_NON_VOLATILE,4,4
	.comm	KEY_WRITE,4,4
	.comm	KEY_READ,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	ERROR_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
