	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gssd_get_cc_from_keytab
_gssd_get_cc_from_keytab:               ## @gssd_get_cc_from_keytab
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-28(%rbp), %rdi
	callq	_krb5_init_context
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movl	-28(%rbp), %edi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_krb5_parse_name
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:
	movl	-28(%rbp), %edi
	leaq	-56(%rbp), %rsi
	callq	_krb5_get_init_creds_opt_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movl	$1, %r14d
	jmp	LBB0_14
LBB0_4:
	movl	-28(%rbp), %edi
	leaq	-36(%rbp), %rsi
	callq	_krb5_cc_default
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r15
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_6:
	movl	-28(%rbp), %edi
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %edx
	callq	_krb5_cc_initialize
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r15
	jmp	LBB0_12
LBB0_8:
	movl	-28(%rbp), %ebx
	movl	-32(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_principal_get_realm
	movq	-56(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_krb5_get_init_creds_opt_set_default_flags
	movl	-28(%rbp), %edi
	leaq	-44(%rbp), %rsi
	callq	_krb5_kt_default
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movl	-28(%rbp), %edi
	movl	-32(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-40(%rbp), %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_get_init_creds_keytab
	movq	%rax, %r14
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	-28(%rbp), %edi
	movl	-36(%rbp), %esi
	leaq	-40(%rbp), %rdx
	callq	_krb5_cc_store_cred
	movq	%rax, %r15
LBB0_11:
	movl	-28(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_krb5_kt_close
LBB0_12:
	movl	-28(%rbp), %edi
	movl	-36(%rbp), %esi
	callq	_krb5_cc_close
LBB0_13:
	movl	-28(%rbp), %edi
	movq	-56(%rbp), %rsi
	callq	_krb5_get_init_creds_opt_free
LBB0_14:
	movl	-28(%rbp), %edi
	movl	-32(%rbp), %esi
	callq	_krb5_free_principal
	testq	%r14, %r14
	jne	LBB0_16
## %bb.15:
	movl	-28(%rbp), %edi
	leaq	-40(%rbp), %rsi
	callq	_krb5_free_cred_contents
LBB0_16:
	movl	-28(%rbp), %edi
	callq	_krb5_free_context
LBB0_17:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gssd"

	.no_dead_strip	_gssd_get_cc_from_keytab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gssd_get_cc_from_keytab
_gssd_get_cc_from_keytab:               ; @gssd_get_cc_from_keytab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	sub	x0, x29, #20
	bl	_krb5_init_context
	mov	x19, x0
	cbnz	x0, LBB0_14
; %bb.1:
	ldur	w0, [x29, #-20]
	add	x2, sp, #24
	mov	x1, x20
	bl	_krb5_parse_name
	mov	x19, x0
	cbnz	x0, LBB0_13
; %bb.2:
	ldur	w0, [x29, #-20]
	add	x1, sp, #8
	bl	_krb5_get_init_creds_opt_alloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x19, x0
	mov	w20, #1
	b	LBB0_11
LBB0_4:
	ldur	w0, [x29, #-20]
	add	x1, sp, #4
	bl	_krb5_cc_default
	cbz	x0, LBB0_6
; %bb.5:
	mov	x19, x0
	mov	w20, #1
	b	LBB0_10
LBB0_6:
	ldur	w0, [x29, #-20]
	ldr	w1, [sp, #4]
	ldr	w2, [sp, #24]
	bl	_krb5_cc_initialize
	cbnz	x0, LBB0_8
; %bb.7:
	ldur	w19, [x29, #-20]
	ldr	w1, [sp, #24]
	mov	x0, x19
	bl	_krb5_principal_get_realm
	mov	x2, x0
	ldr	x3, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_krb5_get_init_creds_opt_set_default_flags
	ldur	w0, [x29, #-20]
	add	x1, sp, #20
	bl	_krb5_kt_default
	cbz	x0, LBB0_15
LBB0_8:
	mov	x19, x0
	mov	w20, #1
LBB0_9:
	ldur	w0, [x29, #-20]
	ldr	w1, [sp, #4]
	bl	_krb5_cc_close
LBB0_10:
	ldur	w0, [x29, #-20]
	ldr	x1, [sp, #8]
	bl	_krb5_get_init_creds_opt_free
LBB0_11:
	ldur	w0, [x29, #-20]
	ldr	w1, [sp, #24]
	bl	_krb5_free_principal
	cbnz	x20, LBB0_13
; %bb.12:
	ldur	w0, [x29, #-20]
	add	x1, sp, #16
	bl	_krb5_free_cred_contents
LBB0_13:
	ldur	w0, [x29, #-20]
	bl	_krb5_free_context
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	ldur	w0, [x29, #-20]
	ldp	w3, w2, [sp, #20]
	ldr	x6, [sp, #8]
	add	x1, sp, #16
	mov	w4, #0
	mov	x5, #0
	bl	_krb5_get_init_creds_keytab
	mov	x20, x0
	mov	x19, x0
	cbnz	x0, LBB0_17
; %bb.16:
	ldur	w0, [x29, #-20]
	ldr	w1, [sp, #4]
	add	x2, sp, #16
	bl	_krb5_cc_store_cred
	mov	x19, x0
LBB0_17:
	ldur	w0, [x29, #-20]
	ldr	w1, [sp, #20]
	bl	_krb5_kt_close
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gssd"

	.no_dead_strip	_gssd_get_cc_from_keytab
.subsections_via_symbols
