	.file	"525092.c"
	.intel_syntax noprefix
	.text
	.section	.tbss,"awT",@nobits
	.align 8
	.type	foo, @object
	.size	foo, 32
foo:
	.zero	32
	.text
	.globl	test2
	.type	test2, @function
test2:
.LFB0:
	.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], 0
	jmp	.L2
.L4:
	mov	rdx, QWORD PTR foo@gottpoff[rip]
	mov	eax, DWORD PTR -4[rbp]
	movzx	eax, BYTE PTR fs:[rdx+rax]
	movzx	eax, al
	cmp	DWORD PTR -4[rbp], eax
	je	.L3
	call	abort@PLT
.L3:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, 32
	sub	eax, edx
	mov	ecx, eax
	mov	rdx, QWORD PTR foo@gottpoff[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	BYTE PTR fs:[rdx+rax], cl
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 31
	jbe	.L4
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	test2, .-test2
	.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	"525092.c"
	.text
	.section	.tbss,"awT",%nobits
	.align	2
	.type	foo, %object
	.size	foo, 32
foo:
	.space	32
	.text
	.align	2
	.global	test2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2, %function
test2:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, .L5
.LPIC0:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r2, r0
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L3
	bl	abort
.L3:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	rsb	r3, r3, #32
	and	r1, r3, #255
	ldr	r3, .L5+4
.LPIC1:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r2, r0
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #31
	bls	.L4
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	foo(gottpoff) + (. - .LPIC0 - 8)
	.word	foo(gottpoff) + (. - .LPIC1 - 8)
	.size	test2, .-test2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
