	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kdc_db_fetch                  ## -- Begin function _kdc_db_fetch
	.p2align	4, 0x90
__kdc_db_fetch:                         ## @_kdc_db_fetch
	.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	%r9, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_HDB_ERR_NOENTRY@GOTPCREL(%rip), %rax
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movl	(%r8), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_HDB_F_KVNO_SPECIFIED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	(%rax), %r13d
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_23
## %bb.4:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_17
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r13d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_krb5_get_error_message
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movl	%r15d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rax, %r8
	callq	_kdc_log
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	callq	_krb5_free_error_message
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_17
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -64(%rbp)
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rsi
	movq	_HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rax
	movq	_KRB5_NT_ENTERPRISE_PRINCIPAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r12), %ecx
	cmpl	$1, %ecx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	leaq	-64(%rbp), %rdx
	callq	_krb5_parse_name
	testl	%eax, %eax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %r12
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rsi
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	callq	*24(%rsi)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rsi
	movq	_HDB_F_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%r15d, %edi
	movq	%r12, %rdx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	*16(%rsi)
	movl	%eax, %r13d
	movq	-64(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_free_principal
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rsi
	movl	%r15d, %edi
	callq	*8(%rsi)
	testl	%r13d, %r13d
	jne	LBB0_16
## %bb.19:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.20:
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	%rax, (%rcx)
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movq	%rax, (%rcx)
	xorl	%r13d, %r13d
	jmp	LBB0_22
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	leaq	L_.str.3(%rip), %rdx
	movl	%r15d, %edi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	jmp	LBB0_22
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%r14), %r13d
LBB0_22:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_KRB5_PARSE_MALFORMED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %edi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r13d
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_HDB_ERR_NOENTRY,4,2            ## @HDB_ERR_NOENTRY
	.comm	_HDB_F_KVNO_SPECIFIED,4,2       ## @HDB_F_KVNO_SPECIFIED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

	.comm	_HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL,4,2 ## @HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL
	.comm	_KRB5_NT_ENTERPRISE_PRINCIPAL,8,3 ## @KRB5_NT_ENTERPRISE_PRINCIPAL
	.comm	_KRB5_PARSE_MALFORMED,4,2       ## @KRB5_PARSE_MALFORMED
L_.str.1:                               ## @.str.1
	.asciz	"malformed request: enterprise name with %d name components"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"Failed to open database: %s"

	.comm	_HDB_F_DECRYPT,4,2              ## @HDB_F_DECRYPT
L_.str.3:                               ## @.str.3
	.asciz	"no such entry found in hdb"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kdc_db_fetch                  ; -- Begin function _kdc_db_fetch
	.p2align	2
__kdc_db_fetch:                         ; @_kdc_db_fetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x21, x5
	mov	x24, x3
	mov	x26, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HDB_ERR_NOENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDB_ERR_NOENTRY@GOTPAGEOFF]
	cbz	x4, LBB0_2
; %bb.1:
	ldr	w9, [x4]
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
Lloh2:
	adrp	x9, _HDB_F_KVNO_SPECIFIED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDB_F_KVNO_SPECIFIED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w24, w9, w24
	b	LBB0_3
LBB0_2:
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
LBB0_3:
	ldr	w28, [x8]
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_19
; %bb.4:
	mov	x23, x0
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.5:
	stp	x21, x20, [sp, #16]             ; 16-byte Folded Spill
	mov	x21, #0
Lloh5:
	adrp	x27, _HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL@GOTPAGE
Lloh6:
	ldr	x27, [x27, _HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL@GOTPAGEOFF]
Lloh7:
	adrp	x25, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x25, [x25, _O_RDONLY@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x0
	mov	x0, x19
	mov	x1, x28
	bl	_krb5_get_error_message
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x20
	bl	_kdc_log
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_free_error_message
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.ge	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #40]
	ldr	x8, [x22, #8]
	ldr	x1, [x8, x21, lsl #3]
	ldr	w8, [x1]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26]
Lloh11:
	adrp	x9, _KRB5_NT_ENTERPRISE_PRINCIPAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KRB5_NT_ENTERPRISE_PRINCIPAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26, #8]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26, #16]
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	bl	_krb5_parse_name
	cbnz	w0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x26, [sp, #40]
	ldr	x8, [x22, #8]
	ldr	x1, [x8, x21, lsl #3]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x1, #24]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #8]
	lsl	x20, x21, #3
	ldr	x1, [x8, x20]
	ldr	x8, [x1, #16]
Lloh14:
	adrp	x9, _HDB_F_DECRYPT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HDB_F_DECRYPT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w24
	mov	x0, x19
	mov	x2, x26
	ldr	w4, [sp, #36]                   ; 4-byte Folded Reload
	mov	x5, x23
	blr	x8
	mov	x28, x0
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_krb5_free_principal
	ldr	x8, [x22, #8]
	ldr	x1, [x8, x20]
	ldr	x8, [x1, #8]
	mov	x0, x19
	blr	x8
	cbnz	w28, LBB0_7
; %bb.15:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x9, LBB0_17
; %bb.16:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x21, lsl #3]
	str	x8, [x9]
LBB0_17:
	mov	w28, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x23, [x8]
	b	LBB0_20
LBB0_18:
	mov	x0, x23
	bl	_free
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x28
	bl	_krb5_set_error_message
	b	LBB0_20
LBB0_19:
Lloh19:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_krb5_set_error_message
	ldr	w28, [x20]
LBB0_20:
	mov	x0, x28
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
Lloh23:
	adrp	x9, _KRB5_PARSE_MALFORMED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _KRB5_PARSE_MALFORMED@GOTPAGEOFF]
Lloh25:
	ldr	w28, [x9]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x28
	bl	_krb5_set_error_message
	b	LBB0_23
LBB0_22:
	mov	x28, x0
LBB0_23:
	mov	x0, x23
	bl	_free
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_HDB_ERR_NOENTRY,4,2            ; @HDB_ERR_NOENTRY
	.comm	_HDB_F_KVNO_SPECIFIED,4,2       ; @HDB_F_KVNO_SPECIFIED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

	.comm	_HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL,4,2 ; @HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL
	.comm	_KRB5_NT_ENTERPRISE_PRINCIPAL,8,3 ; @KRB5_NT_ENTERPRISE_PRINCIPAL
	.comm	_KRB5_PARSE_MALFORMED,4,2       ; @KRB5_PARSE_MALFORMED
l_.str.1:                               ; @.str.1
	.asciz	"malformed request: enterprise name with %d name components"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"Failed to open database: %s"

	.comm	_HDB_F_DECRYPT,4,2              ; @HDB_F_DECRYPT
l_.str.3:                               ; @.str.3
	.asciz	"no such entry found in hdb"

.subsections_via_symbols
