	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_rename                      ## -- Begin function kt_rename
	.p2align	4, 0x90
_kt_rename:                             ## @kt_rename
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rdx), %rsi
	leaq	-64(%rbp), %rdx
	callq	_krb5_parse_name
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rsi
	leaq	-72(%rbp), %rdx
	callq	_krb5_parse_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movl	(%r12), %edi
	movq	-64(%rbp), %rsi
	callq	_krb5_free_principal
	movl	(%r12), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_krb5_warn
LBB0_5:
	movl	$1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	callq	_ktutil_open_keytab
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r14
	leaq	-52(%rbp), %rdx
	movq	%rax, %rsi
	callq	_krb5_kt_start_seq_get
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r14, %rsi
	callq	_krb5_kt_close
	movl	(%r12), %edi
LBB0_10:
	movq	-64(%rbp), %rsi
	callq	_krb5_free_principal
	movl	(%r12), %edi
	movq	-72(%rbp), %rsi
	callq	_krb5_free_principal
	jmp	LBB0_5
LBB0_11:
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r14, %rsi
	callq	_krb5_kt_next_entry
	testq	%rax, %rax
	je	LBB0_15
LBB0_12:
	movq	_KRB5_CC_END@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.13:
	movq	_KRB5_KT_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.14:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rsi
	jmp	LBB0_25
LBB0_15:
	leaq	-48(%rbp), %r15
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	$0, -48(%rbp)
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_krb5_kt_free_entry
	movl	(%r12), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	leaq	-52(%rbp), %rcx
	callq	_krb5_kt_next_entry
	testq	%rax, %rax
	jne	LBB0_12
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdx
	callq	_krb5_principal_compare
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	callq	_krb5_free_principal
	movq	-72(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	(%r12), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_krb5_kt_add_entry
	testq	%rax, %rax
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-64(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	(%r12), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_krb5_kt_remove_entry
	testq	%rax, %rax
	je	LBB0_16
## %bb.22:
	movq	%rax, %rbx
	movq	$0, -48(%rbp)
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_krb5_kt_free_entry
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_24
LBB0_23:
	movq	%rax, %rbx
	movq	$0, -48(%rbp)
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_krb5_kt_free_entry
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rdx
LBB0_24:
	movq	%rbx, %rsi
LBB0_25:
	xorl	%eax, %eax
	callq	_krb5_warn
	movl	$1, %ebx
LBB0_26:
	movl	(%r12), %edi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rsi
	callq	_krb5_kt_end_seq_get
	movl	(%r12), %edi
	movq	-64(%rbp), %rsi
	callq	_krb5_free_principal
	movl	(%r12), %edi
	movq	-72(%rbp), %rsi
	callq	_krb5_free_principal
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_KRB5_CC_END,8,3                ## @KRB5_CC_END
	.comm	_KRB5_KT_END,8,3                ## @KRB5_KT_END
L_.str.1:                               ## @.str.1
	.asciz	"getting entry from keytab"

L_.str.2:                               ## @.str.2
	.asciz	"adding entry"

L_.str.3:                               ## @.str.3
	.asciz	"removing entry"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_rename                      ; -- Begin function kt_rename
	.p2align	2
_kt_rename:                             ; @kt_rename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x22, _context@GOTPAGE
Lloh1:
	ldr	x22, [x22, _context@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x1, [x2]
	add	x2, sp, #24
	bl	_krb5_parse_name
	mov	x1, x0
	ldr	w0, [x22]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x1, [x19, #8]
	add	x2, sp, #16
	bl	_krb5_parse_name
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	ldr	w0, [x22]
	ldr	x1, [sp, #24]
	bl	_krb5_free_principal
	ldr	w0, [x22]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
LBB0_4:
	bl	_krb5_warn
LBB0_5:
	mov	w20, #1
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	_ktutil_open_keytab
	mov	x19, x0
	ldr	w0, [x22]
	cbz	x19, LBB0_10
; %bb.8:
	add	x2, sp, #36
	mov	x1, x19
	bl	_krb5_kt_start_seq_get
	mov	x8, x0
	ldr	w0, [x22]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x1, x19
	bl	_krb5_kt_close
	ldr	w0, [x22]
LBB0_10:
	ldr	x1, [sp, #24]
	bl	_krb5_free_principal
	ldr	w0, [x22]
	ldr	x1, [sp, #16]
	bl	_krb5_free_principal
	b	LBB0_5
LBB0_11:
	add	x2, sp, #40
	add	x3, sp, #36
	mov	x1, x19
	bl	_krb5_kt_next_entry
	mov	x1, x0
	cbnz	x0, LBB0_20
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	str	xzr, [sp, #40]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x22]
	add	x1, sp, #40
	bl	_krb5_kt_free_entry
	ldr	w0, [x22]
	add	x2, sp, #40
	add	x3, sp, #36
	mov	x1, x19
	bl	_krb5_kt_next_entry
	cbnz	x0, LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	x1, [sp, #40]
	ldr	x2, [sp, #24]
	bl	_krb5_principal_compare
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x22]
	ldr	x1, [sp, #40]
	bl	_krb5_free_principal
	ldr	x8, [sp, #16]
	str	x8, [sp, #40]
	ldr	w0, [x22]
	add	x2, sp, #40
	mov	x1, x19
	bl	_krb5_kt_add_entry
	cbnz	x0, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #24]
	str	x8, [sp, #40]
	ldr	w0, [x22]
	add	x2, sp, #40
	mov	x1, x19
	bl	_krb5_kt_remove_entry
	cbz	x0, LBB0_12
; %bb.18:
	mov	x21, x0
	str	xzr, [sp, #40]
	ldr	w0, [x22]
	add	x1, sp, #40
	bl	_krb5_kt_free_entry
	ldr	w0, [x22]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_19:
	mov	x1, x0
LBB0_20:
Lloh8:
	adrp	x8, _KRB5_CC_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KRB5_CC_END@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _KRB5_KT_END@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KRB5_KT_END@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x1, x9, #4, ne
	b.ne	LBB0_22
; %bb.21:
	mov	w20, #0
	b	LBB0_26
LBB0_22:
	ldr	w0, [x22]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_23:
	mov	x21, x0
	str	xzr, [sp, #40]
	ldr	w0, [x22]
	add	x1, sp, #40
	bl	_krb5_kt_free_entry
	ldr	w0, [x22]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_24:
	mov	x1, x21
LBB0_25:
	bl	_krb5_warn
	mov	w20, #1
LBB0_26:
	ldr	w0, [x22]
	add	x2, sp, #36
	mov	x1, x19
	bl	_krb5_kt_end_seq_get
	ldr	w0, [x22]
	ldr	x1, [sp, #24]
	bl	_krb5_free_principal
	ldr	w0, [x22]
	ldr	x1, [sp, #16]
	bl	_krb5_free_principal
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_KRB5_CC_END,8,3                ; @KRB5_CC_END
	.comm	_KRB5_KT_END,8,3                ; @KRB5_KT_END
l_.str.1:                               ; @.str.1
	.asciz	"getting entry from keytab"

l_.str.2:                               ; @.str.2
	.asciz	"adding entry"

l_.str.3:                               ; @.str.3
	.asciz	"removing entry"

.subsections_via_symbols
