	.file	"1000021.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"serve '%s'"
.LC1:
	.string	"r"
.LC2:
	.string	"fopen: %m"
.LC3:
	.string	"\r\n"
	.text
	.globl	sendfile
	.type	sendfile, @function
sendfile:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	DWORD PTR -300[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -296[rbp]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	rax, QWORD PTR -296[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L4
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L1
.L5:
	mov	BYTE PTR -272[rbp], 0
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -300[rbp]
	mov	edx, 2
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
.L4:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sendfile, .-sendfile
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"1000021.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"serve '%s'\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"fopen: %m\000"
	.align	2
.LC3:
	.ascii	"\015\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendfile, %function
sendfile:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-272]
	ldr	r1, .L7+4
	mov	r0, #3
	bl	syslog
	ldr	r1, .L7+8
	ldr	r0, [fp, #-272]
	bl	fopen
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L4
	ldr	r1, .L7+12
	mov	r0, #3
	bl	syslog
	b	.L1
.L5:
	mov	r3, #0
	strb	r3, [fp, #-264]
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #264
	ldr	r1, .L7+16
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	write
	mov	r2, #2
	ldr	r1, .L7+16
	ldr	r0, [fp, #-276]
	bl	write
.L4:
	ldr	r0, [fp, #-268]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-268]
	bl	fclose
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	sendfile, .-sendfile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
