	.file	"843253.c"
	.intel_syntax noprefix
	.text
	.local	no_create
	.comm	no_create,4,4
	.local	do_relative
	.comm	do_relative,4,4
	.local	do_refer
	.comm	do_refer,4,4
	.local	got_size
	.comm	got_size,4,4
	.section	.rodata
.LC0:
	.string	"invalid size argument `%s'"
.LC1:
	.string	"cr:s:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -192[rbp], 0
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -200[rbp], rax
	mov	DWORD PTR -228[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	jmp	.L2
.L10:
	cmp	DWORD PTR -220[rbp], 115
	je	.L3
	cmp	DWORD PTR -220[rbp], 115
	jg	.L4
	cmp	DWORD PTR -220[rbp], 99
	je	.L5
	cmp	DWORD PTR -220[rbp], 114
	je	.L6
	jmp	.L4
.L5:
	mov	DWORD PTR no_create[rip], 1
	jmp	.L2
.L6:
	mov	DWORD PTR do_refer[rip], 1
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -184[rbp], rax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parselength
	cmp	rax, -1
	jne	.L7
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR optarg[rip]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	je	.L8
	mov	rax, QWORD PTR optarg[rip]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L9
.L8:
	mov	DWORD PTR do_relative[rip], 1
.L9:
	mov	DWORD PTR got_size[rip], 1
	jmp	.L2
.L4:
	call	usage
.L2:
	mov	rcx, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR -244[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -220[rbp], eax
	cmp	DWORD PTR -220[rbp], -1
	jne	.L10
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -256[rbp], rax
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -244[rbp], eax
	mov	edx, DWORD PTR do_refer[rip]
	mov	eax, DWORD PTR got_size[rip]
	add	eax, edx
	cmp	eax, 1
	jne	.L11
	cmp	DWORD PTR -244[rbp], 0
	jg	.L12
.L11:
	call	usage
.L12:
	mov	eax, DWORD PTR do_refer[rip]
	test	eax, eax
	je	.L13
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L14
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -192[rbp], rax
	jmp	.L15
.L13:
	mov	eax, DWORD PTR do_relative[rip]
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR -200[rbp], rax
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR -192[rbp], rax
.L15:
	mov	eax, DWORD PTR no_create[rip]
	test	eax, eax
	je	.L17
	mov	DWORD PTR -224[rbp], 1
	jmp	.L18
.L17:
	mov	DWORD PTR -224[rbp], 65
.L18:
	mov	DWORD PTR -216[rbp], 420
	jmp	.L19
.L27:
	mov	edx, DWORD PTR -216[rbp]
	mov	ecx, DWORD PTR -224[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	esi, ecx
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L20
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L19
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	perror@PLT
	add	DWORD PTR -228[rbp], 1
	jmp	.L19
.L20:
	mov	eax, DWORD PTR do_relative[rip]
	test	eax, eax
	je	.L22
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	cmp	eax, -1
	jne	.L23
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	perror@PLT
	add	DWORD PTR -228[rbp], 1
	jmp	.L19
.L23:
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	QWORD PTR -168[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	cmp	QWORD PTR -168[rbp], rax
	jge	.L24
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 27
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	perror@PLT
	add	DWORD PTR -228[rbp], 1
	jmp	.L19
.L24:
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -192[rbp], rax
.L22:
	cmp	QWORD PTR -192[rbp], 0
	jns	.L25
	mov	QWORD PTR -192[rbp], 0
.L25:
	mov	rdx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	cmp	eax, -1
	jne	.L26
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	perror@PLT
	add	DWORD PTR -228[rbp], 1
	jmp	.L19
.L26:
	mov	eax, DWORD PTR -212[rbp]
	mov	edi, eax
	call	close@PLT
.L19:
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -256[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	jne	.L27
	cmp	DWORD PTR -228[rbp], 0
	setne	al
	movzx	eax, al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	parselength, @function
parselength:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 43
	je	.L31
	cmp	eax, 45
	jne	.L33
	mov	DWORD PTR -20[rbp], -1
.L31:
	add	QWORD PTR -40[rbp], 1
	jmp	.L33
.L36:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rcx
	sub	rax, 48
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jge	.L34
	mov	rax, -1
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L33:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	test	eax, eax
	je	.L48
	test	eax, eax
	js	.L38
	cmp	eax, 109
	jg	.L38
	cmp	eax, 71
	jl	.L38
	sub	eax, 71
	cmp	eax, 38
	ja	.L38
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L40[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L40[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L40:
	.long	.L42-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L41-.L40
	.long	.L38-.L40
	.long	.L39-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L42-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L38-.L40
	.long	.L41-.L40
	.long	.L38-.L40
	.long	.L39-.L40
	.text
.L42:
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 10
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jge	.L43
	mov	rax, -1
	jmp	.L35
.L43:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L39:
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 10
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jge	.L44
	mov	rax, -1
	jmp	.L35
.L44:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L41:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L45
	mov	rax, -1
	jmp	.L35
.L45:
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 10
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jge	.L46
	mov	rax, -1
	jmp	.L35
.L46:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L48
.L38:
	mov	rax, -1
	jmp	.L35
.L48:
	nop
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 0
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parselength, .-parselength
	.section	.rodata
	.align 8
.LC2:
	.string	"       truncate [-c] -r rfile file ..."
	.align 8
.LC3:
	.string	"usage: truncate [-c] -s [+|-]size[K|k|M|m|G|g] file ..."
.LC4:
	.string	"%s\n%s\n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC2[rip]
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.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	"843253.c"
	.text
	.local	no_create
	.comm	no_create,4,4
	.local	do_relative
	.comm	do_relative,4,4
	.local	do_refer
	.comm	do_refer,4,4
	.local	got_size
	.comm	got_size,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"invalid size argument `%s'\000"
	.align	2
.LC1:
	.ascii	"cr:s:\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-140]
	mov	r3, #0
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L2
.L10:
	ldr	r3, [fp, #-120]
	cmp	r3, #115
	beq	.L3
	ldr	r3, [fp, #-120]
	cmp	r3, #115
	bgt	.L4
	ldr	r3, [fp, #-120]
	cmp	r3, #99
	beq	.L5
	ldr	r3, [fp, #-120]
	cmp	r3, #114
	beq	.L6
	b	.L4
.L5:
	ldr	r3, .L30+4
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L6:
	ldr	r3, .L30+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	str	r3, [fp, #-124]
	b	.L2
.L3:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	sub	r2, fp, #144
	mov	r1, r2
	mov	r0, r3
	bl	parselength
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L30+16
	ldr	r3, [r3]
	ldr	r2, .L30+12
	ldr	r2, [r2]
	ldr	r1, .L30+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L8
	ldr	r3, .L30+12
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L9
.L8:
	ldr	r3, .L30+24
	mov	r2, #1
	str	r2, [r3]
.L9:
	ldr	r3, .L30+28
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L4:
	bl	usage
.L2:
	ldr	r2, .L30+32
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-152]
	bl	getopt
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmn	r3, #1
	bne	.L10
	ldr	r3, .L30+36
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-156]
	add	r3, r2, r3
	str	r3, [fp, #-156]
	ldr	r3, .L30+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	sub	r3, r2, r3
	str	r3, [fp, #-152]
	ldr	r3, .L30+8
	ldr	r2, [r3]
	ldr	r3, .L30+28
	ldr	r3, [r3]
	add	r3, r2, r3
	cmp	r3, #1
	bne	.L11
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bgt	.L12
.L11:
	bl	usage
.L12:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r3, .L30+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	fputs
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-136]
	b	.L15
.L13:
	ldr	r3, .L30+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-140]
	b	.L15
.L16:
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-136]
.L15:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	mov	r3, #1
	str	r3, [fp, #-128]
	b	.L18
.L17:
	mov	r3, #65
	str	r3, [fp, #-128]
.L18:
	mov	r3, #420
	str	r3, [fp, #-116]
	b	.L19
.L27:
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-128]
	ldr	r0, [fp, #-112]
	bl	open
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	bne	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L19
	ldr	r0, [fp, #-112]
	bl	perror
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	b	.L19
.L20:
	ldr	r3, .L30+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	fstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r0, [fp, #-112]
	bl	perror
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	b	.L19
.L23:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	str	r3, [fp, #-104]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-140]
	add	r3, r2, r3
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	bge	.L24
	bl	__errno_location
	mov	r3, r0
	mov	r2, #27
	str	r2, [r3]
	ldr	r0, [fp, #-112]
	bl	perror
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	b	.L19
.L24:
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-136]
.L22:
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bge	.L25
	mov	r3, #0
	str	r3, [fp, #-136]
.L25:
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-108]
	bl	ftruncate
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r0, [fp, #-112]
	bl	perror
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	b	.L19
.L26:
	ldr	r0, [fp, #-108]
	bl	close
.L19:
	ldr	r3, [fp, #-156]
	add	r2, r3, #4
	str	r2, [fp, #-156]
	ldr	r3, [r3]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC2
	.word	no_create
	.word	do_refer
	.word	optarg
	.word	stderr
	.word	.LC0
	.word	do_relative
	.word	got_size
	.word	.LC1
	.word	optind
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parselength, %function
parselength:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L33
	cmp	r3, #45
	bne	.L35
	mvn	r3, #0
	str	r3, [fp, #-12]
.L33:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L35
.L38:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r1, r3
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L36
	mvn	r3, #0
	b	.L37
.L36:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L35:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L50
	cmp	r3, #0
	blt	.L40
	cmp	r3, #109
	bgt	.L40
	cmp	r3, #71
	blt	.L40
	sub	r3, r3, #71
	cmp	r3, #38
	ldrls	pc, [pc, r3, asl #2]
	b	.L40
.L42:
	.word	.L44
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L43
	.word	.L40
	.word	.L41
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L44
	.word	.L40
	.word	.L40
	.word	.L40
	.word	.L43
	.word	.L40
	.word	.L41
.L44:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #10
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L45
	mvn	r3, #0
	b	.L37
.L45:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L41:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #10
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L46
	mvn	r3, #0
	b	.L37
.L46:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L43:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L47
	mvn	r3, #0
	b	.L37
.L47:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #10
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L48
	mvn	r3, #0
	b	.L37
.L48:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	b	.L50
.L40:
	mvn	r3, #0
	b	.L37
.L50:
	nop
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #0
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parselength, .-parselength
	.section	.rodata
	.align	2
.LC3:
	.ascii	"       truncate [-c] -r rfile file ...\000"
	.align	2
.LC4:
	.ascii	"usage: truncate [-c] -s [+|-]size[K|k|M|m|G|g] file"
	.ascii	" ...\000"
	.align	2
.LC5:
	.ascii	"%s\012%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L52
	ldr	r0, [r3]
	ldr	r3, .L52+4
	ldr	r2, .L52+8
	ldr	r1, .L52+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L53:
	.align	2
.L52:
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
