	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_remove                      ## -- Begin function kt_remove
	.p2align	4, 0x90
_kt_remove:                             ## @kt_remove
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movl	$0, -36(%rbp)
	movl	8(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_context@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-48(%rbp), %rdx
	callq	_krb5_parse_name
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_krb5_warn
	movl	$1, %eax
	jmp	LBB0_23
LBB0_3:
	movl	4(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.5:
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-36(%rbp), %rdx
	callq	_krb5_string_to_enctype
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.11:
	movl	-64(%rbp), %eax
	movl	%eax, -36(%rbp)
	cmpq	$0, -48(%rbp)
	je	LBB0_13
	jmp	LBB0_16
LBB0_4:
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)
	je	LBB0_13
	jmp	LBB0_16
LBB0_6:
	movl	-36(%rbp), %eax
	cmpq	$0, -48(%rbp)
	jne	LBB0_16
LBB0_13:
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	cmpl	$0, (%rbx)
	je	LBB0_15
LBB0_16:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ktutil_open_keytab
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %r14
	movq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rsi
	callq	_krb5_kt_remove_entry
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_krb5_kt_close
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.18:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_krb5_warn
LBB0_19:
	movl	$1, %r15d
	jmp	LBB0_20
LBB0_8:
	movl	(%r15), %edi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_krb5_warn
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	callq	_krb5_free_principal
LBB0_10:
	movl	$1, %eax
	jmp	LBB0_23
LBB0_15:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_krb5_warnx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_20:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_krb5_free_principal
LBB0_22:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
LBB0_23:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	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	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

L_.str.2:                               ## @.str.2
	.asciz	"You must give at least one of principal, enctype or kvno."

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"remove"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_remove                      ; -- Begin function kt_remove
	.p2align	2
_kt_remove:                             ; @kt_remove
	.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, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	ldr	w1, [x0, #8]
Lloh0:
	adrp	x21, _context@GOTPAGE
Lloh1:
	ldr	x21, [x21, _context@GOTPAGEOFF]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w0, [x21]
	add	x2, sp, #24
	bl	_krb5_parse_name
	cbz	w0, LBB0_3
; %bb.2:
	mov	x1, x0
	ldr	w0, [x21]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_krb5_warn
	mov	w0, #1
	b	LBB0_18
LBB0_3:
	ldr	w1, [x19, #4]
	cbz	w1, LBB0_7
; %bb.4:
	ldr	w0, [x21]
	add	x2, sp, #20
	bl	_krb5_string_to_enctype
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #32
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.6:
	ldr	w8, [sp, #32]
	str	w8, [sp, #20]
	b	LBB0_9
LBB0_7:
	mov	w8, #0
	b	LBB0_9
LBB0_8:
	ldr	w8, [sp, #20]
LBB0_9:
	ldr	x9, [sp, #24]
	cmp	x9, #0
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x19]
	cbz	w8, LBB0_22
LBB0_11:
	bl	_ktutil_open_keytab
	cbz	x0, LBB0_14
; %bb.12:
	mov	x20, x0
	ldr	x8, [sp, #24]
	str	x8, [sp, #40]
	ldr	w8, [sp, #20]
	ldr	w9, [x19]
	stp	w9, w8, [sp, #32]
	ldr	w0, [x21]
	add	x2, sp, #32
	mov	x1, x20
	bl	_krb5_kt_remove_entry
	mov	x19, x0
	ldr	w0, [x21]
	mov	x1, x20
	bl	_krb5_kt_close
	cbz	w19, LBB0_15
; %bb.13:
	ldr	w0, [x21]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_krb5_warn
LBB0_14:
	mov	w19, #1
LBB0_15:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_17
LBB0_16:
	ldr	w0, [x21]
	bl	_krb5_free_principal
LBB0_17:
	cmp	w19, #0
	cset	w0, ne
LBB0_18:
	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_19:
	ldr	w0, [x21]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_krb5_warn
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_21
; %bb.20:
	ldr	w0, [x21]
	bl	_krb5_free_principal
LBB0_21:
	mov	w0, #1
	b	LBB0_18
LBB0_22:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_krb5_warnx
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	ldr	x1, [sp, #24]
	cbnz	x1, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

l_.str.2:                               ; @.str.2
	.asciz	"You must give at least one of principal, enctype or kvno."

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"remove"

.subsections_via_symbols
