	.file	"246035.c"
	.intel_syntax noprefix
	.text
	.globl	foo
	.type	foo, @function
foo:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	je	.L2
	cmp	DWORD PTR -4[rbp], 2
	jg	.L3
	cmp	DWORD PTR -4[rbp], 0
	je	.L4
	cmp	DWORD PTR -4[rbp], 1
	je	.L5
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L6
.L2:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR [rax]
	cwde
	jmp	.L6
.L3:
	call	abort@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	foo, .-foo
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 1
	mov	DWORD PTR -56[rbp], 2
	mov	DWORD PTR -68[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	WORD PTR -48[rbp+rax*2], dx
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -68[rbp], 1
.L8:
	cmp	DWORD PTR -68[rbp], 9
	jle	.L9
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	foo
	cmp	eax, 1
	je	.L10
	call	abort@PLT
.L10:
	lea	rax, -18[rbp]
	add	rax, 3
	mov	rsi, rax
	mov	edi, 1
	call	foo
	cmp	eax, 3
	je	.L11
	call	abort@PLT
.L11:
	lea	rax, -48[rbp]
	add	rax, 6
	mov	rsi, rax
	mov	edi, 2
	call	foo
	cmp	eax, 3
	je	.L12
	call	abort@PLT
.L12:
	mov	edi, 0
	call	exit@PLT
	.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	"246035.c"
	.text
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L5
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	b	.L6
.L5:
	ldr	r3, [fp, #-12]
	ldrsb	r3, [r3]
	b	.L6
.L2:
	ldr	r3, [fp, #-12]
	ldrsh	r3, [r3]
	b	.L6
.L3:
	bl	abort
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	foo, .-foo
	.section	.rodata
	.align	2
.LC0:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-48]
	mov	r3, #2
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L8
.L9:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	sub	r3, r3, #36
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #24
	asr	r1, r3, #24
	sub	r2, fp, #20
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L8:
	ldr	r3, [fp, #-52]
	cmp	r3, #9
	ble	.L9
	sub	r3, fp, #48
	mov	r1, r3
	mov	r0, #0
	bl	foo
	mov	r3, r0
	cmp	r3, #1
	beq	.L10
	bl	abort
.L10:
	sub	r3, fp, #20
	add	r3, r3, #3
	mov	r1, r3
	mov	r0, #1
	bl	foo
	mov	r3, r0
	cmp	r3, #3
	beq	.L11
	bl	abort
.L11:
	sub	r3, fp, #40
	add	r3, r3, #6
	mov	r1, r3
	mov	r0, #2
	bl	foo
	mov	r3, r0
	cmp	r3, #3
	beq	.L12
	bl	abort
.L12:
	mov	r0, #0
	bl	exit
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
