	.file	"232956826.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"signal caught; terminating...\n"
	.text
	.globl	sigbyebye
	.type	sigbyebye, @function
sigbyebye:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 30
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	write@PLT
	mov	edi, 3
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	sigbyebye, .-sigbyebye
	.globl	SONG
	.section	.rodata
	.align 8
.LC1:
	.string	"this is the log that never ends...\nyes it goes on and on my friend!\nsome people, started logging it,\nnot knowing what it was.\nand they'll continue logging it forever,\njust because...\n"
	.section	.data.rel.local,"aw"
	.align 8
	.type	SONG, @object
	.size	SONG, 8
SONG:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"too many arguments!\n"
.LC3:
	.string	"USAGE: %s [BYTES]\n"
.LC4:
	.string	"invalid byte count '%s'\n"
.LC5:
	.string	"USAGE: %s [BYTES [LIMIT]]\n"
.LC6:
	.string	"invalid upper limit '%s'\n"
	.align 8
.LC7:
	.string	"failed to allocate a buffer of %lu bytes: %s\n"
.LC8:
	.string	"\nwrite failed: %s\n"
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -72[rbp], 512
	mov	QWORD PTR -64[rbp], 0
	lea	rsi, sigbyebye[rip]
	mov	edi, 15
	call	signal@PLT
	lea	rsi, sigbyebye[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	DWORD PTR -84[rbp], 3
	jle	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	cmp	DWORD PTR -84[rbp], 1
	jle	.L4
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cmp	eax, 9
	ja	.L6
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	add	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	jmp	.L28
.L6:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	add	QWORD PTR -56[rbp], 1
.L5:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
.L4:
	cmp	DWORD PTR -84[rbp], 3
	jne	.L9
	mov	QWORD PTR -64[rbp], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cmp	eax, 9
	ja	.L11
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	jmp	.L29
.L11:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	add	QWORD PTR -48[rbp], 1
.L10:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L13
.L9:
	cmp	QWORD PTR -72[rbp], 127
	ja	.L14
	mov	QWORD PTR -72[rbp], 128
.L14:
	cmp	QWORD PTR -72[rbp], 1048576
	jbe	.L15
	mov	QWORD PTR -72[rbp], 1048576
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR SONG[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -80[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	cmp	QWORD PTR -72[rbp], rax
	jnb	.L18
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, rdx
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -24[rbp]
.L19:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR SONG[rip]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -32[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -80[rbp]
	add	eax, edx
	mov	DWORD PTR -80[rbp], eax
.L17:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	ja	.L20
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 10
	cmp	QWORD PTR -64[rbp], 0
	setne	al
	movzx	eax, al
	mov	DWORD PTR -76[rbp], eax
.L26:
	mov	QWORD PTR -40[rbp], 0
	jmp	.L21
.L23:
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	rdx, rax
	mov	rsi, rcx
	mov	edi, 2
	call	write@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jns	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -40[rbp], rax
.L21:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jb	.L23
	cmp	DWORD PTR -76[rbp], 0
	je	.L24
	sub	QWORD PTR -64[rbp], 1
	cmp	QWORD PTR -64[rbp], 0
	je	.L31
.L24:
	mov	edi, 1000000
	call	usleep@PLT
	jmp	.L26
.L31:
	nop
	mov	eax, 0
	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	"232956826.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"signal caught; terminating...\012\000"
	.text
	.align	2
	.global	sigbyebye
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigbyebye, %function
sigbyebye:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #30
	ldr	r1, .L2
	mov	r0, #2
	bl	write
	mov	r0, #3
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	sigbyebye, .-sigbyebye
	.global	SONG
	.section	.rodata
	.align	2
.LC1:
	.ascii	"this is the log that never ends...\012yes it goes o"
	.ascii	"n and on my friend!\012some people, started logging"
	.ascii	" it,\012not knowing what it was.\012and they'll con"
	.ascii	"tinue logging it forever,\012just because...\012\000"
	.data
	.align	2
	.type	SONG, %object
	.size	SONG, 4
SONG:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"too many arguments!\012\000"
	.align	2
.LC3:
	.ascii	"USAGE: %s [BYTES]\012\000"
	.align	2
.LC4:
	.ascii	"invalid byte count '%s'\012\000"
	.align	2
.LC5:
	.ascii	"USAGE: %s [BYTES [LIMIT]]\012\000"
	.align	2
.LC6:
	.ascii	"invalid upper limit '%s'\012\000"
	.align	2
.LC7:
	.ascii	"failed to allocate a buffer of %lu bytes: %s\012\000"
	.align	2
.LC8:
	.ascii	"\012write failed: %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	mov	r3, #512
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r1, .L34
	mov	r0, #15
	bl	signal
	ldr	r1, .L34
	mov	r0, #2
	bl	signal
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	ble	.L5
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L34+8
	bl	fwrite
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	ble	.L6
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-48]
	b	.L7
.L10:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L8
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-56]
	b	.L30
.L8:
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+16
	bl	fprintf
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L7:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
.L6:
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	bne	.L11
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-44]
	b	.L12
.L15:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L13
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-52]
	b	.L31
.L13:
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+24
	bl	fprintf
	ldr	r3, .L34+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L12:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
.L11:
	ldr	r3, [fp, #-56]
	cmp	r3, #127
	bhi	.L16
	mov	r3, #128
	str	r3, [fp, #-56]
.L16:
	ldr	r3, [fp, #-56]
	cmp	r3, #1048576
	bls	.L17
	mov	r3, #1048576
	str	r3, [fp, #-56]
.L17:
	ldr	r0, [fp, #-56]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L34+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-56]
	ldr	r1, .L34+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #2
	bl	exit
.L18:
	ldr	r3, .L34+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L19
.L22:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bcs	.L20
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	sub	r3, r2, r3
	b	.L21
.L20:
	ldr	r3, [fp, #-28]
.L21:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, .L34+32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-40]
.L19:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bhi	.L22
	ldr	r3, [fp, #-56]
	sub	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #45
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	sub	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #45
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-24]
.L28:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L23
.L25:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r1, r2, r3
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	mov	r2, r3
	mov	r0, #2
	bl	write
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L24
	ldr	r3, .L34+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+36
	mov	r0, r4
	bl	fprintf
	mov	r0, #3
	bl	exit
.L24:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
.L23:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bcc	.L25
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L33
.L26:
	ldr	r0, .L34+40
	bl	usleep
	b	.L28
.L33:
	nop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	sigbyebye
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	SONG
	.word	.LC8
	.word	1000000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
