	.file	"extr_fe-connect.c_pqGetHomeDirectory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pqGetHomeDirectory
	.type	pqGetHomeDirectory, @function
pqGetHomeDirectory:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_offset 12, -40
	mov	r12, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BUFSIZ[rip]
	mov	rcx, rsp
	mov	r14, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L15
.L4:
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	call	geteuid@PLT
	mov	ecx, r14d
	lea	rsi, -52[rbp]
	lea	r8, -48[rbp]
	mov	edi, eax
	mov	rdx, rsp
	call	pqGetpwuid@PLT
	mov	rcx, QWORD PTR -48[rbp]
	xor	eax, eax
	test	rcx, rcx
	je	.L1
	mov	esi, DWORD PTR [rcx]
	mov	edx, r13d
	mov	rdi, r12
	call	strlcpy@PLT
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -24[rbp]
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pqGetHomeDirectory, .-pqGetHomeDirectory
	.comm	S_OK,8,8
	.comm	MAX_PATH,4,4
	.comm	CSIDL_APPDATA,4,4
	.comm	BUFSIZ,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_pqGetHomeDirectory.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pqGetHomeDirectory
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqGetHomeDirectory, %function
pqGetHomeDirectory:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	mov	r3, #0
	ldr	r2, .L8
	mov	r5, r1
	ldr	r6, [r2]
	mov	r4, r0
	add	r2, r6, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	ldr	r2, .L8+4
	add	r7, sp, #8
	ldr	r2, [r2]
	str	r2, [fp, #-24]
	mov	r2,#0
	str	r3, [fp, #-28]
	bl	geteuid
	sub	r2, fp, #28
	mov	r3, r6
	str	r2, [sp]
	sub	r1, fp, #32
	mov	r2, r7
	bl	pqGetpwuid
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	moveq	r0, r3
	beq	.L1
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r3]
	bl	strlcpy
	mov	r0, #1
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	BUFSIZ
	.word	.LC0
	.size	pqGetHomeDirectory, .-pqGetHomeDirectory
	.comm	S_OK,4,4
	.comm	MAX_PATH,4,4
	.comm	CSIDL_APPDATA,4,4
	.comm	BUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
