	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_cred_mgr_key
_open_cred_mgr_key:                     ## @open_cred_mgr_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rcx
	movq	%rdi, %rax
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	_wszCredentialManagerKey@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_KEY_READ@GOTPCREL(%rip), %rdx
	movl	$0, %r9d
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	_KEY_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
LBB0_2:
	orl	(%rdx), %r9d
	subq	$8, %rsp
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_wszCredentialManagerKey,4,2    ## @wszCredentialManagerKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.no_dead_strip	_open_cred_mgr_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_cred_mgr_key
_open_cred_mgr_key:                     ; @open_cred_mgr_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x7, x0
Lloh0:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _wszCredentialManagerKey@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wszCredentialManagerKey@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
Lloh9:
	adrp	x9, _KEY_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KEY_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _KEY_WRITE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _KEY_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x1, #0
	csel	w10, wzr, w10, eq
	orr	w5, w10, w9
	str	xzr, [sp]
	mov	x1, x8
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_wszCredentialManagerKey,4,2    ; @wszCredentialManagerKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.no_dead_strip	_open_cred_mgr_key
.subsections_via_symbols
