	.file	"378667.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.text
	.globl	foo1
	.type	foo1, @function
foo1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR a[rip]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rax, ax
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	QWORD PTR -8[rbp], 1
.L2:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jl	.L3
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo1, .-foo1
	.globl	foo2
	.type	foo2, @function
foo2:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	BYTE PTR -20[rbp], dl
	mov	edx, ecx
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -28[rbp], al
	mov	BYTE PTR -5[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR a[rip]
	movzx	eax, BYTE PTR -28[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -5[rbp]
	add	BYTE PTR -28[rbp], al
	movzx	eax, BYTE PTR -6[rbp]
	add	eax, 1
	mov	BYTE PTR -6[rbp], al
.L6:
	movzx	eax, BYTE PTR -6[rbp]
	cmp	al, BYTE PTR -24[rbp]
	jb	.L7
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	foo2, .-foo2
	.globl	foo3
	.type	foo3, @function
foo3:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	BYTE PTR -20[rbp], dl
	mov	edx, ecx
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -4[rbp], 0
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -5[rbp], al
	jmp	.L10
.L11:
	mov	rdx, QWORD PTR a[rip]
	movzx	eax, BYTE PTR -5[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -28[rbp]
	add	BYTE PTR -5[rbp], al
.L10:
	movzx	eax, BYTE PTR -5[rbp]
	cmp	al, BYTE PTR -24[rbp]
	jne	.L11
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	foo3, .-foo3
	.globl	foo4
	.type	foo4, @function
foo4:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	mov	DWORD PTR -4[rbp], 0
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -5[rbp], al
	jmp	.L14
.L15:
	mov	rdx, QWORD PTR a[rip]
	movzx	eax, BYTE PTR -5[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -5[rbp]
	add	eax, 1
	mov	BYTE PTR -5[rbp], al
.L14:
	movzx	eax, BYTE PTR -5[rbp]
	cmp	al, BYTE PTR -24[rbp]
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	foo4, .-foo4
	.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	"378667.c"
	.text
	.comm	a,4,4
	.align	2
	.global	foo1
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo1, %function
foo1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, .L5
	ldr	r2, [r3]
	ldrsh	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-20]
	str	r5, [fp, #-16]
.L2:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L6:
	.align	2
.L5:
	.word	a
	.size	foo1, .-foo1
	.align	2
	.global	foo2
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo2, %function
foo2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, r1
	strb	r3, [fp, #-14]
	mov	r3, r2
	strb	r3, [fp, #-15]
	mov	r3, #1
	strb	r3, [fp, #-9]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]
	strb	r3, [fp, #-10]
	b	.L8
.L9:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldrb	r2, [fp, #-15]
	ldrb	r3, [fp, #-9]
	add	r3, r2, r3
	strb	r3, [fp, #-15]
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-10]
.L8:
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L9
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	a
	.size	foo2, .-foo2
	.align	2
	.global	foo3
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo3, %function
foo3:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, r1
	strb	r3, [fp, #-14]
	mov	r3, r2
	strb	r3, [fp, #-15]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]
	strb	r3, [fp, #-9]
	b	.L14
.L15:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldrb	r2, [fp, #-9]
	ldrb	r3, [fp, #-15]
	add	r3, r2, r3
	strb	r3, [fp, #-9]
.L14:
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	a
	.size	foo3, .-foo3
	.align	2
	.global	foo4
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo4, %function
foo4:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]
	strb	r3, [fp, #-9]
	b	.L20
.L21:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-9]
.L20:
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L21
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	a
	.size	foo4, .-foo4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
