	.file	"extr_fe-connect.c_parseServiceInfo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"service"
.LC1:
	.string	"PGSERVICE"
.LC2:
	.string	"PGSERVICEFILE"
.LC3:
	.string	".pg_service.conf"
.LC4:
	.string	"%s/%s"
.LC5:
	.string	"PGSYSCONFDIR"
.LC6:
	.string	"%s/pg_service.conf"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"definition of service \"%s\" not found\n"
	.text
	.p2align 4
	.type	parseServiceInfo, @function
parseServiceInfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, esi
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	conninfo_getval@PLT
	movsx	rdx, DWORD PTR MAXPGPATH[rip]
	mov	rcx, rsp
	mov	r12, rax
	mov	rbx, rdx
	add	rdx, 15
	mov	rax, rdx
	and	rdx, -4096
	sub	rcx, rdx
	and	rax, -16
	mov	rdx, rcx
	cmp	rsp, rdx
	je	.L3
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L34
.L3:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	jne	.L35
.L4:
	mov	DWORD PTR -64[rbp], 0
	mov	r15, rsp
	test	r12, r12
	je	.L36
.L5:
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L7
	mov	edx, ebx
	mov	rdi, r15
	call	strlcpy@PLT
.L8:
	lea	r8, -64[rbp]
	mov	ecx, r14d
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, r15
	call	parseServiceFile@PLT
	mov	ebx, eax
	or	ebx, DWORD PTR -64[rbp]
	je	.L37
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L38
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L5
.L18:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	lea	rbx, -60[rbp]
.L13:
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	mov	rcx, QWORD PTR SYSCONFDIR[rip]
	test	rax, rax
	je	.L15
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	mov	rcx, rax
.L15:
	mov	esi, DWORD PTR MAXPGPATH[rip]
	mov	rdi, r15
	xor	eax, eax
	lea	rdx, .LC6[rip]
	call	snprintf@PLT
	mov	rsi, rbx
	mov	rdi, r15
	call	stat@PLT
	test	rax, rax
	je	.L16
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jne	.L18
.L39:
	lea	rdi, .LC7[rip]
	call	libpq_gettext@PLT
	mov	rdx, r12
	mov	edi, r14d
	mov	esi, eax
	call	printfPQExpBuffer@PLT
	mov	eax, 3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	rax, DWORD PTR MAXPGPATH[rip]
	mov	rcx, rsp
	mov	r9, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
.L9:
	cmp	rsp, rax
	je	.L10
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	lea	r8, -64[rbp]
	mov	ecx, r14d
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, r15
	call	parseServiceFile@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jne	.L18
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L35:
	or	QWORD PTR -8[rsp+rax], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L40
.L11:
	mov	rdi, rsp
	mov	QWORD PTR -72[rbp], r9
	lea	rbx, -60[rbp]
	call	pqGetHomeDirectory@PLT
	mov	r9, QWORD PTR -72[rbp]
	test	eax, eax
	jne	.L41
.L12:
	mov	rsp, r9
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L41:
	mov	esi, DWORD PTR MAXPGPATH[rip]
	mov	rcx, rsp
	mov	rdi, r15
	xor	eax, eax
	lea	r8, .LC3[rip]
	lea	rdx, .LC4[rip]
	call	snprintf@PLT
	mov	rsi, rbx
	mov	rdi, r15
	call	stat@PLT
	mov	r9, QWORD PTR -72[rbp]
	test	rax, rax
	jne	.L12
	mov	rsp, r9
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L40:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L11
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parseServiceInfo, .-parseServiceInfo
	.comm	SYSCONFDIR,8,8
	.comm	MAXPGPATH,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_fe-connect.c_parseServiceInfo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"service\000"
	.align	2
.LC1:
	.ascii	"PGSERVICE\000"
	.align	2
.LC2:
	.ascii	"PGSERVICEFILE\000"
	.align	2
.LC3:
	.ascii	"%s/%s\000"
	.align	2
.LC4:
	.ascii	".pg_service.conf\000"
	.align	2
.LC5:
	.ascii	"PGSYSCONFDIR\000"
	.align	2
.LC6:
	.ascii	"%s/pg_service.conf\000"
	.align	2
.LC7:
	.ascii	"definition of service \"%s\" not found\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseServiceInfo, %function
parseServiceInfo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r3, .L26
	mov	r5, r1
	ldr	r1, .L26+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r6, r0
	bl	conninfo_getval
	mov	r3, #0
	ldr	r7, .L26+8
	str	r3, [fp, #-48]
	ldr	r9, [r7]
	subs	r4, r0, #0
	add	r3, r9, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r8, sp, #8
	beq	.L21
.L2:
	ldr	r0, .L26+12
	bl	getenv
	subs	r1, r0, #0
	beq	.L4
	mov	r2, r9
	mov	r0, r8
	bl	strlcpy
.L5:
	sub	r3, fp, #48
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r5
	mov	r1, r4
	mov	r0, r8
	bl	parseServiceFile
	ldr	r3, [fp, #-48]
	orrs	r3, r0, r3
	beq	.L22
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r1, [r7]
	mov	r10, sp
	add	r3, r1, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r9, sp, #8
	mov	r0, r9
	bl	pqGetHomeDirectory
	cmp	r0, #0
	subeq	r9, fp, #44
	bne	.L24
.L6:
	mov	sp, r10
	b	.L7
.L21:
	ldr	r0, .L26+16
	bl	getenv
	subs	r4, r0, #0
	bne	.L2
.L12:
	mov	r0, #0
	b	.L1
.L22:
	sub	r9, fp, #44
.L7:
	ldr	r0, .L26+20
	ldr	r7, [r7]
	bl	getenv
	cmp	r0, #0
	beq	.L8
	ldr	r0, .L26+20
	bl	getenv
	mov	r3, r0
.L9:
	mov	r1, r7
	ldr	r2, .L26+24
	mov	r0, r8
	bl	snprintf
	mov	r1, r9
	mov	r0, r8
	bl	stat
	cmp	r0, #0
	beq	.L10
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L12
.L25:
	ldr	r0, .L26+28
	bl	libpq_gettext
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	bl	printfPQExpBuffer
	mov	r0, #3
	b	.L1
.L10:
	sub	r3, fp, #48
	str	r3, [sp]
	mov	r2, r6
	mov	r0, r8
	mov	r3, r5
	mov	r1, r4
	bl	parseServiceFile
	cmp	r0, #0
	bne	.L1
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L12
	b	.L25
.L24:
	ldr	r2, .L26+32
	mov	r3, r9
	ldr	r1, [r7]
	mov	r0, r8
	str	r2, [sp]
	sub	r9, fp, #44
	ldr	r2, .L26+36
	bl	snprintf
	mov	r1, r9
	mov	r0, r8
	bl	stat
	cmp	r0, #0
	bne	.L6
	mov	sp, r10
	b	.L5
.L8:
	ldr	r3, .L26+40
	ldr	r3, [r3]
	b	.L9
.L23:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC8
	.word	.LC0
	.word	MAXPGPATH
	.word	.LC2
	.word	.LC1
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC4
	.word	.LC3
	.word	SYSCONFDIR
	.size	parseServiceInfo, .-parseServiceInfo
	.comm	SYSCONFDIR,4,4
	.comm	MAXPGPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
