	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_new_cache
_get_new_cache:                         ## @get_new_cache
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r15
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movl	%edi, %r14d
	leaq	-56(%rbp), %rsi
	callq	_krb5_get_init_creds_opt_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_16:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	callq	_krb5_principal_get_realm
	movq	-56(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_krb5_get_init_creds_opt_set_default_flags
	movq	-56(%rbp), %rdi
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_krb5_get_init_creds_opt_set_forwardable
	movq	-56(%rbp), %rdi
	movl	(%rbx), %esi
	callq	_krb5_get_init_creds_opt_set_proxiable
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	jne	LBB0_9
## %bb.2:
	testq	%r8, %r8
	jne	LBB0_9
## %bb.3:
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_krb5_kt_resolve
	jmp	LBB0_6
LBB0_9:
	subq	$8, %rsp
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	-56(%rbp)
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_krb5_get_init_creds_password
	addq	$32, %rsp
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_4:
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_kt_default
LBB0_6:
	movl	%eax, %ebx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_get_init_creds_opt_free
	jmp	LBB0_16
LBB0_7:
	movl	-44(%rbp), %ecx
	subq	$8, %rsp
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	xorl	%r8d, %r8d
	pushq	-56(%rbp)
	callq	_krb5_get_init_creds_keytab
	addq	$16, %rsp
	movl	%eax, %ebx
	movl	-44(%rbp), %esi
	movl	%r14d, %edi
	callq	_krb5_kt_close
LBB0_10:
	movq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_get_init_creds_opt_free
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_11
## %bb.17:
	movq	_KADM5_BAD_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_11:
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.12:
	movq	_krb5_cc_type_memory@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_krb5_cc_new_unique
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	%r14d, %edi
	callq	_krb5_cc_initialize
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movl	-44(%rbp), %esi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_krb5_cc_store_cred
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	16(%rbp), %rbx
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_krb5_free_cred_contents
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kadmin"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_KADM5_BAD_PASSWORD,4,2         ## @KADM5_BAD_PASSWORD
	.comm	_krb5_cc_type_memory,4,2        ## @krb5_cc_type_memory
	.no_dead_strip	_get_new_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_new_cache
_get_new_cache:                         ; @get_new_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x21, x5
	mov	x26, x4
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x20, x0
	add	x1, sp, #16
	bl	_krb5_get_init_creds_opt_alloc
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x0, x20
	mov	x1, x22
	bl	_krb5_principal_get_realm
	mov	x2, x0
	ldr	x3, [sp, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_krb5_get_init_creds_opt_set_default_flags
	ldr	x0, [sp, #16]
Lloh2:
	adrp	x23, _FALSE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_krb5_get_init_creds_opt_set_forwardable
	ldr	x0, [sp, #16]
	ldr	w1, [x23]
	bl	_krb5_get_init_creds_opt_set_proxiable
	cbnz	x25, LBB0_7
; %bb.3:
	cbnz	x24, LBB0_7
; %bb.4:
	cbz	x26, LBB0_8
; %bb.5:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x26
	bl	_krb5_kt_resolve
	mov	x23, x0
	cbz	w0, LBB0_9
LBB0_6:
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_krb5_get_init_creds_opt_free
	b	LBB0_1
LBB0_7:
	ldr	x8, [sp, #16]
	str	x8, [sp]
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x22
	mov	x3, x25
	mov	x4, x24
	mov	x5, #0
	mov	w6, #0
	mov	x7, x21
	bl	_krb5_get_init_creds_password
	mov	x23, x0
	b	LBB0_10
LBB0_8:
	add	x1, sp, #12
	mov	x0, x20
	bl	_krb5_kt_default
	mov	x23, x0
	cbnz	w0, LBB0_6
LBB0_9:
	ldr	w3, [sp, #12]
	ldr	x6, [sp, #16]
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x22
	mov	w4, #0
	mov	x5, x21
	bl	_krb5_get_init_creds_keytab
	mov	x23, x0
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_krb5_kt_close
LBB0_10:
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_krb5_get_init_creds_opt_free
	sub	w8, w23, #128
	cmp	w8, #3
	b.hs	LBB0_12
; %bb.11:
Lloh4:
	adrp	x8, _KADM5_BAD_PASSWORD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KADM5_BAD_PASSWORD@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	b	LBB0_1
LBB0_12:
	cbnz	w23, LBB0_1
; %bb.13:
Lloh7:
	adrp	x8, _krb5_cc_type_memory@GOTPAGE
Lloh8:
	ldr	x8, [x8, _krb5_cc_type_memory@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, #0
	bl	_krb5_cc_new_unique
	mov	x23, x0
	cbnz	w0, LBB0_1
; %bb.14:
	ldr	w1, [sp, #12]
	ldr	w2, [sp, #24]
	mov	x0, x20
	bl	_krb5_cc_initialize
	mov	x23, x0
	cbnz	w0, LBB0_1
; %bb.15:
	ldr	w1, [sp, #12]
	add	x2, sp, #24
	mov	x0, x20
	bl	_krb5_cc_store_cred
	mov	x23, x0
	cbnz	w0, LBB0_1
; %bb.16:
	add	x1, sp, #24
	mov	x0, x20
	bl	_krb5_free_cred_contents
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kadmin"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_KADM5_BAD_PASSWORD,4,2         ; @KADM5_BAD_PASSWORD
	.comm	_krb5_cc_type_memory,4,2        ; @krb5_cc_type_memory
	.no_dead_strip	_get_new_cache
.subsections_via_symbols
