	.file	"103266149.c"
	.intel_syntax noprefix
	.text
	.globl	grrr
	.bss
	.type	grrr, @object
	.size	grrr, 1
grrr:
	.zero	1
	.section	.rodata
.LC0:
	.string	"      choo choo"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -72[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -56[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	P
	mov	ebx, eax
	cmp	DWORD PTR -52[rbp], 0
	sete	al
	movzx	eax, al
	cdqe
	mov	r12d, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	mov	eax, 0
	call	P
	cmp	eax, 2
	setg	al
	movzx	eax, al
	and	eax, r12d
	or	eax, ebx
	test	eax, eax
	je	.L2
	cmp	DWORD PTR -52[rbp], 0
	setne	al
	jmp	.L3
.L2:
	cmp	DWORD PTR -56[rbp], 0
	setne	al
.L3:
	test	al, al
	je	.L4
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -56[rbp], 0
.L5:
	add	DWORD PTR -56[rbp], 1
	jmp	.L5
.L4:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"  B   "
	.text
	.globl	P
	.type	P, @function
P:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	nop
.L9:
	movsx	rax, BYTE PTR -4[rbp]
	mov	rdx, rax
	lea	rax, .LC1[rip]
	cmp	rdx, rax
	ja	.L9
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	P, .-P
	.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	"103266149.c"
	.text
	.comm	grrr,1,1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"      choo choo\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	puts
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	P
	mov	r5, r0
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-20]
	ldr	r0, [fp, #-36]
	bl	P
	mov	r3, r0
	cmp	r3, #2
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	and	r3, r3, r4
	orr	r3, r5, r3
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	b	.L3
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
.L3:
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	mov	r3, #0
	str	r3, [fp, #-40]
.L5:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L5
.L4:
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"  B   \000"
	.text
	.align	2
	.global	P
	.syntax unified
	.arm
	.fpu softvfp
	.type	P, %function
P:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-8]
	nop
.L11:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L12
	cmp	r2, r3
	bhi	.L11
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	.LC2
	.size	P, .-P
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
