	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad_get_cred
_ad_get_cred:                           ## @ad_get_cred
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_KRB5_TGS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%rdi), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movl	%ecx, %r8d
	callq	_asprintf
	movq	-40(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movl	4(%r15), %esi
	movl	8(%r15), %edi
	movq	_krb5_prompter_posix@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-28(%rbp), %rax
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	__kadm5_c_get_cred_cache
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	-40(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.4:
	movl	-28(%rbp), %eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s@%s"

	.comm	_KRB5_TGS_NAME,4,2              ## @KRB5_TGS_NAME
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_krb5_prompter_posix,4,2        ## @krb5_prompter_posix
	.no_dead_strip	_ad_get_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad_get_cred
_ad_get_cred:                           ; @ad_get_cred
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _KRB5_TGS_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_TGS_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w3, [x0, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	mov	x4, x3
	bl	_asprintf
	ldr	x2, [sp]
	cbz	x2, LBB0_6
; %bb.4:
	ldp	w1, w0, [x19, #4]
Lloh5:
	adrp	x8, _krb5_prompter_posix@GOTPAGE
Lloh6:
	ldr	x8, [x8, _krb5_prompter_posix@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	add	x7, sp, #12
	mov	x3, x20
	mov	x5, #0
	mov	x6, #0
	bl	__kadm5_c_get_cred_cache
	mov	x20, x0
	ldr	x0, [sp]
	bl	_free
	cbnz	x20, LBB0_2
; %bb.5:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_2
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s@%s"

	.comm	_KRB5_TGS_NAME,4,2              ; @KRB5_TGS_NAME
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_krb5_prompter_posix,4,2        ; @krb5_prompter_posix
	.no_dead_strip	_ad_get_cred
.subsections_via_symbols
