	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hdb_fetch_kvno                ## -- Begin function _hdb_fetch_kvno
	.p2align	4, 0x90
__hdb_fetch_kvno:                       ## @_hdb_fetch_kvno
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%ecx, %r12d
	movq	%rsi, %r15
	movl	%edi, %r13d
	movq	$0, -56(%rbp)
	movq	(%rdx), %rax
	movq	_KRB5_NT_ENTERPRISE_PRINCIPAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	8(%rdx), %ecx
	cmpl	$1, %ecx
	jne	LBB0_2
## %bb.3:
	movq	16(%rdx), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r13d, %edi
	callq	_krb5_parse_name
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.4:
	movq	-56(%rbp), %rdx
LBB0_5:
	leaq	-48(%rbp), %rax
	movl	%r13d, %edi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_hdb_principal2key
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	%r13d, %edi
	callq	_krb5_free_principal
LBB0_7:
	movl	-48(%rbp), %edx
	leaq	-44(%rbp), %rcx
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	*(%r15)
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_krb5_data_free
	testl	%ebx, %ebx
	jne	LBB0_21
## %bb.8:
	leaq	-44(%rbp), %rsi
	movl	%r13d, %edi
	movq	%r14, %rdx
	callq	_hdb_value2entry
	movl	%eax, %ebx
	movq	_ASN1_BAD_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_16
## %bb.9:
	movq	_HDB_F_CANON@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.11:
	leaq	-44(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	%r13d, %edi
	callq	_hdb_value2entry_alias
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
LBB0_14:
	leaq	-44(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_21
LBB0_2:
	movq	_KRB5_PARSE_MALFORMED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_krb5_set_error_message
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	-44(%rbp), %rdi
	callq	_krb5_data_free
	movq	_HDB_ERR_NOENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_12:
	movq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r13d, %edi
	callq	_hdb_principal2key
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_krb5_data_free
	leaq	-64(%rbp), %rdi
	callq	_free_hdb_entry_alias
	movl	-48(%rbp), %edx
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	*(%r15)
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_krb5_data_free
	testl	%ebx, %ebx
	jne	LBB0_21
## %bb.13:
	leaq	-44(%rbp), %rsi
	movl	%r13d, %edi
	movq	%r14, %rdx
	callq	_hdb_value2entry
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:
	xorl	%ebx, %ebx
LBB0_16:
	leaq	-44(%rbp), %rdi
	callq	_krb5_data_free
	cmpq	$0, 8(%r15)
	je	LBB0_21
## %bb.17:
	movq	_HDB_F_DECRYPT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.18:
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_hdb_unseal_keys
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	%eax, %ebx
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_hdb_free_entry
	jmp	LBB0_21
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_NT_ENTERPRISE_PRINCIPAL,8,3 ## @KRB5_NT_ENTERPRISE_PRINCIPAL
	.comm	_KRB5_PARSE_MALFORMED,4,2       ## @KRB5_PARSE_MALFORMED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malformed principal: enterprise name with %d name components"

	.comm	_ASN1_BAD_ID,4,2                ## @ASN1_BAD_ID
	.comm	_HDB_F_CANON,4,2                ## @HDB_F_CANON
	.comm	_HDB_ERR_NOENTRY,4,2            ## @HDB_ERR_NOENTRY
	.comm	_HDB_F_DECRYPT,4,2              ## @HDB_F_DECRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hdb_fetch_kvno                ; -- Begin function _hdb_fetch_kvno
	.p2align	2
__hdb_fetch_kvno:                       ; @_hdb_fetch_kvno
	.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	x20, x5
	mov	x22, x3
	mov	x8, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	x9, [x2]
Lloh0:
	adrp	x10, _KRB5_NT_ENTERPRISE_PRINCIPAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _KRB5_NT_ENTERPRISE_PRINCIPAL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	ldr	w3, [x8, #8]
	cmp	w3, #1
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x8, #16]
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_krb5_parse_name
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.3:
	ldr	x8, [sp, #24]
LBB0_4:
	add	x2, sp, #20
	mov	x0, x19
	mov	x1, x8
	bl	_hdb_principal2key
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_krb5_free_principal
LBB0_6:
	ldr	x8, [x21]
	ldr	w2, [sp, #20]
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x23, x0
	add	x0, sp, #20
	bl	_krb5_data_free
	cbnz	w23, LBB0_12
; %bb.7:
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x20
	bl	_hdb_value2entry
	mov	x23, x0
Lloh3:
	adrp	x8, _ASN1_BAD_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_BAD_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.8:
Lloh6:
	adrp	x8, _HDB_F_CANON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDB_F_CANON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.9:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_hdb_value2entry_alias
	mov	x23, x0
	cbz	w0, LBB0_14
LBB0_10:
	add	x0, sp, #16
	bl	_krb5_data_free
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _KRB5_PARSE_MALFORMED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KRB5_PARSE_MALFORMED@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	bl	_krb5_set_error_message
LBB0_12:
	mov	x0, x23
	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
LBB0_13:
	add	x0, sp, #16
	bl	_krb5_data_free
Lloh14:
	adrp	x8, _HDB_ERR_NOENTRY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDB_ERR_NOENTRY@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	b	LBB0_12
LBB0_14:
	ldr	x1, [sp, #8]
	add	x2, sp, #20
	mov	x0, x19
	bl	_hdb_principal2key
	add	x0, sp, #16
	bl	_krb5_data_free
	add	x0, sp, #8
	bl	_free_hdb_entry_alias
	ldr	x8, [x21]
	ldr	w2, [sp, #20]
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	blr	x8
	mov	x23, x0
	add	x0, sp, #20
	bl	_krb5_data_free
	cbnz	w23, LBB0_12
; %bb.15:
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x20
	bl	_hdb_value2entry
	mov	x23, x0
	cbnz	w0, LBB0_10
LBB0_16:
	add	x0, sp, #16
	bl	_krb5_data_free
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.17:
Lloh17:
	adrp	x8, _HDB_F_DECRYPT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDB_F_DECRYPT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.18:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_hdb_unseal_keys
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.19:
	mov	x0, x19
	mov	x1, x20
	bl	_hdb_free_entry
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_NT_ENTERPRISE_PRINCIPAL,8,3 ; @KRB5_NT_ENTERPRISE_PRINCIPAL
	.comm	_KRB5_PARSE_MALFORMED,4,2       ; @KRB5_PARSE_MALFORMED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malformed principal: enterprise name with %d name components"

	.comm	_ASN1_BAD_ID,4,2                ; @ASN1_BAD_ID
	.comm	_HDB_F_CANON,4,2                ; @HDB_F_CANON
	.comm	_HDB_ERR_NOENTRY,4,2            ; @HDB_ERR_NOENTRY
	.comm	_HDB_F_DECRYPT,4,2              ; @HDB_F_DECRYPT
.subsections_via_symbols
