	.file	"29825495.c"
	.intel_syntax noprefix
	.text
	.globl	buffer
	.bss
	.align 8
	.type	buffer, @object
	.size	buffer, 8
buffer:
	.zero	8
	.text
	.globl	fill_buffer
	.type	fill_buffer, @function
fill_buffer:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L4:
	mov	rdx, QWORD PTR buffer[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -8[rbp], 1
	cmp	QWORD PTR -8[rbp], 10
	je	.L5
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L4
	jmp	.L1
.L5:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fill_buffer, .-fill_buffer
	.globl	change_cond
	.type	change_cond, @function
change_cond:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 100
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	change_cond, .-change_cond
	.section	.rodata
.LC0:
	.string	"the_stack_data/29825495.c"
.LC1:
	.string	"0"
	.text
	.globl	fork_point
	.type	fork_point, @function
fork_point:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	cmp	DWORD PTR -4[rbp], 0
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 28
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L9:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR buffer[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fork_point, .-fork_point
	.section	.rodata
.LC2:
	.string	"12345678911"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR buffer[rip], rax
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR buffer[rip]
	test	rax, rax
	jne	.L12
	mov	eax, -1
	jmp	.L13
.L12:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L14
	mov	eax, -1
	jmp	.L13
.L14:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fill_buffer
	mov	rax, QWORD PTR buffer[rip]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 49
	mov	edi, eax
	call	change_cond
	mov	DWORD PTR -20[rbp], eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -20[rbp], 200
	jne	.L15
	mov	rax, QWORD PTR buffer[rip]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	ecx, -52[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 11
	mov	rsi, rax
	mov	edi, ecx
	call	fork_point
	jmp	.L16
.L15:
	mov	rax, QWORD PTR buffer[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 11
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
.L16:
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
	.string	"fork_point"
	.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	"29825495.c"
	.text
	.comm	buffer,4,4
	.align	2
	.global	fill_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_buffer, %function
fill_buffer:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L5
.L2:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L4
	b	.L1
.L5:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	buffer
	.size	fill_buffer, .-fill_buffer
	.align	2
	.global	change_cond
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_cond, %function
change_cond:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	change_cond, .-change_cond
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/29825495.c\000"
	.align	2
.LC1:
	.ascii	"0\000"
	.text
	.align	2
	.global	fork_point
	.syntax unified
	.arm
	.fpu softvfp
	.type	fork_point, %function
fork_point:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L13
	mov	r2, #28
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	__assert_fail
.L11:
	ldr	r3, .L13+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	memcpy
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	__PRETTY_FUNCTION__.5326
	.word	.LC0
	.word	.LC1
	.word	buffer
	.size	fork_point, .-fork_point
	.section	.rodata
	.align	2
.LC2:
	.ascii	"12345678911\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r0, #10
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L21
	str	r2, [r3]
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	mvn	r3, #0
	b	.L17
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L18
	mvn	r3, #0
	b	.L17
.L18:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fill_buffer
	ldr	r3, .L21
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #49
	mov	r0, r3
	bl	change_cond
	str	r0, [fp, #-12]
	ldr	r3, .L21+8
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #200
	bne	.L19
	ldr	r3, .L21
	ldr	r3, [r3]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #52
	mov	r2, #11
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fork_point
	b	.L20
.L19:
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r2, #11
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	memcpy
.L20:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	buffer
	.word	stdin
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5326, %object
	.size	__PRETTY_FUNCTION__.5326, 11
__PRETTY_FUNCTION__.5326:
	.ascii	"fork_point\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
