	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_get                         ## -- Begin function kt_get
	.p2align	4, 0x90
_kt_get:                                ## @kt_get
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ktutil_open_keytab
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_krb5_set_default_realm
LBB0_4:
	movl	24(%rbx), %edi
	testl	%edi, %edi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	shll	$3, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movslq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	cmpq	$2, %rax
	movq	%r13, %r12
	movl	$1, %r13d
	movq	%rax, %r14
	cmovaeq	%rax, %r13
	xorl	%ebx, %ebx
	movq	_context@GOTPCREL(%rip), %r15
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	32(%rax), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdx
	callq	_krb5_string_to_enctype
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	addq	$8, %r12
	cmpq	%rbx, %r13
	jne	LBB0_11
## %bb.14:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jg	LBB0_17
LBB0_16:
	movq	%r13, %rdi
	callq	_free
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_62
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_63
LBB0_5:
	xorl	%r13d, %r13d
LBB0_9:
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testl	%r12d, %r12d
	jle	LBB0_16
LBB0_17:
	movl	%r12d, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rbx), %edi
	movq	(%r15,%r12,8), %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_krb5_warn
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_56:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r12
	cmpq	-160(%rbp), %r12                ## 8-byte Folded Reload
	je	LBB0_57
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
                                        ##       Child Loop BB0_48 Depth 3
	movq	_context@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r15,%r12,8), %rsi
	leaq	-88(%rbp), %rdx
	callq	_krb5_parse_name
	testq	%rax, %rax
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	-136(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	-88(%rbp), %rsi
	movq	%rsi, -120(%rbp)
	movq	_KRB5_KDB_DISALLOW_ALL_TIX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	%eax, -136(%rbp)
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_KADM5_PRINCIPAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	$0, -128(%rbp)
	movq	_KADM5_PRINC_EXPIRE_TIME@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_krb5_principal_get_realm
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	16(%r15), %edi
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	movq	%rax, %rsi
	callq	_open_kadmin_connection
	testq	%rax, %rax
	movq	_KRB5_KDB_DISALLOW_ALL_TIX@GOTPCREL(%rip), %r15
	je	LBB0_60
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	leaq	L_.str.3(%rip), %rcx
	callq	_kadm5_create_principal
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_KADM5_DUP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_context@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15,%r12,8), %rcx
	movq	%r13, %rsi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_krb5_warn
	movl	(%rbx), %edi
	movq	-88(%rbp), %rsi
	callq	_krb5_free_principal
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_56
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-88(%rbp), %rsi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-104(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	callq	_kadm5_randkey_principal
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rdx
	movq	_context@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15,%r12,8), %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_krb5_warn
	movl	(%rbx), %edi
	movq	-88(%rbp), %rsi
	callq	_krb5_free_principal
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_56
LBB0_29:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-88(%rbp), %rsi
	movq	_KADM5_KVNO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KADM5_PRINCIPAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_kadm5_get_principal
	testq	%rax, %rax
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rdx
	movq	_context@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_krb5_warn
	cmpl	$0, -60(%rbp)
	jle	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_18 Depth=1
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movq	-104(%rbp), %rsi
	addq	%r13, %rsi
	callq	_krb5_free_keyblock_contents
	incq	%rbx
	movslq	-60(%rbp), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_32
	jmp	LBB0_33
LBB0_34:                                ##   in Loop: Header=BB0_18 Depth=1
	testq	%r13, %r13
	je	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	-136(%rbp), %ecx
	movl	(%r15), %eax
	testl	%ecx, %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	_context@GOTPCREL(%rip), %rbx
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rbx), %edi
	movq	(%r13,%r12,8), %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_krb5_warnx
	movl	(%r15), %eax
	movl	-136(%rbp), %ecx
LBB0_37:                                ##   in Loop: Header=BB0_18 Depth=1
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, -136(%rbp)
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, -136(%rbp)
	movl	$1, -132(%rbp)
	movq	_KADM5_KVNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	_context@GOTPCREL(%rip), %rbx
LBB0_39:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_kadm5_modify_principal
	testq	%rax, %rax
	movq	_TRUE@GOTPCREL(%rip), %r15
	je	LBB0_40
## %bb.42:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rbx), %edi
	movq	(%r13,%r12,8), %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	leaq	L_.str.8(%rip), %rdx
	xorl	%eax, %eax
	callq	_krb5_warn
	cmpl	$0, -60(%rbp)
	movq	%rbx, %r14
	jle	LBB0_33
