	.file	"extr_log.c_kdc_openlog.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"kdc"
.LC1:
	.string	"logging"
.LC2:
	.string	"0-1/FILE:%s/%s"
	.text
	.p2align 4
	.globl	kdc_openlog
	.type	kdc_openlog, @function
kdc_openlog:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	krb5_initlog@PLT
	xor	r8d, r8d
	mov	rdx, r14
	xor	esi, esi
	lea	rcx, .LC1[rip]
	mov	edi, ebp
	call	krb5_config_get_strings@PLT
	mov	r13, rax
	test	rax, rax
	je	.L16
.L2:
	mov	rdx, QWORD PTR 0[r13]
	test	rdx, rdx
	je	.L4
	mov	rbx, r13
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR [r12]
	mov	edi, ebp
	add	rbx, 8
	call	krb5_addlog_dest@PLT
	mov	rdx, QWORD PTR [rbx]
	test	rdx, rdx
	jne	.L5
.L4:
	mov	rdi, r13
	call	krb5_config_free_strings@PLT
.L6:
	mov	esi, DWORD PTR [r12]
	mov	edi, ebp
	call	krb5_set_warn_dest@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xor	r8d, r8d
	mov	rcx, r14
	lea	rdx, .LC1[rip]
	xor	esi, esi
	mov	edi, ebp
	call	krb5_config_get_strings@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L2
	mov	r13d, DWORD PTR KDC_LOG_FILE[rip]
	mov	edi, ebp
	call	hdb_db_dir@PLT
	mov	rdi, rsp
	lea	rsi, .LC2[rip]
	mov	edx, eax
	mov	ecx, r13d
	call	asprintf@PLT
	test	rax, rax
	js	.L18
.L7:
	mov	rdx, QWORD PTR [rsp]
	mov	esi, DWORD PTR [r12]
	mov	edi, ebp
	call	krb5_addlog_dest@PLT
	mov	rdi, QWORD PTR [rsp]
	call	free@PLT
	jmp	.L6
.L18:
	xor	esi, esi
	mov	edi, 1
	call	err@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kdc_openlog, .-kdc_openlog
	.comm	KDC_LOG_FILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_log.c_kdc_openlog.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"kdc\000"
	.align	2
.LC1:
	.ascii	"logging\000"
	.align	2
.LC2:
	.ascii	"0-1/FILE:%s/%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kdc_openlog
	.syntax unified
	.arm
	.fpu softvfp
	.type	kdc_openlog, %function
kdc_openlog:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L18
	sub	sp, sp, #20
	mov	r4, r1
	ldr	r1, .L18+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	mov	r6, r2
	bl	krb5_initlog
	mov	r1, #0
	mov	r2, r4
	mov	r0, r5
	ldr	r3, .L18+8
	str	r1, [sp]
	bl	krb5_config_get_strings
	subs	r7, r0, #0
	beq	.L15
.L2:
	ldr	r2, [r7]
	cmp	r2, #0
	beq	.L4
	mov	r4, r7
.L5:
	mov	r0, r5
	ldr	r1, [r6]
	bl	krb5_addlog_dest
	ldr	r2, [r4, #4]!
	cmp	r2, #0
	bne	.L5
.L4:
	mov	r0, r7
	bl	krb5_config_free_strings
.L6:
	mov	r0, r5
	ldr	r1, [r6]
	bl	krb5_set_warn_dest
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	mov	r1, r7
	str	r7, [sp]
	mov	r3, r4
	mov	r0, r5
	ldr	r2, .L18+8
	bl	krb5_config_get_strings
	subs	r7, r0, #0
	bne	.L2
	mov	r0, r5
	bl	hdb_db_dir
	ldr	r3, .L18+12
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, .L18+16
	add	r0, sp, #8
	bl	asprintf
	cmp	r0, #0
	blt	.L17
.L7:
	mov	r0, r5
	ldr	r2, [sp, #8]
	ldr	r1, [r6]
	bl	krb5_addlog_dest
	ldr	r0, [sp, #8]
	bl	free
	b	.L6
.L17:
	mov	r1, r7
	mov	r0, #1
	bl	err
	b	.L7
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	KDC_LOG_FILE
	.word	.LC2
	.size	kdc_openlog, .-kdc_openlog
	.comm	KDC_LOG_FILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
