	.file	"7691.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"No such file as %s\n"
.LC3:
	.string	"w"
.LC4:
	.string	"output.txt"
	.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, 1040
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1032[rbp], rax
	cmp	QWORD PTR -1032[rbp], 0
	jne	.L2
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, 0
	call	create_line
	mov	QWORD PTR -1024[rbp], rax
	jmp	.L3
.L4:
	lea	rdx, -1008[rbp]
	mov	rax, QWORD PTR -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_text_line
.L3:
	mov	rdx, QWORD PTR -1032[rbp]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -1032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -1016[rbp], rax
	mov	rdx, QWORD PTR -1016[rbp]
	mov	rax, QWORD PTR -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	process_checkout_line
	mov	rax, QWORD PTR -1016[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	create_line
	.type	create_line, @function
create_line:
.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, 16
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_line, .-create_line
	.globl	next_item
	.type	next_item, @function
next_item:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	rdx, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 128[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 128[rax]
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 136[rax], 0
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L9
.L13:
	nop
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	next_item, .-next_item
	.globl	add_person_to_line
	.type	add_person_to_line, @function
add_person_to_line:
.LFB9:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	movsd	QWORD PTR -40[rbp], xmm0
	mov	edi, 152
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -12[rbp], 1
.L15:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR 104[rax], xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 144[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 128[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L17
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L14
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 144[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	add_person_to_line, .-add_person_to_line
	.globl	add_item_to_last_person
	.type	add_item_to_last_person, @function
add_item_to_last_person:
.LFB10:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	movsd	QWORD PTR -40[rbp], xmm0
	mov	DWORD PTR -44[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L25
	mov	edi, 128
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -12[rbp], 1
.L22:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L23
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR 104[rax], xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR 112[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 120[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 128[rax]
	test	rax, rax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 136[rax], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR 128[rdx], rax
	jmp	.L19
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 136[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 120[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 136[rax], rdx
	jmp	.L19
.L25:
	nop
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	add_item_to_last_person, .-add_item_to_last_person
	.section	.rodata
.LC6:
	.string	"emtpy"
.LC7:
	.string	"no customer"
	.text
	.globl	parse_text_line
	.type	parse_text_line, @function
parse_text_line:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -136[rbp], 0
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR -140[rbp], eax
	jmp	.L27
.L58:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 123
	jne	.L28
	jmp	.L29
.L57:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L30
	add	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -148[rbp], 0
	jmp	.L31
.L37:
	cmp	DWORD PTR -136[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -80[rbp+rax], dl
	add	DWORD PTR -148[rbp], 1
	jmp	.L33
.L32:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L34
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
	add	DWORD PTR -148[rbp], 1
	jmp	.L33
.L34:
	cmp	DWORD PTR -136[rbp], 1
	jmp	.L26
.L33:
	add	DWORD PTR -140[rbp], 1
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L31
	mov	rdx, QWORD PTR .LC5[rip]
	mov	rax, QWORD PTR -168[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	add_person_to_line
	jmp	.L26
.L31:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L37
	cmp	DWORD PTR -136[rbp], 0
	jne	.L38
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -80[rbp+rax], 0
	add	DWORD PTR -136[rbp], 1
	jmp	.L30
.L38:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L39
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	add	DWORD PTR -136[rbp], 1
	jmp	.L30
.L39:
	cmp	DWORD PTR -136[rbp], 1
	jmp	.L26
.L30:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 44
	jne	.L41
	add	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -148[rbp], 0
	jmp	.L42
.L49:
	cmp	DWORD PTR -136[rbp], 1
	jne	.L43
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -148[rbp], 1
	jmp	.L44
.L43:
	mov	eax, DWORD PTR -136[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L45
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -148[rbp], 1
	jmp	.L44
.L45:
	cmp	DWORD PTR -136[rbp], 2
	jg	.L46
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, rax
	lea	rax, -80[rbp]
	cmp	rdx, rax
	je	.L47
	mov	rax, QWORD PTR -168[rbp]
	pxor	xmm0, xmm0
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	add_person_to_line
.L47:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR 104[rax], xmm0
	jmp	.L26
.L46:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 128[rax]
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR 104[rax], xmm0
	jmp	.L26
.L44:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 125
	jne	.L48
	cmp	DWORD PTR -136[rbp], 1
	jg	.L48
	mov	rcx, QWORD PTR -120[rbp]
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -168[rbp]
	movq	xmm0, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	add_person_to_line
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR 112[rax], 0
	jmp	.L26
.L48:
	add	DWORD PTR -140[rbp], 1
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L42
	mov	rdx, QWORD PTR .LC5[rip]
	mov	rax, QWORD PTR -168[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	add_person_to_line
	jmp	.L26
.L42:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 44
	jne	.L49
	cmp	DWORD PTR -136[rbp], 1
	jne	.L50
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 0
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -120[rbp], rax
	mov	rcx, QWORD PTR -120[rbp]
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -168[rbp]
	movq	xmm0, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	add_person_to_line
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR 112[rax], 0
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	pxor	xmm0, xmm0
	movsd	QWORD PTR 120[rax], xmm0
	add	DWORD PTR -136[rbp], 1
	jmp	.L41
.L50:
	mov	eax, DWORD PTR -136[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L51
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 0
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -128[rbp], rax
	add	DWORD PTR -136[rbp], 1
	jmp	.L41
.L51:
	cmp	DWORD PTR -136[rbp], 2
	jg	.L52
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR 104[rax], xmm0
	jmp	.L26
.L52:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 128[rax]
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR 104[rax], xmm0
	jmp	.L26
.L41:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 44
	jne	.L53
	cmp	DWORD PTR -136[rbp], 3
	jle	.L53
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR -144[rbp], eax
	add	DWORD PTR -144[rbp], 1
	mov	DWORD PTR -148[rbp], 0
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -144[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -148[rbp], 1
	add	DWORD PTR -144[rbp], 1
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L54
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR 104[rax], xmm0
	jmp	.L26
.L54:
	mov	eax, DWORD PTR -144[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 125
	jne	.L55
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 0
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm1, QWORD PTR 120[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -132[rbp]
	mulsd	xmm0, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	addsd	xmm0, xmm1
	movsd	QWORD PTR 120[rax], xmm0
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR 112[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -132[rbp]
	add	edx, ecx
	mov	DWORD PTR 112[rax], edx
	mov	edx, DWORD PTR -132[rbp]
	mov	rsi, QWORD PTR -128[rbp]
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -168[rbp]
	movq	xmm0, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	add_item_to_last_person
.L53:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 125
	jne	.L56
	cmp	DWORD PTR -136[rbp], 2
	jg	.L56
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR 112[rax], -1
	jmp	.L26
.L56:
	add	DWORD PTR -140[rbp], 1
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L29
	mov	rdx, QWORD PTR .LC5[rip]
	mov	rax, QWORD PTR -168[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	add_person_to_line
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 125
	jne	.L57
.L28:
	add	DWORD PTR -140[rbp], 1
.L27:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L58
.L26:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	parse_text_line, .-parse_text_line
	.globl	remove_front_line_person
	.type	remove_front_line_person, @function
remove_front_line_person:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L65
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 144[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
.L64:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L61
.L65:
	nop
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	remove_front_line_person, .-remove_front_line_person
	.section	.rodata
.LC9:
	.string	"check input\n"
.LC10:
	.string	"%s does not have any items.\n"
.LC11:
	.string	"check item input for %s\n"
	.align 8
.LC12:
	.string	"%s was rejected at the express register\n"
	.align 8
.LC13:
	.string	"%s was rejected at the regular register\n"
.LC14:
	.string	"%s paid $%.2lf for "
.LC15:
	.string	"%d %s"
.LC16:
	.string	", "
.LC17:
	.string	" at the express register\n"
.LC18:
	.string	" at the regular register\n"
	.text
	.globl	process_checkout_line
	.type	process_checkout_line, @function
process_checkout_line:
.LFB13:
	.cfi_startproc
	endbr64
	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	QWORD PTR -16[rbp], rsi
	jmp	.L67
.L80:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR 104[rax]
	movsd	xmm1, QWORD PTR .LC5[rip]
	ucomisd	xmm0, xmm1
	jp	.L68
	movsd	xmm1, QWORD PTR .LC5[rip]
	ucomisd	xmm0, xmm1
	jne	.L68
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L70
.L68:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 112[rax]
	test	eax, eax
	jne	.L71
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L70
.L71:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 128[rax]
	movsd	xmm0, QWORD PTR 104[rax]
	movsd	xmm1, QWORD PTR .LC5[rip]
	ucomisd	xmm0, xmm1
	jp	.L72
	movsd	xmm1, QWORD PTR .LC5[rip]
	ucomisd	xmm0, xmm1
	jne	.L72
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L70
.L72:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR 104[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movsd	xmm2, QWORD PTR 120[rax]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	pxor	xmm0, xmm0
	comisd	xmm0, xmm1
	jbe	.L84
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 112[rax]
	cmp	eax, 10
	jg	.L76
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L70
.L76:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L70
.L84:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rdx
	mov	rdx, rcx
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	jmp	.L77
.L78:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 128[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 128[rax]
	mov	edx, DWORD PTR 112[rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	next_item
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 128[rax]
	test	rax, rax
	je	.L77
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
.L77:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 128[rax]
	test	rax, rax
	jne	.L78
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 112[rax]
	cmp	eax, 9
	jg	.L79
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	jmp	.L70
.L79:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
.L70:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	remove_front_line_person
.L67:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L80
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	process_checkout_line, .-process_checkout_line
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	-1074790400
	.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	"7691.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input.txt\000"
	.align	2
.LC2:
	.ascii	"No such file as %s\012\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"output.txt\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1016
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L7+4
	ldr	r0, .L7+8
	bl	fopen
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L7+8
	ldr	r0, .L7+12
	bl	printf
.L2:
	bl	create_line
	str	r0, [fp, #-1016]
	b	.L3
.L4:
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, [fp, #-1016]
	bl	parse_text_line
.L3:
	sub	r3, fp, #1008
	ldr	r2, [fp, #-1020]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, [fp, #-1020]
	bl	fclose
	ldr	r1, .L7+16
	ldr	r0, .L7+20
	bl	fopen
	str	r0, [fp, #-1012]
	ldr	r1, [fp, #-1012]
	ldr	r0, [fp, #-1016]
	bl	process_checkout_line
	ldr	r0, [fp, #-1012]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	create_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_line, %function
create_line:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_line, .-create_line
	.align	2
	.global	next_item
	.syntax unified
	.arm
	.fpu softvfp
	.type	next_item, %function
next_item:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #128]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #128]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #128]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #128]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #132]
.L14:
	ldr	r0, [fp, #-8]
	bl	free
	b	.L11
.L15:
	nop
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	next_item, .-next_item
	.align	2
	.global	add_person_to_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_person_to_line, %function
add_person_to_line:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r0, #144
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L18:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-8]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [r1, #104]
	str	r3, [r1, #108]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #136]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #128]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L16
.L19:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #136]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_person_to_line, .-add_person_to_line
	.align	2
	.global	add_item_to_last_person
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_item_to_last_person, %function
add_item_to_last_person:
	@ args = 4, 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L27
	mov	r0, #120
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L24
.L25:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L24:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L25
	ldr	r1, [fp, #-8]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [r1, #104]
	str	r3, [r1, #108]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #4]
	str	r2, [r3, #112]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #116]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #128]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #132]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #4]
	ldr	r3, [r3, #132]
	str	r3, [r2, #128]
	b	.L21
.L26:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #132]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #116]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #132]
	b	.L21
.L27:
	nop
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_item_to_last_person, .-add_item_to_last_person
	.section	.rodata
	.align	2
.LC6:
	.ascii	"emtpy\000"
	.align	2
.LC7:
	.ascii	"no customer\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_text_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_text_line, %function
parse_text_line:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #140
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-128]
	b	.L29
.L60:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #123
	bne	.L30
	b	.L31
.L59:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L32
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L33
.L39:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #76
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	b	.L35
.L34:
	ldr	r3, [fp, #-124]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #96
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	b	.L35
.L36:
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	b	.L28
.L35:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L33
	mov	r2, #0
	ldr	r3, .L63+4
	ldr	r1, .L63+8
	ldr	r0, [fp, #-144]
	bl	add_person_to_line
	b	.L28
.L33:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L39
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L40
	sub	r2, fp, #76
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	b	.L32
.L40:
	ldr	r3, [fp, #-124]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L41
	sub	r2, fp, #96
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	b	.L32
.L41:
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	b	.L28
.L32:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #44
	bne	.L43
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L44
.L51:
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	bne	.L45
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #56
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	b	.L46
.L45:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L47
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #56
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	b	.L46
.L47:
	ldr	r3, [fp, #-124]
	cmp	r3, #2
	bgt	.L48
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	mov	r2, r3
	sub	r3, fp, #76
	cmp	r2, r3
	beq	.L49
	mov	r2, #0
	mov	r3, #0
	ldr	r1, .L63+12
	ldr	r0, [fp, #-144]
	bl	add_person_to_line
.L49:
	ldr	r3, [fp, #-144]
	ldr	r1, [r3, #4]
	mov	r2, #0
	ldr	r3, .L63+4
	str	r2, [r1, #104]
	str	r3, [r1, #108]
	b	.L28
.L48:
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	ldr	r1, [r3, #128]
	mov	r2, #0
	ldr	r3, .L63+4
	str	r2, [r1, #104]
	str	r3, [r1, #108]
	b	.L28
.L46:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #125
	bne	.L50
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	bgt	.L50
	sub	r1, fp, #76
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-144]
	bl	add_person_to_line
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #112]
	b	.L28
.L50:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L44
	mov	r2, #0
	ldr	r3, .L63+4
	ldr	r1, .L63+8
	ldr	r0, [fp, #-144]
	bl	add_person_to_line
	b	.L28
.L44:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #44
	bne	.L51
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	bne	.L52
	sub	r2, fp, #56
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #56
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-108]
	str	r1, [fp, #-104]
	sub	r1, fp, #76
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-144]
	bl	add_person_to_line
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #112]
	ldr	r3, [fp, #-144]
	ldr	r1, [r3, #4]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #120]
	str	r3, [r1, #124]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	b	.L43
.L52:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L53
	sub	r2, fp, #56
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #56
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-116]
	str	r1, [fp, #-112]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	b	.L43
.L53:
	ldr	r3, [fp, #-124]
	cmp	r3, #2
	bgt	.L54
	ldr	r3, [fp, #-144]
	ldr	r1, [r3, #4]
	mov	r2, #0
	ldr	r3, .L63+4
	str	r2, [r1, #104]
	str	r3, [r1, #108]
	b	.L28
.L54:
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	ldr	r1, [r3, #128]
	mov	r2, #0
	ldr	r3, .L63+4
	str	r2, [r1, #104]
	str	r3, [r1, #108]
	b	.L28
.L43:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #44
	bne	.L55
	ldr	r3, [fp, #-124]
	cmp	r3, #3
	ble	.L55
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L56
.L57:
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #56
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-144]
	ldr	r1, [r3, #4]
	mov	r2, #0
	ldr	r3, .L63+4
	str	r2, [r1, #104]
	str	r3, [r1, #108]
	b	.L28
.L56:
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #125
	bne	.L57
	sub	r2, fp, #56
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #56
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	add	r5, r3, #120
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2d
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-144]
	ldr	r6, [r3, #4]
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [r6, #120]
	str	r3, [r6, #124]
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	ldr	r1, [r3, #112]
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-120]
	add	r2, r1, r2
	str	r2, [r3, #112]
	sub	r1, fp, #96
	ldr	r3, [fp, #-120]
	str	r3, [sp]
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-144]
	bl	add_item_to_last_person
.L55:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #125
	bne	.L58
	ldr	r3, [fp, #-124]
	cmp	r3, #2
	bgt	.L58
	ldr	r3, [fp, #-144]
	ldr	r3, [r3, #4]
	mvn	r2, #0
	str	r2, [r3, #112]
	b	.L28
.L58:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L31
	mov	r2, #0
	ldr	r3, .L63+4
	ldr	r1, .L63+8
	ldr	r0, [fp, #-144]
	bl	add_person_to_line
	b	.L28
.L31:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #125
	bne	.L59
.L30:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L29:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L60
.L28:
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC8
	.word	-1074790400
	.word	.LC6
	.word	.LC7
	.size	parse_text_line, .-parse_text_line
	.align	2
	.global	remove_front_line_person
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_front_line_person, %function
remove_front_line_person:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3, #136]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
.L68:
	ldr	r0, [fp, #-8]
	bl	free
	b	.L65
.L69:
	nop
.L65:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	remove_front_line_person, .-remove_front_line_person
	.global	__aeabi_dcmpeq
	.section	.rodata
	.align	2
.LC9:
	.ascii	"check input\012\000"
	.align	2
.LC10:
	.ascii	"%s does not have any items.\012\000"
	.align	2
.LC11:
	.ascii	"check item input for %s\012\000"
	.global	__aeabi_dsub
	.global	__aeabi_dcmplt
	.align	2
.LC12:
	.ascii	"%s was rejected at the express register\012\000"
	.align	2
.LC13:
	.ascii	"%s was rejected at the regular register\012\000"
	.align	2
.LC14:
	.ascii	"%s paid $%.2lf for \000"
	.align	2
.LC15:
	.ascii	"%d %s\000"
	.align	2
.LC16:
	.ascii	", \000"
	.align	2
.LC17:
	.ascii	" at the express register\012\000"
	.align	2
.LC18:
	.ascii	" at the regular register\012\000"
	.text
	.align	2
	.global	process_checkout_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_checkout_line, %function
process_checkout_line:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L71
.L84:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r1, r3, #104
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L91
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-12]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L91+4
	bl	fwrite
	b	.L74
.L88:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #112]
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L91+8
	ldr	r0, [fp, #-12]
	bl	fprintf
	b	.L74
.L75:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #128]
	add	r1, r3, #104
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L91
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L91+12
	ldr	r0, [fp, #-12]
	bl	fprintf
	b	.L74
.L89:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r1, r3, #104
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #120
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L90
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #112]
	cmp	r3, #10
	bgt	.L80
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L91+16
	ldr	r0, [fp, #-12]
	bl	fprintf
	b	.L74
.L80:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L91+20
	ldr	r0, [fp, #-12]
	bl	fprintf
	b	.L74
.L90:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #120
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r1
	ldr	r1, .L91+24
	ldr	r0, [fp, #-12]
	bl	fprintf
	b	.L81
.L82:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #128]
	ldr	r1, .L91+28
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	next_item
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #128]
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L91+32
	bl	fwrite
.L81:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #128]
	cmp	r3, #0
	bne	.L82
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #112]
	cmp	r3, #9
	bgt	.L83
	ldr	r3, [fp, #-12]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L91+36
	bl	fwrite
	b	.L74
.L83:
	ldr	r3, [fp, #-12]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L91+40
	bl	fwrite
.L74:
	ldr	r0, [fp, #-8]
	bl	remove_front_line_person
.L71:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L84
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	-1074790400
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	process_checkout_line, .-process_checkout_line
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
