	.file	"extr_softp11.c_get_config_file_for_user.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SOFTPKCS11RC"
.LC1:
	.string	"HOME"
.LC2:
	.string	"%s/.soft-token.rc"
.LC3:
	.string	"/etc/soft-token.rc"
	.text
	.p2align 4
	.type	get_config_file_for_user, @function
get_config_file_for_user:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	issuid@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	je	.L3
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR [rsp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L5
	call	strdup@PLT
	mov	QWORD PTR [rsp], rax
.L5:
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR [rsp]
	mov	rsi, rax
	or	rsi, rdx
	jne	.L6
.L3:
	xor	eax, eax
	call	getuid@PLT
	mov	edi, eax
	call	getpwuid@PLT
	test	rax, rax
	je	.L26
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR [rsp]
.L6:
	test	rax, rax
	jne	.L1
	test	rdx, rdx
	je	.L8
	mov	rdi, rsp
	lea	rsi, .LC2[rip]
	call	asprintf@PLT
	mov	rax, QWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	jne	.L1
.L8:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	lea	rdi, .LC3[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	strdup@PLT
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_config_file_for_user, .-get_config_file_for_user
	.comm	SHGFP_TYPE_CURRENT,4,4
	.comm	MAX_PATH,4,4
	.comm	CSIDL_APPDATA,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_softp11.c_get_config_file_for_user.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SOFTPKCS11RC\000"
	.align	2
.LC1:
	.ascii	"HOME\000"
	.align	2
.LC2:
	.ascii	"%s/.soft-token.rc\000"
	.align	2
.LC3:
	.ascii	"/etc/soft-token.rc\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_config_file_for_user, %function
get_config_file_for_user:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	str	lr, [sp, #-4]!
	ldr	r2, .L27
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	issuid
	cmp	r0, #0
	beq	.L2
	ldr	r0, [sp]
	cmp	r0, #0
	beq	.L3
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L2:
	ldr	r0, .L27+4
	bl	getenv
	cmp	r0, #0
	str	r0, [sp]
	beq	.L5
	bl	strdup
	str	r0, [sp]
.L5:
	ldr	r0, .L27+8
	bl	getenv
	mov	r2, r0
	ldr	r0, [sp]
	orrs	r3, r0, r2
	bne	.L6
.L3:
	bl	getuid
	bl	getpwuid
	cmp	r0, #0
	beq	.L26
	ldr	r2, [r0]
	ldr	r0, [sp]
.L6:
	cmp	r0, #0
	bne	.L1
	cmp	r2, #0
	beq	.L8
	mov	r0, sp
	ldr	r1, .L27+12
	bl	asprintf
	ldr	r0, [sp]
	b	.L1
.L26:
	ldr	r0, [sp]
	cmp	r0, #0
	bne	.L1
.L8:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	ldr	r0, .L27+16
	add	sp, sp, #12
	@ sp needed
	ldr	lr, [sp], #4
	b	strdup
.L24:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	get_config_file_for_user, .-get_config_file_for_user
	.comm	SHGFP_TYPE_CURRENT,4,4
	.comm	MAX_PATH,4,4
	.comm	CSIDL_APPDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
