	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScmDeleteControlSet
_ScmDeleteControlSet:                   ## @ScmDeleteControlSet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -72(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DPRINT
	leaq	l_.str.1(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_swprintf
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_DPRINT
	movq	_DELETE@GOTPCREL(%rip), %rax
	movq	_KEY_ENUMERATE_SUB_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movq	_KEY_QUERY_VALUE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rax), %edi
	movq	_KEY_SET_VALUE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	-72(%rbp), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_RegOpenKeyExW
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ScmDeleteTree
	movq	%rax, %rbx
	movq	-72(%rbp), %rdi
	callq	_RegCloseKey
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ScmDeleteControSet(%lu)\n"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.1
l_.str.1:
	.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.2:                               ## @.str.2
	.asciz	"Control set: %S\n"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_DELETE,4,2                     ## @DELETE
	.comm	_KEY_ENUMERATE_SUB_KEYS,4,2     ## @KEY_ENUMERATE_SUB_KEYS
	.comm	_KEY_QUERY_VALUE,4,2            ## @KEY_QUERY_VALUE
	.comm	_KEY_SET_VALUE,4,2              ## @KEY_SET_VALUE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.no_dead_strip	_ScmDeleteControlSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ScmDeleteControlSet
_ScmDeleteControlSet:                   ; @ScmDeleteControlSet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	xzr, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DPRINT
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_swprintf
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #8
	bl	_DPRINT
Lloh9:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _DELETE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DELETE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _KEY_ENUMERATE_SUB_KEYS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KEY_ENUMERATE_SUB_KEYS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _KEY_QUERY_VALUE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _KEY_QUERY_VALUE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _KEY_SET_VALUE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _KEY_SET_VALUE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x1, sp, #8
	mov	x4, sp
	mov	w2, #0
	bl	_RegOpenKeyExW
	mov	x19, x0
Lloh24:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [sp]
	mov	x1, #0
	bl	_ScmDeleteTree
	mov	x19, x0
	ldr	x0, [sp]
	bl	_RegCloseKey
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ScmDeleteControSet(%lu)\n"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.1
l_.str.1:
	.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.2:                               ; @.str.2
	.asciz	"Control set: %S\n"

	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_DELETE,4,2                     ; @DELETE
	.comm	_KEY_ENUMERATE_SUB_KEYS,4,2     ; @KEY_ENUMERATE_SUB_KEYS
	.comm	_KEY_QUERY_VALUE,4,2            ; @KEY_QUERY_VALUE
	.comm	_KEY_SET_VALUE,4,2              ; @KEY_SET_VALUE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.no_dead_strip	_ScmDeleteControlSet
.subsections_via_symbols
