	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateNewKey                   ## -- Begin function CreateNewKey
	.p2align	4, 0x90
_CreateNewKey:                          ## @CreateNewKey
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -1104(%rbp)
	movq	$0, -1096(%rbp)
	movq	$0, -1088(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	-1104(%rbp), %rdx
	callq	_GetItemPath
	cmpl	$0, (%rax)
	movq	-1104(%rbp), %rdi
	je	LBB0_1
## %bb.2:
	leaq	-1096(%rbp), %rdx
	movq	%rax, %rsi
	callq	_RegOpenKeyW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
	jmp	LBB0_10
LBB0_1:
	movq	%rdi, -1096(%rbp)
LBB0_3:
	movl	%ebx, -1112(%rbp)               ## 4-byte Spill
	movq	_hInst@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IDS_NEW_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-560(%rbp), %r13
	movq	%r13, %rdi
	callq	_COUNT_OF
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_LoadStringW
	testq	%rax, %rax
	jle	LBB0_10
## %bb.4:
	movl	%r12d, -1108(%rbp)              ## 4-byte Spill
	movl	%r15d, -1076(%rbp)              ## 4-byte Spill
	movl	$1, %ebx
	leaq	-1072(%rbp), %r13
	leaq	-1120(%rbp), %r14
	leaq	-1088(%rbp), %r15
	movq	_REG_OPENED_EXISTING_KEY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	-560(%rbp), %rsi
	movl	%ebx, %edx
	callq	_wsprintf
	movq	-1096(%rbp), %rdi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%r14
	pushq	%r15
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	-1088(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-1120(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_RegCloseKey
	movq	$0, -1088(%rbp)
	incl	%ebx
	jmp	LBB0_5
LBB0_17:
	movq	_hFrameWnd@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_MB_OK@GOTPCREL(%rip), %rcx
	movq	_MB_ICONERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	leaq	l_.str(%rip), %rcx
	xorl	%edx, %edx
	movl	%eax, %r8d
	callq	_InfoMessageBox
	movl	-1076(%rbp), %r15d              ## 4-byte Reload
	jmp	LBB0_10
LBB0_8:
	leaq	-1072(%rbp), %rdx
	movl	-1108(%rbp), %ebx               ## 4-byte Reload
	movl	%ebx, %edi
	movl	-1112(%rbp), %esi               ## 4-byte Reload
	callq	_InsertNode
	testl	%eax, %eax
	movl	-1076(%rbp), %r15d              ## 4-byte Reload
	je	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TreeView_EditLabel
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_10:
	movq	-1096(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	cmpq	-1104(%rbp), %rdi
	je	LBB0_13
## %bb.12:
	callq	_RegCloseKey
LBB0_13:
	movq	-1088(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_RegCloseKey
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.16:
	movl	%r15d, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_hInst,4,2                      ## @hInst
	.comm	_IDS_NEW_KEY,4,2                ## @IDS_NEW_KEY
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_REG_OPENED_EXISTING_KEY,8,3    ## @REG_OPENED_EXISTING_KEY
	.comm	_hFrameWnd,4,2                  ## @hFrameWnd
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONERROR,4,2               ## @MB_ICONERROR
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	67                              ## 0x43
	.long	97                              ## 0x61
	.long	110                             ## 0x6e
	.long	110                             ## 0x6e
	.long	111                             ## 0x6f
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	99                              ## 0x63
	.long	114                             ## 0x72
	.long	101                             ## 0x65
	.long	97                              ## 0x61
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	32                              ## 0x20
	.long	110                             ## 0x6e
	.long	101                             ## 0x65
	.long	119                             ## 0x77
	.long	32                              ## 0x20
	.long	107                             ## 0x6b
	.long	101                             ## 0x65
	.long	121                             ## 0x79
	.long	33                              ## 0x21
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	69                              ## 0x45
	.long	114                             ## 0x72
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	32                              ## 0x20
	.long	67                              ## 0x43
	.long	111                             ## 0x6f
	.long	100                             ## 0x64
	.long	101                             ## 0x65
	.long	58                              ## 0x3a
	.long	32                              ## 0x20
	.long	37                              ## 0x25
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateNewKey                   ; -- Begin function CreateNewKey
	.p2align	2
_CreateNewKey:                          ; @CreateNewKey
	.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, #1072
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	add	x2, sp, #32
	bl	_GetItemPath
	mov	x1, x0
	ldr	w8, [x0]
	ldr	x0, [sp, #32]
	cbz	w8, LBB0_2
; %bb.1:
	add	x2, sp, #24
	bl	_RegOpenKeyW
Lloh6:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
	b	LBB0_11
LBB0_2:
	str	x0, [sp, #24]
LBB0_3:
Lloh9:
	adrp	x8, _hInst@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hInst@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _IDS_NEW_KEY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDS_NEW_KEY@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	add	x0, sp, #552
	bl	_COUNT_OF
	mov	x3, x0
	add	x2, sp, #552
	mov	x0, x22
	mov	x1, x23
	bl	_LoadStringW
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.4:
Lloh15:
	adrp	x23, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
	mov	w22, #1
Lloh17:
	adrp	x24, _KEY_WRITE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _KEY_WRITE@GOTPAGEOFF]
	add	x25, sp, #8
Lloh19:
	adrp	x26, _REG_OPENED_EXISTING_KEY@GOTPAGE
Lloh20:
	ldr	x26, [x26, _REG_OPENED_EXISTING_KEY@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	add	x1, sp, #552
	mov	x2, x22
	bl	_wsprintf
	ldr	x0, [sp, #24]
	ldr	w4, [x23]
	ldr	w5, [x24]
	str	x25, [sp]
	add	x1, sp, #40
	add	x7, sp, #16
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x4, x0
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_RegCloseKey
	str	xzr, [sp, #16]
	add	w22, w22, #1
	b	LBB0_5
LBB0_8:
Lloh21:
	adrp	x8, _hFrameWnd@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hFrameWnd@GOTPAGEOFF]
Lloh23:
	adrp	x9, _MB_OK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MB_OK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	ldr	w8, [x9]
Lloh27:
	adrp	x9, _MB_ICONERROR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MB_ICONERROR@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh30:
	adrp	x3, l_.str@PAGE
Lloh31:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, #0
	bl	_InfoMessageBox
	b	LBB0_11
LBB0_9:
	add	x2, sp, #40
	mov	x0, x20
	mov	x1, x21
	bl	_InsertNode
	cbz	w0, LBB0_11
; %bb.10:
	mov	x1, x0
	mov	x0, x20
	bl	_TreeView_EditLabel
Lloh32:
	adrp	x8, _TRUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh34:
	ldr	w19, [x8]
LBB0_11:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_14
; %bb.12:
	ldr	x8, [sp, #32]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	bl	_RegCloseKey
LBB0_14:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_RegCloseKey
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	add	sp, sp, #1072
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_hInst,4,2                      ; @hInst
	.comm	_IDS_NEW_KEY,4,2                ; @IDS_NEW_KEY
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_REG_OPENED_EXISTING_KEY,8,3    ; @REG_OPENED_EXISTING_KEY
	.comm	_hFrameWnd,4,2                  ; @hFrameWnd
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONERROR,4,2               ; @MB_ICONERROR
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	67                              ; 0x43
	.long	97                              ; 0x61
	.long	110                             ; 0x6e
	.long	110                             ; 0x6e
	.long	111                             ; 0x6f
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	99                              ; 0x63
	.long	114                             ; 0x72
	.long	101                             ; 0x65
	.long	97                              ; 0x61
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	32                              ; 0x20
	.long	110                             ; 0x6e
	.long	101                             ; 0x65
	.long	119                             ; 0x77
	.long	32                              ; 0x20
	.long	107                             ; 0x6b
	.long	101                             ; 0x65
	.long	121                             ; 0x79
	.long	33                              ; 0x21
	.long	10                              ; 0xa
	.long	10                              ; 0xa
	.long	69                              ; 0x45
	.long	114                             ; 0x72
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	32                              ; 0x20
	.long	67                              ; 0x43
	.long	111                             ; 0x6f
	.long	100                             ; 0x64
	.long	101                             ; 0x65
	.long	58                              ; 0x3a
	.long	32                              ; 0x20
	.long	37                              ; 0x25
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
