	.file	"extr_srcpos.c_srcfile_relative_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"-"
.LC1:
	.string	"<stdin>"
.LC2:
	.string	"Couldn't open \"%s\": %s\n"
.LC3:
	.string	" %s"
	.text
	.p2align 4
	.globl	srcfile_relative_open
	.type	srcfile_relative_open, @function
srcfile_relative_open:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	streq@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR stdin[rip]
	lea	rdi, .LC1[rip]
	mov	QWORD PTR [rsp], rax
	call	xstrdup@PLT
	mov	r12, rax
.L3:
	mov	rdi, QWORD PTR depfile[rip]
	test	rdi, rdi
	jne	.L13
	test	rbx, rbx
	je	.L5
.L15:
	mov	QWORD PTR [rbx], r12
.L6:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	rax, QWORD PTR [rsp]
	jne	.L14
	add	rsp, 16
	.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
.L2:
	.cfi_restore_state
	mov	rsi, rsp
	mov	rdi, rbp
	call	fopen_any_on_path@PLT
	cmp	QWORD PTR [rsp], 0
	mov	r12, rax
	jne	.L3
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	mov	edx, eax
	call	die@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, r12
	lea	rsi, .LC3[rip]
	call	fprintf@PLT
	test	rbx, rbx
	jne	.L15
.L5:
	mov	rdi, r12
	call	free@PLT
	jmp	.L6
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	srcfile_relative_open, .-srcfile_relative_open
	.comm	stdin,8,8
	.comm	errno,4,4
	.comm	depfile,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_srcpos.c_srcfile_relative_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-\000"
	.align	2
.LC1:
	.ascii	"<stdin>\000"
	.align	2
.LC2:
	.ascii	"Couldn't open \"%s\": %s\012\000"
	.align	2
.LC3:
	.ascii	" %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	srcfile_relative_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	srcfile_relative_open, %function
srcfile_relative_open:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #8
	mov	r4, r1
	ldr	r1, .L16+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	streq
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L16+8
	ldr	r0, .L16+12
	ldr	r3, [r3]
	str	r3, [sp]
	bl	xstrdup
	mov	r5, r0
.L3:
	ldr	r3, .L16+16
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L13
	cmp	r4, #0
	strne	r5, [r4]
	beq	.L14
.L6:
	ldr	r3, .L16
	ldr	r0, [sp]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, sp
	mov	r0, r6
	bl	fopen_any_on_path
	ldr	r3, [sp]
	mov	r5, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L16+20
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L16+24
	bl	die
	b	.L3
.L13:
	mov	r2, r5
	ldr	r1, .L16+28
	bl	fprintf
	cmp	r4, #0
	strne	r5, [r4]
	bne	.L6
.L14:
	mov	r0, r5
	bl	free
	b	.L6
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	depfile
	.word	errno
	.word	.LC2
	.word	.LC3
	.size	srcfile_relative_open, .-srcfile_relative_open
	.comm	stdin,4,4
	.comm	errno,4,4
	.comm	depfile,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