## %bb.43:                              ##   in Loop: Header=BB0_18 Depth=1
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movq	-104(%rbp), %rsi
	addq	%r13, %rsi
	callq	_krb5_free_keyblock_contents
	incq	%rbx
	movslq	-60(%rbp), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_44
LBB0_33:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r14), %edi
	movq	-88(%rbp), %rsi
	callq	_krb5_free_principal
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_56
LBB0_40:                                ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, -60(%rbp)
	jle	LBB0_41
## %bb.45:                              ##   in Loop: Header=BB0_18 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_46 Depth=2
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(,%rbx,8), %rsi
	addq	-104(%rbp), %rsi
	callq	_krb5_free_keyblock_contents
	incq	%rbx
	movslq	-60(%rbp), %rax
	cmpq	%rax, %rbx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_55
LBB0_46:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_48 Depth 3
	movl	(%r15), %eax
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_51
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-104(%rbp), %rdx
	movq	(%rdx,%rbx,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_48:                                ##   Parent Loop BB0_18 Depth=1
                                        ##     Parent Loop BB0_46 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	(%r13,%rsi,8), %rdx
	je	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=3
	incq	%rsi
	cmpq	%rsi, %rdi
	jne	LBB0_48
## %bb.50:                              ##   in Loop: Header=BB0_46 Depth=2
	movl	%ecx, %eax
LBB0_51:                                ##   in Loop: Header=BB0_46 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_54
## %bb.52:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	-88(%rbp), %rax
	movq	%rax, -168(%rbp)
	movl	-132(%rbp), %eax
	movl	%eax, -184(%rbp)
	movq	-104(%rbp), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -176(%rbp)
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -180(%rbp)
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	leaq	-184(%rbp), %rdx
	callq	_krb5_kt_add_entry
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_46 Depth=2
	movq	%rax, %r13
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	leaq	L_.str.9(%rip), %rdx
	xorl	%eax, %eax
	callq	_krb5_warn
	movq	%r13, %rcx
	jmp	LBB0_54
LBB0_41:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_55:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_kadm5_free_principal_ent
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-88(%rbp), %rsi
	callq	_krb5_free_principal
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_56
LBB0_57:
	movq	%r13, %rdi
	callq	_free
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_59
## %bb.58:
	callq	_kadm5_destroy
LBB0_59:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_7:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_krb5_warnx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_61
LBB0_12:
	movl	(%r15), %edi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	32(%rax), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_krb5_warnx
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_61
LBB0_60:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_61:
	movq	%r13, %rdi
	callq	_free
LBB0_62:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	callq	_krb5_kt_close
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	testl	%r14d, %r14d
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
LBB0_63:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

L_.str.1:                               ## @.str.1
	.asciz	"unrecognized enctype: %s"

L_.str.2:                               ## @.str.2
	.asciz	"can't parse principal %s"

	.comm	_KADM5_PRINCIPAL,4,2            ## @KADM5_PRINCIPAL
	.comm	_KRB5_KDB_DISALLOW_ALL_TIX,4,2  ## @KRB5_KDB_DISALLOW_ALL_TIX
	.comm	_KADM5_ATTRIBUTES,4,2           ## @KADM5_ATTRIBUTES
	.comm	_KADM5_PRINC_EXPIRE_TIME,4,2    ## @KADM5_PRINC_EXPIRE_TIME
L_.str.3:                               ## @.str.3
	.asciz	"x"

	.comm	_KADM5_DUP,8,3                  ## @KADM5_DUP
L_.str.4:                               ## @.str.4
	.asciz	"kadm5_create_principal(%s)"

L_.str.5:                               ## @.str.5
	.asciz	"kadm5_randkey_principal(%s)"

	.comm	_KADM5_KVNO,4,2                 ## @KADM5_KVNO
L_.str.6:                               ## @.str.6
	.asciz	"kadm5_get_principal(%s)"

L_.str.7:                               ## @.str.7
	.asciz	"%s: disallow-all-tix flag set - clearing"

L_.str.8:                               ## @.str.8
	.asciz	"kadm5_modify_principal(%s)"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.9:                               ## @.str.9
	.asciz	"krb5_kt_add_entry"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_get                         ; -- Begin function kt_get
	.p2align	2
_kt_get:                                ; @kt_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x24, x1
	mov	x21, x0
	bl	_ktutil_open_keytab
	cbz	x0, LBB0_51
; %bb.1:
	mov	x25, x0
	ldr	x1, [x21]
Lloh0:
	adrp	x26, _context@GOTPAGE
Lloh1:
	ldr	x26, [x26, _context@GOTPAGEOFF]
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x26]
	bl	_krb5_set_default_realm
