	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_cred_funcs
_load_cred_funcs:                       ## @load_cred_funcs
	.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	_LOAD_LIBRARY_SEARCH_SYSTEM32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_LoadLibraryExA
	movq	_advapi@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_die
	movl	(%rbx), %eax
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_GetProcAddress
	movq	_CredWriteW@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_GetProcAddress
	movq	_CredEnumerateW@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_GetProcAddress
	movq	_CredFree@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_GetProcAddress
	movq	_CredDeleteW@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.4:
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.6(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_die                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"advapi32.dll"

	.comm	_LOAD_LIBRARY_SEARCH_SYSTEM32,4,2 ## @LOAD_LIBRARY_SEARCH_SYSTEM32
	.comm	_advapi,4,2                     ## @advapi
L_.str.1:                               ## @.str.1
	.asciz	"failed to load advapi32.dll"

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

	.comm	_CredWriteW,8,3                 ## @CredWriteW
L_.str.3:                               ## @.str.3
	.asciz	"CredEnumerateW"

	.comm	_CredEnumerateW,8,3             ## @CredEnumerateW
L_.str.4:                               ## @.str.4
	.asciz	"CredFree"

	.comm	_CredFree,8,3                   ## @CredFree
L_.str.5:                               ## @.str.5
	.asciz	"CredDeleteW"

	.comm	_CredDeleteW,8,3                ## @CredDeleteW
L_.str.6:                               ## @.str.6
	.asciz	"failed to load functions"

	.no_dead_strip	_load_cred_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_cred_funcs
_load_cred_funcs:                       ; @load_cred_funcs
	.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
Lloh0:
	adrp	x8, _LOAD_LIBRARY_SEARCH_SYSTEM32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOAD_LIBRARY_SEARCH_SYSTEM32@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_LoadLibraryExA
Lloh5:
	adrp	x19, _advapi@GOTPAGE
Lloh6:
	ldr	x19, [x19, _advapi@GOTPAGEOFF]
	str	w0, [x19]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
	ldr	w0, [x19]
LBB0_2:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GetProcAddress
Lloh11:
	adrp	x22, _CredWriteW@GOTPAGE
Lloh12:
	ldr	x22, [x22, _CredWriteW@GOTPAGEOFF]
	str	x0, [x22]
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_GetProcAddress
Lloh15:
	adrp	x20, _CredEnumerateW@GOTPAGE
Lloh16:
	ldr	x20, [x20, _CredEnumerateW@GOTPAGEOFF]
	str	x0, [x20]
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_GetProcAddress
Lloh19:
	adrp	x21, _CredFree@GOTPAGE
Lloh20:
	ldr	x21, [x21, _CredFree@GOTPAGEOFF]
	str	x0, [x21]
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_GetProcAddress
Lloh23:
	adrp	x8, _CredDeleteW@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CredDeleteW@GOTPAGEOFF]
Lloh25:
	str	x0, [x8]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.5:
	cbz	x0, LBB0_7
; %bb.6:
	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
LBB0_7:
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	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
	b	_die
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"advapi32.dll"

	.comm	_LOAD_LIBRARY_SEARCH_SYSTEM32,4,2 ; @LOAD_LIBRARY_SEARCH_SYSTEM32
	.comm	_advapi,4,2                     ; @advapi
l_.str.1:                               ; @.str.1
	.asciz	"failed to load advapi32.dll"

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

	.comm	_CredWriteW,8,3                 ; @CredWriteW
l_.str.3:                               ; @.str.3
	.asciz	"CredEnumerateW"

	.comm	_CredEnumerateW,8,3             ; @CredEnumerateW
l_.str.4:                               ; @.str.4
	.asciz	"CredFree"

	.comm	_CredFree,8,3                   ; @CredFree
l_.str.5:                               ; @.str.5
	.asciz	"CredDeleteW"

	.comm	_CredDeleteW,8,3                ; @CredDeleteW
l_.str.6:                               ; @.str.6
	.asciz	"failed to load functions"

	.no_dead_strip	_load_cred_funcs
.subsections_via_symbols
