	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ext_keytab                     ## -- Begin function ext_keytab
	.p2align	4, 0x90
_ext_keytab:                            ## @ext_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	(%rdi), %rsi
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rdx
	callq	_krb5_kt_resolve
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	callq	_krb5_warn
	movl	$1, %eax
	jmp	LBB0_12
LBB0_3:
	leaq	-48(%rbp), %rsi
	callq	_krb5_kt_default
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.5:
	movl	%r14d, %r13d
	leaq	L_.str.1(%rip), %r14
	leaq	-48(%rbp), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r12,8), %rdi
	movq	_do_ext_keytab@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_foreach_principal
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_6
## %bb.8:
	movq	_context@GOTPCREL(%rip), %r15
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%rax, %rbx
	movq	_context@GOTPCREL(%rip), %r15
LBB0_11:
	movl	(%r15), %edi
	movl	-48(%rbp), %esi
	callq	_krb5_kt_close
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
LBB0_12:
	addq	$8, %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	"krb5_kt_resolve"

	.comm	_do_ext_keytab,4,2              ## @do_ext_keytab
L_.str.1:                               ## @.str.1
	.asciz	"ext"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ext_keytab                     ; -- Begin function ext_keytab
	.p2align	2
_ext_keytab:                            ; @ext_keytab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x1, [x0]
Lloh0:
	adrp	x22, _context@GOTPAGE
Lloh1:
	ldr	x22, [x22, _context@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	x1, LBB0_3
; %bb.1:
	add	x2, sp, #8
	bl	_krb5_kt_resolve
	mov	x1, x0
	cbz	x0, LBB0_4
LBB0_2:
	ldr	w0, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_krb5_warn
	mov	w0, #1
	b	LBB0_11
LBB0_3:
	add	x1, sp, #8
	bl	_krb5_kt_default
	mov	x1, x0
	cbnz	x0, LBB0_2
LBB0_4:
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w23, w20
Lloh4:
	adrp	x24, _do_ext_keytab@GOTPAGE
Lloh5:
	ldr	x24, [x24, _do_ext_keytab@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	w1, [x24]
	add	x3, sp, #8
	mov	x2, x20
	bl	_foreach_principal
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, #8
	subs	x23, x23, #1
	b.ne	LBB0_6
LBB0_8:
	mov	x21, #0
	b	LBB0_10
LBB0_9:
	mov	x21, x0
LBB0_10:
	ldr	w0, [x22]
	ldr	w1, [sp, #8]
	bl	_krb5_kt_close
	cmp	x21, #0
	cset	w0, ne
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_kt_resolve"

	.comm	_do_ext_keytab,4,2              ; @do_ext_keytab
l_.str.1:                               ; @.str.1
	.asciz	"ext"

.subsections_via_symbols