LBB0_3:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_52
; %bb.4:
	lsl	w0, w8, #3
	bl	_malloc
	mov	x28, x0
	cbz	x0, LBB0_57
; %bb.5:
	ldrsw	x23, [x21, #24]
	cbz	w23, LBB0_58
; %bb.6:
	mov	x19, #0
	cmp	x23, #1
	csinc	x20, x23, xzr, hi
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	x8, [x21, #32]
	ldr	x1, [x8, x19]
	add	x2, x28, x19
	bl	_krb5_string_to_enctype
	cbnz	x0, LBB0_59
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x19, #8
	subs	x20, x20, #1
	b.ne	LBB0_7
; %bb.9:
	cmp	w24, #0
	b.le	LBB0_53
LBB0_10:
	stp	x25, x23, [sp, #16]             ; 16-byte Folded Spill
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	mov	x19, #0
	mov	w23, #0
	mov	x25, #0
Lloh2:
	adrp	x20, _KRB5_KDB_DISALLOW_ALL_TIX@GOTPAGE
Lloh3:
	ldr	x20, [x20, _KRB5_KDB_DISALLOW_ALL_TIX@GOTPAGEOFF]
	mov	w24, w24
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, x0
	ldr	w0, [x26]
	ldr	x8, [x22, x19, lsl #3]
	str	x8, [sp]
	mov	x1, x27
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_krb5_warn
	add	w23, w23, #1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x19, x19, #1
	cmp	x19, x24
	b.eq	LBB0_54
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
                                        ;     Child Loop BB0_37 Depth 2
                                        ;     Child Loop BB0_41 Depth 2
                                        ;       Child Loop BB0_43 Depth 3
	ldr	w0, [x26]
	ldr	x1, [x22, x19, lsl #3]
	sub	x2, x29, #88
	bl	_krb5_parse_name
	cbnz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldur	x1, [x29, #-88]
Lloh6:
	adrp	x8, _KADM5_PRINCIPAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KADM5_PRINCIPAL@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	mov	x28, x20
	ldr	w8, [x20]
	ldr	w9, [sp, #80]
	orr	w8, w9, w8
	str	w8, [sp, #80]
Lloh9:
	adrp	x8, _KADM5_ATTRIBUTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KADM5_ATTRIBUTES@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
	stp	xzr, x1, [sp, #88]
Lloh12:
	adrp	x8, _KADM5_PRINC_EXPIRE_TIME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KADM5_PRINC_EXPIRE_TIME@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	cbnz	x25, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x26]
	bl	_krb5_principal_get_realm
	mov	x8, x0
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldp	w2, w0, [x21, #12]
	ldr	w3, [x21, #8]
	mov	x1, x8
	bl	_open_kadmin_connection
	mov	x25, x0
	cbz	x0, LBB0_60
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	orr	w8, w27, w24
	orr	w2, w8, w20
	add	x1, sp, #80
	mov	x0, x25
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	bl	_kadm5_create_principal
	mov	x24, x0
Lloh17:
	adrp	x8, _KADM5_DUP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KADM5_DUP@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	x1, [x29, #-88]
	add	x2, sp, #72
	add	x3, sp, #68
	mov	x0, x25
	bl	_kadm5_randkey_principal
	cbz	x0, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, x0
	ldr	w0, [x26]
	ldr	x8, [x22, x19, lsl #3]
	str	x8, [sp]
	mov	x1, x27
Lloh20:
	adrp	x2, l_.str.5@PAGE
Lloh21:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_krb5_warn
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x26]
	ldur	x1, [x29, #-88]
	bl	_krb5_free_principal
	add	w23, w23, #1
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x22, x19, lsl #3]
	str	x8, [sp]
	mov	x1, x24
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_krb5_warn
	ldr	w0, [x26]
	ldur	x1, [x29, #-88]
	bl	_krb5_free_principal
	add	w23, w23, #1
	mov	x27, x24
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, x28
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_12
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	ldur	x1, [x29, #-88]
Lloh24:
	adrp	x8, _KADM5_PRINCIPAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KADM5_PRINCIPAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _KADM5_KVNO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _KADM5_KVNO@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _KADM5_ATTRIBUTES@GOTPAGE
Lloh31:
	ldr	x9, [x9, _KADM5_ATTRIBUTES@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x2, sp, #80
	mov	x0, x25
	bl	_kadm5_get_principal
	cbz	x0, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, x0
	ldr	w0, [x26]
	ldr	x8, [x22, x19, lsl #3]
	str	x8, [sp]
	mov	x1, x27
Lloh33:
	adrp	x2, l_.str.6@PAGE
Lloh34:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_krb5_warn
	ldr	w8, [sp, #68]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, #0
	mov	x24, #0
LBB0_28:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26]
	ldr	x8, [sp, #72]
	add	x1, x8, x20
	bl	_krb5_free_keyblock_contents
	add	x24, x24, #1
	ldrsw	x8, [sp, #68]
	add	x20, x20, #8
	cmp	x24, x8
	b.lt	LBB0_28
	b	LBB0_21
LBB0_29:                                ;   in Loop: Header=BB0_13 Depth=1
	cbz	x24, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [sp, #80]
	mov	x20, x28
	ldr	w8, [x28]
	tst	w8, w9
	b.eq	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x22, x19, lsl #3]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_krb5_warnx
	ldr	w8, [x20]
	ldr	w9, [sp, #80]
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=1
	bic	w8, w9, w8
	str	w8, [sp, #80]
Lloh37:
	adrp	x8, _KADM5_ATTRIBUTES@GOTPAGE
Lloh38:
	ldr	x8, [x8, _KADM5_ATTRIBUTES@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, x28
	ldr	w8, [x28]
	ldr	w9, [sp, #80]
	bic	w8, w9, w8
Lloh40:
	adrp	x9, _KADM5_ATTRIBUTES@GOTPAGE
Lloh41:
	ldr	x9, [x9, _KADM5_ATTRIBUTES@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	str	w8, [sp, #80]
	mov	w8, #1
	str	w8, [sp, #84]
Lloh43:
	adrp	x8, _KADM5_KVNO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _KADM5_KVNO@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	orr	w2, w8, w9
LBB0_34:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x1, sp, #80
	mov	x0, x25
	bl	_kadm5_modify_principal
	cbz	x0, LBB0_38
; %bb.35:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, x0
	ldr	w0, [x26]
	ldr	x8, [x22, x19, lsl #3]
	str	x8, [sp]
	mov	x1, x27
Lloh46:
	adrp	x2, l_.str.8@PAGE
Lloh47:
	add	x2, x2, l_.str.8@PAGEOFF
	bl	_krb5_warn
	ldr	w8, [sp, #68]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.36:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, #0
	mov	x24, #0
LBB0_37:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26]
	ldr	x8, [sp, #72]
	add	x1, x8, x20
	bl	_krb5_free_keyblock_contents
	add	x24, x24, #1
	ldrsw	x8, [sp, #68]
	add	x20, x20, #8
	cmp	x24, x8
	b.lt	LBB0_37
	b	LBB0_21
LBB0_38:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #68]
	cmp	w8, #1
	b.lt	LBB0_49
; %bb.39:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x24, #0
	mov	x27, #0
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=2
	ldr	w0, [x26]
	ldr	x8, [sp, #72]
	add	x1, x8, x24, lsl #3
	bl	_krb5_free_keyblock_contents
	add	x24, x24, #1
	ldrsw	x8, [sp, #68]
	cmp	x24, x8
	b.ge	LBB0_50
LBB0_41:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_43 Depth 3
Lloh48:
	adrp	x8, _TRUE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x12, LBB0_46
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=2
Lloh51:
	adrp	x9, _FALSE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	ldr	x10, [sp, #72]
	ldr	x10, [x10, x24, lsl #3]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
LBB0_43:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_41 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x13, [x11]
	cmp	x10, x13
	b.eq	LBB0_46
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=3
	add	x11, x11, #8
	subs	x12, x12, #1
	b.ne	LBB0_43
; %bb.45:                               ;   in Loop: Header=BB0_41 Depth=2
	mov	x8, x9
LBB0_46:                                ;   in Loop: Header=BB0_41 Depth=2
	cbz	w8, LBB0_40
; %bb.47:                               ;   in Loop: Header=BB0_41 Depth=2
	ldur	x8, [x29, #-88]
	str	x8, [sp, #56]
	ldr	w8, [sp, #84]
	str	w8, [sp, #40]
	ldr	x8, [sp, #72]
	ldr	x8, [x8, x24, lsl #3]
	str	x8, [sp, #48]
	mov	x0, #0
	bl	_time
	str	w0, [sp, #44]
	ldr	w0, [x26]
	add	x2, sp, #40
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_krb5_kt_add_entry
	mov	x27, x0
	cbz	x0, LBB0_40
; %bb.48:                               ;   in Loop: Header=BB0_41 Depth=2
	ldr	w0, [x26]
	mov	x1, x27
Lloh54:
	adrp	x2, l_.str.9@PAGE
Lloh55:
	add	x2, x2, l_.str.9@PAGEOFF
	bl	_krb5_warn
	b	LBB0_40
LBB0_49:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, #0
LBB0_50:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x1, sp, #80
	mov	x0, x25
	bl	_kadm5_free_principal_ent
	ldr	w0, [x26]
	ldur	x1, [x29, #-88]
	bl	_krb5_free_principal
	b	LBB0_24
LBB0_51:
	mov	w0, #1
	b	LBB0_63
LBB0_52:
	mov	x28, #0
	mov	x23, #0
	cmp	w24, #0
	b.gt	LBB0_10
LBB0_53:
	mov	x0, x28
	bl	_free
	mov	w23, #0
	mov	x27, #0
	b	LBB0_62
LBB0_54:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_free
	cbz	x25, LBB0_56
; %bb.55:
	mov	x0, x25
	bl	_kadm5_destroy
LBB0_56:
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_62
LBB0_57:
	ldr	w0, [x26]
Lloh56:
	adrp	x1, l_.str@PAGE
Lloh57:
	add	x1, x1, l_.str@PAGEOFF
	bl	_krb5_warnx
	mov	x27, #0
	mov	w23, #0
	b	LBB0_61
LBB0_58:
	mov	x23, #0
	cmp	w24, #0
	b.gt	LBB0_10
	b	LBB0_53
LBB0_59:
	ldr	w0, [x26]
	ldr	x8, [x21, #32]
	ldr	x8, [x8, x19]
	str	x8, [sp]
Lloh58:
	adrp	x1, l_.str.1@PAGE
Lloh59:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_krb5_warnx
	mov	w23, #0
	mov	w27, #1
	b	LBB0_61
LBB0_60:
	mov	x27, #0
	ldp	x28, x25, [sp, #8]              ; 16-byte Folded Reload
LBB0_61:
	mov	x0, x28
	bl	_free
LBB0_62:
	ldr	w0, [x26]
	mov	x1, x25
	bl	_krb5_kt_close
	cmp	x27, #0
	ccmp	w23, #0, #0, eq
	cset	w0, ne
LBB0_63:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

l_.str.1:                               ; @.str.1
	.asciz	"unrecognized enctype: %s"

l_.str.2:                               ; @.str.2
	.asciz	"can't parse principal %s"

	.comm	_KADM5_PRINCIPAL,4,2            ; @KADM5_PRINCIPAL
	.comm	_KRB5_KDB_DISALLOW_ALL_TIX,4,2  ; @KRB5_KDB_DISALLOW_ALL_TIX
	.comm	_KADM5_ATTRIBUTES,4,2           ; @KADM5_ATTRIBUTES
	.comm	_KADM5_PRINC_EXPIRE_TIME,4,2    ; @KADM5_PRINC_EXPIRE_TIME
l_.str.3:                               ; @.str.3
	.asciz	"x"

	.comm	_KADM5_DUP,8,3                  ; @KADM5_DUP
l_.str.4:                               ; @.str.4
	.asciz	"kadm5_create_principal(%s)"

l_.str.5:                               ; @.str.5
	.asciz	"kadm5_randkey_principal(%s)"

	.comm	_KADM5_KVNO,4,2                 ; @KADM5_KVNO
l_.str.6:                               ; @.str.6
	.asciz	"kadm5_get_principal(%s)"

l_.str.7:                               ; @.str.7
	.asciz	"%s: disallow-all-tix flag set - clearing"

l_.str.8:                               ; @.str.8
	.asciz	"kadm5_modify_principal(%s)"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.9:                               ; @.str.9
	.asciz	"krb5_kt_add_entry"

.subsections_via_symbols
