	.file	"extr_tglobalcfg.c_tsReadGlobalLogConfig.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"configDir:%s not there, use default value: /etc/taos"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"/etc/taos"
.LC2:
	.string	"logDir"
.LC3:
	.string	"%s/taos.cfg"
.LC4:
	.string	"r"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"\noption file:%s not found, all options are set to system default\n"
	.text
	.p2align 4
	.globl	tsReadGlobalLogConfig
	.type	tsReadGlobalLogConfig, @function
tsReadGlobalLogConfig:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 192
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rax
	xor	eax, eax
	lea	rbp, 40[rsp]
	call	tsInitGlobalConfig@PLT
	mov	rdi, QWORD PTR configDir[rip]
	xor	edx, edx
	mov	rsi, rbp
	mov	DWORD PTR mdebugFlag[rip], 135
	mov	DWORD PTR sdbDebugFlag[rip], 135
	call	wordexp@PLT
	mov	rax, QWORD PTR 40[rsp]
	test	rax, rax
	je	.L2
	mov	rsi, QWORD PTR [rax]
	mov	rdi, QWORD PTR configDir[rip]
	test	rsi, rsi
	je	.L3
.L24:
	call	strcpy@PLT
	mov	rdi, rbp
	lea	r12, 48[rsp]
	call	wordfree@PLT
	mov	rsi, QWORD PTR logDir[rip]
	lea	rdi, .LC2[rip]
	call	tsReadLogOption@PLT
	mov	rdx, QWORD PTR configDir[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	sprintf@PLT
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	call	fopen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L26
	mov	QWORD PTR 8[rsp], 0
	lea	rbx, 32[rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	feof@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L8
	call	tfree@PLT
	lea	rdi, 8[rsp]
	mov	rdx, rbp
	mov	rsi, rbx
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR [rsp], 0
	mov	QWORD PTR 32[rsp], 0
	call	getline@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L8
	mov	rdx, rsp
	lea	rsi, 16[rsp]
	call	paGetToken@PLT
	movsx	rax, DWORD PTR [rsp]
	test	eax, eax
	je	.L9
	mov	rdx, QWORD PTR 16[rsp]
	lea	rsi, 24[rsp]
	mov	BYTE PTR [rdx+rax], 0
	movsx	rax, DWORD PTR [rsp]
	lea	rdx, 4[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	lea	rdi, 1[rcx+rax]
	call	paGetToken@PLT
	movsx	rax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L9
	mov	rdx, QWORD PTR 24[rsp]
	mov	BYTE PTR [rdx+rax], 0
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	call	tsReadLogOption@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR configDir[rip]
.L3:
	mov	rsi, rdi
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	rdi, QWORD PTR configDir[rip]
	lea	rsi, .LC1[rip]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L8:
	call	tfree@PLT
	mov	rdi, rbp
	call	fclose@PLT
.L1:
	mov	rax, QWORD PTR 184[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 192
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rsi, r12
	lea	rdi, .LC5[rip]
	call	printf@PLT
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tsReadGlobalLogConfig, .-tsReadGlobalLogConfig
	.comm	sdbDebugFlag,4,4
	.comm	mdebugFlag,4,4
	.comm	logDir,8,8
	.comm	configDir,8,8
	.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_tglobalcfg.c_tsReadGlobalLogConfig.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"configDir:%s not there, use default value: /etc/tao"
	.ascii	"s\000"
	.align	2
.LC1:
	.ascii	"/etc/taos\000"
	.align	2
.LC2:
	.ascii	"logDir\000"
	.align	2
.LC3:
	.ascii	"%s/taos.cfg\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"\012option file:%s not found, all options are set t"
	.ascii	"o system default\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tsReadGlobalLogConfig
	.syntax unified
	.arm
	.fpu softvfp
	.type	tsReadGlobalLogConfig, %function
tsReadGlobalLogConfig:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L27
	sub	sp, sp, #164
	ldr	r3, [r3]
	str	r3, [sp, #156]
	mov	r3,#0
	bl	tsInitGlobalConfig
	mov	r3, #135
	ldr	r1, .L27+4
	ldr	r2, .L27+8
	ldr	r4, .L27+12
	str	r3, [r1]
	str	r3, [r2]
	ldr	r0, [r4]
	mov	r2, #0
	add	r1, sp, #24
	bl	wordexp
	ldr	r3, [sp, #24]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [r3]
	ldr	r0, [r4]
	cmp	r1, #0
	beq	.L3
	bl	strcpy
	b	.L4
.L2:
	ldr	r0, [r4]
.L3:
	mov	r1, r0
	ldr	r0, .L27+16
	bl	printf
	mov	r2, #10
	ldr	r1, .L27+20
	ldr	r0, [r4]
	bl	memcpy
.L4:
	add	r0, sp, #24
	bl	wordfree
	ldr	r3, .L27+24
	ldr	r0, .L27+28
	ldr	r1, [r3]
	bl	tsReadLogOption
	ldr	r2, [r4]
	ldr	r1, .L27+32
	add	r0, sp, #28
	bl	sprintf
	ldr	r1, .L27+36
	add	r0, sp, #28
	bl	fopen
	subs	r5, r0, #0
	movne	r3, #0
	strne	r3, [sp]
	beq	.L25
.L9:
	mov	r0, r5
	bl	feof
	subs	r4, r0, #0
	ldr	r0, [sp]
	bne	.L8
	bl	tfree
	mov	r2, r5
	mov	r0, sp
	add	r1, sp, #12
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	str	r4, [sp, #20]
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	bl	getline
	ldr	r0, [sp]
	cmp	r0, #0
	beq	.L8
	add	r2, sp, #16
	add	r1, sp, #4
	bl	paGetToken
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [sp, #4]
	add	r2, sp, #20
	strb	r4, [r1, r3]
	ldr	r3, [sp, #16]
	ldr	r0, [sp, #4]
	add	r3, r3, #1
	add	r0, r0, r3
	add	r1, sp, #8
	bl	paGetToken
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L9
	ldr	r2, [sp, #8]
	strb	r4, [r2, r3]
	ldmib	sp, {r0, r1}
	bl	tsReadLogOption
	b	.L9
.L8:
	bl	tfree
	mov	r0, r5
	bl	fclose
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #156]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #164
	@ sp needed
	pop	{r4, r5, pc}
.L25:
	add	r1, sp, #28
	ldr	r0, .L27+40
	bl	printf
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC6
	.word	mdebugFlag
	.word	sdbDebugFlag
	.word	configDir
	.word	.LC0
	.word	.LC1
	.word	logDir
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	tsReadGlobalLogConfig, .-tsReadGlobalLogConfig
	.comm	sdbDebugFlag,4,4
	.comm	mdebugFlag,4,4
	.comm	logDir,4,4
	.comm	configDir,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
