	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kdc_openlog                    ## -- Begin function kdc_openlog
	.p2align	4, 0x90
_kdc_openlog:                           ## @kdc_openlog
	.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, %r14
	movq	%rsi, %r12
	movl	%edi, %r13d
	leaq	L_.str(%rip), %rsi
	callq	_krb5_initlog
	leaq	L_.str.1(%rip), %rcx
	movl	%r13d, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	_krb5_config_get_strings
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %edi
	xorl	%esi, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_krb5_config_get_strings
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	leaq	8(%r15), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	%r13d, %edi
	callq	_krb5_addlog_dest
	movq	(%rbx), %rdx
	addq	$8, %rbx
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_krb5_config_free_strings
LBB0_9:
	movl	(%r14), %esi
	movl	%r13d, %edi
	callq	_krb5_set_warn_dest
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r13d, %edi
	callq	_hdb_db_dir
	movq	_KDC_LOG_FILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movl	%eax, %edx
	callq	_asprintf
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_8:
	movl	(%r14), %esi
	movq	-48(%rbp), %rdx
	movl	%r13d, %edi
	callq	_krb5_addlog_dest
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kdc"

L_.str.1:                               ## @.str.1
	.asciz	"logging"

L_.str.2:                               ## @.str.2
	.asciz	"0-1/FILE:%s/%s"

	.comm	_KDC_LOG_FILE,4,2               ## @KDC_LOG_FILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kdc_openlog                    ; -- Begin function kdc_openlog
	.p2align	2
_kdc_openlog:                           ; @kdc_openlog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_krb5_initlog
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x2, x22
	mov	x4, #0
	bl	_krb5_config_get_strings
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x3, x22
	mov	x4, #0
	bl	_krb5_config_get_strings
	mov	x21, x0
	cbz	x0, LBB0_7
LBB0_2:
	ldr	x2, [x21]
	cbz	x2, LBB0_5
; %bb.3:
	add	x22, x21, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_krb5_addlog_dest
	ldr	x2, [x22], #8
	cbnz	x2, LBB0_4
LBB0_5:
	mov	x0, x21
	bl	_krb5_config_free_strings
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_krb5_set_warn_dest
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x19
	bl	_hdb_db_dir
	mov	x2, x0
Lloh6:
	adrp	x8, _KDC_LOG_FILE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KDC_LOG_FILE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	tbz	x0, #63, LBB0_9
; %bb.8:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_9:
	ldr	w1, [x20]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_krb5_addlog_dest
	ldr	x0, [sp, #8]
	bl	_free
	b	LBB0_6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kdc"

l_.str.1:                               ; @.str.1
	.asciz	"logging"

l_.str.2:                               ; @.str.2
	.asciz	"0-1/FILE:%s/%s"

	.comm	_KDC_LOG_FILE,4,2               ; @KDC_LOG_FILE
.subsections_via_symbols
