	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_krb5_kdc_set_dbinfo            ## -- Begin function krb5_kdc_set_dbinfo
	.p2align	4, 0x90
_krb5_kdc_set_dbinfo:                   ## @krb5_kdc_set_dbinfo
	.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	%rsi, %r14
	movl	%edi, %r15d
	leaq	-48(%rbp), %rsi
	callq	_hdb_get_dbinfo
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	-48(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_hdb_dbinfo_get_next
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_dbname
	movl	%eax, %r12d
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_mkey_file
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_add_db
	testq	%rax, %rax
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_label
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	leaq	L_.str(%rip), %rcx
	movl	%eax, %r8d
	callq	_kdc_log
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_dbname
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	leaq	L_.str.1(%rip), %rcx
	movl	%eax, %r8d
	callq	_kdc_log
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_mkey_file
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	leaq	L_.str.2(%rip), %rcx
	movl	%eax, %r8d
	callq	_kdc_log
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_acl_file
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_kdc_log
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_hdb_dbinfo_get_next
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.12:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_4:
	movq	%rax, %r12
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %edi
	callq	*%rcx
	movl	(%r14), %eax
	jmp	LBB0_9
LBB0_10:
	movl	$0, (%r14)
	movq	8(%r14), %rdi
	callq	_free
	movq	$0, 8(%r14)
LBB0_13:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_hdb_free_dbinfo
LBB0_14:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"label: %s"

L_.str.1:                               ## @.str.1
	.asciz	"\tdbname: %s"

L_.str.2:                               ## @.str.2
	.asciz	"\tmkey_file: %s"

L_.str.3:                               ## @.str.3
	.asciz	"\tacl_file: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_krb5_kdc_set_dbinfo            ; -- Begin function krb5_kdc_set_dbinfo
	.p2align	2
_krb5_kdc_set_dbinfo:                   ; @krb5_kdc_set_dbinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_hdb_get_dbinfo
	mov	x26, x0
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	x0, [sp, #8]
	mov	x1, #0
	bl	_hdb_dbinfo_get_next
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh6:
	adrp	x25, l_.str.3@PAGE
Lloh7:
	add	x25, x25, l_.str.3@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_hdb_dbinfo_get_dbname
	mov	x26, x0
	mov	x0, x19
	mov	x1, x21
	bl	_hdb_dbinfo_get_mkey_file
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	bl	_add_db
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_hdb_dbinfo_get_label
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x22
	bl	_kdc_log
	mov	x0, x19
	mov	x1, x21
	bl	_hdb_dbinfo_get_dbname
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x23
	bl	_kdc_log
	mov	x0, x19
	mov	x1, x21
	bl	_hdb_dbinfo_get_mkey_file
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x24
	bl	_kdc_log
	mov	x0, x19
	mov	x1, x21
	bl	_hdb_dbinfo_get_acl_file
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	x3, x25
	bl	_kdc_log
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	_hdb_dbinfo_get_next
	mov	x21, x0
	cbnz	x0, LBB0_3
LBB0_5:
	mov	x26, #0
	b	LBB0_13
LBB0_6:
	mov	x26, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x21, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x1, [x9, x21, lsl #3]
	cbz	x1, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x1]
	cbz	x9, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	blr	x9
	ldr	w8, [x20]
	b	LBB0_8
LBB0_12:
	str	wzr, [x20]
	ldr	x0, [x20, #8]
	bl	_free
	str	xzr, [x20, #8]
LBB0_13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_hdb_free_dbinfo
LBB0_14:
	mov	x0, x26
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"label: %s"

l_.str.1:                               ; @.str.1
	.asciz	"\tdbname: %s"

l_.str.2:                               ; @.str.2
	.asciz	"\tmkey_file: %s"

l_.str.3:                               ; @.str.3
	.asciz	"\tacl_file: %s"

.subsections_via_symbols
