	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_key_name_for_target
_get_key_name_for_target:               ## @get_key_name_for_target
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	movq	_CRED_TYPE_GENERIC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	xorl	%ecx, %ecx
	cmpq	%r15, %r12
	setne	%cl
	leal	(%rax,%rcx,2), %edi
	addl	$10, %edi
	callq	_heap_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	%r15, %r12
	leaq	_get_key_name_for_target.wszGenericPrefix(%rip), %rax
	leaq	_get_key_name_for_target.wszDomPasswdPrefix(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_strcpyW
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcatW
	movq	%rbx, %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$95, (%rax)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$92, %cl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%cl, %cl
	jne	LBB0_6
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_get_key_name_for_target.wszGenericPrefix: ## @get_key_name_for_target.wszGenericPrefix
	.asciz	"Generic: "

_get_key_name_for_target.wszDomPasswdPrefix: ## @get_key_name_for_target.wszDomPasswdPrefix
	.asciz	"DomPasswd: "

	.comm	_CRED_TYPE_GENERIC,8,3          ## @CRED_TYPE_GENERIC
	.no_dead_strip	_get_key_name_for_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_key_name_for_target
_get_key_name_for_target:               ; @get_key_name_for_target
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_strlenW
Lloh0:
	adrp	x8, _CRED_TYPE_GENERIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRED_TYPE_GENERIC@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cmp	x22, x21
	mov	w8, #12
	mov	w9, #10
	csel	w8, w9, w8, eq
	add	w0, w8, w0
	bl	_heap_alloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _get_key_name_for_target.wszDomPasswdPrefix@PAGE
Lloh4:
	add	x8, x8, _get_key_name_for_target.wszDomPasswdPrefix@PAGEOFF
Lloh5:
	adrp	x9, _get_key_name_for_target.wszGenericPrefix@PAGE
Lloh6:
	add	x9, x9, _get_key_name_for_target.wszGenericPrefix@PAGEOFF
	cmp	x22, x21
	csel	x1, x9, x8, eq
	mov	x0, x19
	bl	_strcpyW
	mov	x0, x19
	mov	x1, x20
	bl	_strcatW
	mov	w8, #95
	mov	x9, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	w8, [x9]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #92
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w10, LBB0_3
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_get_key_name_for_target.wszGenericPrefix: ; @get_key_name_for_target.wszGenericPrefix
	.asciz	"Generic: "

_get_key_name_for_target.wszDomPasswdPrefix: ; @get_key_name_for_target.wszDomPasswdPrefix
	.asciz	"DomPasswd: "

	.comm	_CRED_TYPE_GENERIC,8,3          ; @CRED_TYPE_GENERIC
	.no_dead_strip	_get_key_name_for_target
.subsections_via_symbols
