	.file	"277398.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s <file> <target>\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
	.align 8
.LC1:
	.string	"Negative offset %lld not allowed\n"
	.align 8
.LC2:
	.string	"Offset is too large (%lld) for this platform\n"
.LC3:
	.string	"open"
.LC4:
	.string	"lseek"
.LC5:
	.string	"test"
.LC6:
	.string	"write"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	cmp	DWORD PTR -36[rbp], 3
	je	.L3
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoll@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -2
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -3
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L7
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -4
	jmp	.L4
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	jns	.L8
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	DWORD PTR -24[rbp], -5
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	DWORD PTR -24[rbp], -6
	jmp	.L9
.L11:
	nop
.L9:
	cmp	DWORD PTR -20[rbp], 0
	js	.L10
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
.L10:
	mov	eax, DWORD PTR -24[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"277398.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <file> <target>\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Negative offset %lld not allowed\012\000"
	.align	2
.LC2:
	.ascii	"Offset is too large (%lld) for this platform\012\000"
	.align	2
.LC3:
	.ascii	"open\000"
	.align	2
.LC4:
	.ascii	"lseek\000"
	.align	2
.LC5:
	.ascii	"test\000"
	.align	2
.LC6:
	.ascii	"write\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L5
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoll
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L7
	ldr	r3, .L14
	ldr	r0, [r3]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, .L14+4
	bl	fprintf
	mvn	r3, #1
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L8
	ldr	r3, .L14
	ldr	r0, [r3]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r1, .L14+8
	bl	fprintf
	mvn	r3, #2
	b	.L6
.L8:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L14+12
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L14+16
	bl	perror
	mvn	r3, #3
	b	.L6
.L9:
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L14+20
	bl	perror
	mvn	r3, #4
	str	r3, [fp, #-24]
	b	.L11
.L10:
	mov	r2, #4
	ldr	r1, .L14+24
	ldr	r0, [fp, #-16]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L14+28
	bl	perror
	mvn	r3, #5
	str	r3, [fp, #-24]
	b	.L11
.L13:
	nop
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L12
	ldr	r0, [fp, #-16]
	bl	close
.L12:
	ldr	r3, [fp, #-24]
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	438
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
