	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_check_entry
_do_check_entry:                        ## @do_check_entry
	.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
	movl	%edi, %ebx
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %esi
	callq	_krb5_unparse_name
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	leaq	-64(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_kadm_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KADM5_PRINCIPAL@GOTPCREL(%rip), %rax
	movq	_KADM5_KEY_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_kadm5_get_principal
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	movl	(%r12), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	callq	_krb5_warn
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_9
LBB0_2:
	cmpl	$0, -64(%rbp)
	jle	LBB0_8
## %bb.3:
	movl	$8, %r15d
	xorl	%r13d, %r13d
	leaq	-72(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	-64(%rbp), %rax
	addq	$16, %r15
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	-56(%rbp), %rax
	movq	(%rax,%r15), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_krb5_enctype_keysize
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rcx
	movq	-56(%rbp), %rax
	movq	-8(%rax,%r15), %r8
	cmpq	(%r8), %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	movq	-48(%rbp), %rdx
	movq	(%rax,%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_krb5_warnx
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	_kadm_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_kadm5_free_principal_ent
LBB0_9:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.comm	_kadm_handle,4,2                ## @kadm_handle
	.comm	_KADM5_PRINCIPAL,4,2            ## @KADM5_PRINCIPAL
	.comm	_KADM5_KEY_DATA,4,2             ## @KADM5_KEY_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get principal: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Principal %s enctype %d, wrong length: %lu\n"

	.no_dead_strip	_do_check_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_check_entry
_do_check_entry:                        ; @do_check_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _context@GOTPAGE
Lloh1:
	ldr	x20, [x20, _context@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, x19
	bl	_krb5_unparse_name
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_12
LBB0_2:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh2:
	adrp	x21, _kadm_handle@GOTPAGE
Lloh3:
	ldr	x21, [x21, _kadm_handle@GOTPAGEOFF]
Lloh4:
	adrp	x8, _KADM5_PRINCIPAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KADM5_PRINCIPAL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _KADM5_KEY_DATA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _KADM5_KEY_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #16
	mov	x1, x19
	bl	_kadm5_get_principal
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x0
	ldr	w0, [x20]
	ldr	x3, [sp, #8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_krb5_warn
	ldr	x0, [sp, #8]
	bl	_free
	b	LBB0_11
LBB0_4:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x22, #0
	mov	x23, #0
Lloh12:
	adrp	x19, l_.str.1@PAGE
Lloh13:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [sp, #16]
	add	x22, x22, #16
	cmp	x23, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x8, [sp, #24]
	add	x8, x8, x22
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	mov	x2, sp
	bl	_krb5_enctype_keysize
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [sp]
	ldr	x8, [sp, #24]
	ldr	x4, [x8, x22]
	ldr	x10, [x4]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20]
	ldr	x2, [sp, #8]
	add	x8, x8, x22
	ldr	x8, [x8, #8]
	ldr	w3, [x8]
	mov	x1, x19
	bl	_krb5_warnx
	b	LBB0_6
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_free
	ldr	w0, [x21]
	add	x1, sp, #16
	bl	_kadm5_free_principal_ent
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.comm	_kadm_handle,4,2                ; @kadm_handle
	.comm	_KADM5_PRINCIPAL,4,2            ; @KADM5_PRINCIPAL
	.comm	_KADM5_KEY_DATA,4,2             ; @KADM5_KEY_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get principal: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Principal %s enctype %d, wrong length: %lu\n"

	.no_dead_strip	_do_check_entry
.subsections_via_symbols
