	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openKeyW
_openKeyW:                              ## @openKeyW
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	-28(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_parseKeyName
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	-28(%rbp), %edi
	movq	-40(%rbp), %rsi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-44(%rbp), %rax
	movq	_currentKeyHandle@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	%r15
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_GetMultiByteString
	movq	_currentKeyName@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_1:
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	$0, (%r15)
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_INVALID_PARAMETER,8,3    ## @ERROR_INVALID_PARAMETER
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_ALL_ACCESS,4,2             ## @KEY_ALL_ACCESS
	.comm	_currentKeyHandle,8,3           ## @currentKeyHandle
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_currentKeyName,4,2             ## @currentKeyName
	.no_dead_strip	_openKeyW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openKeyW
_openKeyW:                              ; @openKeyW
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #28
	add	x2, sp, #16
	bl	_parseKeyName
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [sp, #28]
	ldr	x1, [sp, #16]
Lloh0:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _KEY_ALL_ACCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_ALL_ACCESS@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	add	x8, sp, #12
	str	x8, [sp]
Lloh6:
	adrp	x21, _currentKeyHandle@GOTPAGE
Lloh7:
	ldr	x21, [x21, _currentKeyHandle@GOTPAGEOFF]
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	mov	x7, x21
	bl	_RegCreateKeyExW
	mov	x20, x0
Lloh8:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_GetMultiByteString
Lloh11:
	adrp	x8, _currentKeyName@GOTPAGE
Lloh12:
	ldr	x8, [x8, _currentKeyName@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	b	LBB0_6
LBB0_5:
	str	xzr, [x21]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_INVALID_PARAMETER,8,3    ; @ERROR_INVALID_PARAMETER
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_ALL_ACCESS,4,2             ; @KEY_ALL_ACCESS
	.comm	_currentKeyHandle,8,3           ; @currentKeyHandle
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_currentKeyName,4,2             ; @currentKeyName
	.no_dead_strip	_openKeyW
.subsections_via_symbols
