	.file	"extr_tests.c_get_catalog_dir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SYSTEMD_CATALOG_DIR"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"ERROR: $SYSTEMD_CATALOG_DIR directory [%s] does not exist\n"
	.text
	.p2align 4
	.globl	get_catalog_dir
	.type	get_catalog_dir, @function
get_catalog_dir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	call	load_testdata_env@PLT
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	esi, DWORD PTR F_OK[rip]
	test	rax, rax
	mov	r12, rax
	cmove	r12, QWORD PTR SYSTEMD_CATALOG_DIR[rip]
	mov	rdi, r12
	call	access@PLT
	test	rax, rax
	js	.L6
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_catalog_dir, .-get_catalog_dir
	.comm	stderr,4,4
	.comm	SYSTEMD_CATALOG_DIR,8,8
	.comm	F_OK,4,4
	.comm	EXIT_FAILURE,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_tests.c_get_catalog_dir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SYSTEMD_CATALOG_DIR\000"
	.align	2
.LC1:
	.ascii	"ERROR: $SYSTEMD_CATALOG_DIR directory [%s] does not"
	.ascii	" exist\012\000"
	.text
	.align	2
	.global	get_catalog_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_catalog_dir, %function
get_catalog_dir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	load_testdata_env
	ldr	r0, .L7
	bl	getenv
	subs	r4, r0, #0
	ldreq	r3, .L7+4
	ldreq	r4, [r3]
	ldr	r3, .L7+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	access
	cmp	r0, #0
	blt	.L6
	mov	r0, r4
	pop	{r4, pc}
.L6:
	ldr	r3, .L7+12
	mov	r2, r4
	ldr	r1, .L7+16
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L7+20
	ldr	r0, [r3]
	bl	exit
	mov	r0, r4
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	SYSTEMD_CATALOG_DIR
	.word	F_OK
	.word	stderr
	.word	.LC1
	.word	EXIT_FAILURE
	.size	get_catalog_dir, .-get_catalog_dir
	.comm	stderr,4,4
	.comm	SYSTEMD_CATALOG_DIR,4,4
	.comm	F_OK,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
