	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_credential
_get_credential:                        ## @get_credential
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	l_.str(%rip), %rdi
	leaq	-20(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	callq	_CredEnumerateW
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpl	$0, -20(%rbp)
	jle	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-32(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_match_cred
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	-20(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_9
LBB0_4:
	movq	-32(%rbp), %rax
	movq	(%rax,%rbx,8), %rax
	movq	16(%rax), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_wcslen
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_5:
	xorl	%edx, %edx
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_write_item
	movq	-32(%rbp), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	sarl	$2, %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_write_item
LBB0_9:
	movq	-32(%rbp), %rdi
	callq	_CredFree
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	103                             ## 0x67
	.long	105                             ## 0x69
	.long	116                             ## 0x74
	.long	58                              ## 0x3a
	.long	42                              ## 0x2a
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"username"

L_.str.2:                               ## @.str.2
	.asciz	"password"

	.no_dead_strip	_get_credential
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_credential
_get_credential:                        ; @get_credential
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #4
	add	x3, sp, #8
	mov	w1, #0
	bl	_CredEnumerateW
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_match_cred
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [sp, #4]
	cmp	x20, x8
	b.lt	LBB0_3
	b	LBB0_9
LBB0_5:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x19, [x8, #16]
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_wcslen
	mov	x2, x0
	b	LBB0_8
LBB0_7:
	mov	w2, #0
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_write_item
	ldr	x8, [sp, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x1, [x8, #8]
	ldr	w8, [x8]
	asr	w2, w8, #2
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_write_item
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_CredFree
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	103                             ; 0x67
	.long	105                             ; 0x69
	.long	116                             ; 0x74
	.long	58                              ; 0x3a
	.long	42                              ; 0x2a
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"username"

l_.str.2:                               ; @.str.2
	.asciz	"password"

	.no_dead_strip	_get_credential
.subsections_via_symbols
