	.file	"35326.c"
	.intel_syntax noprefix
	.text
	.local	i
	.comm	i,4,4
	.globl	bar
	.bss
	.align 4
	.type	bar, @object
	.size	bar, 4
bar:
	.zero	4
	.section	.tdata,"awT",@progbits
	.align 8
	.type	foo, @object
	.size	foo, 32
foo:
	.quad	i
	.quad	bar
	.zero	16
	.text
	.globl	test1
	.type	test1, @function
test1:
.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	rax, QWORD PTR foo@gottpoff[rip]
	mov	rax, QWORD PTR fs:[rax]
	lea	rdx, i[rip]
	cmp	rax, rdx
	jne	.L2
	mov	rax, QWORD PTR foo@gottpoff[rip]
	mov	rax, QWORD PTR fs:8[rax]
	lea	rdx, bar[rip]
	cmp	rax, rdx
	je	.L3
.L2:
	call	abort@PLT
.L3:
	mov	rax, QWORD PTR foo@gottpoff[rip]
	mov	QWORD PTR fs:[rax], 0
	mov	rax, QWORD PTR foo@gottpoff[rip]
	mov	QWORD PTR fs:8[rax], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR foo@gottpoff[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR fs:[rax+rdx*8]
	test	rax, rax
	je	.L5
	call	abort@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rdx, QWORD PTR fs:0
	mov	rax, QWORD PTR foo@gottpoff[rip]
	add	rax, rdx
	add	rcx, rax
	mov	rax, QWORD PTR foo@gottpoff[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR fs:[rax+rdx*8], rcx
	add	QWORD PTR -8[rbp], 1
.L4:
	cmp	QWORD PTR -8[rbp], 3
	jbe	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test1, .-test1
	.globl	test2
	.type	test2, @function
test2:
.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, 16
	mov	QWORD PTR -8[rbp], 0
	jmp	.L8
.L10:
	mov	rax, QWORD PTR foo@gottpoff[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR fs:[rax+rdx*8]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, 0[0+rdx*8]
	mov	rcx, QWORD PTR fs:0
	mov	rdx, QWORD PTR foo@gottpoff[rip]
	add	rdx, rcx
	add	rdx, rsi
	cmp	rax, rdx
	je	.L9
	call	abort@PLT
.L9:
	mov	rax, QWORD PTR -8[rbp]
	xor	rax, 1
	lea	rcx, 0[0+rax*8]
	mov	rdx, QWORD PTR fs:0
	mov	rax, QWORD PTR foo@gottpoff[rip]
	add	rax, rdx
	add	rcx, rax
	mov	rax, QWORD PTR foo@gottpoff[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR fs:[rax+rdx*8], rcx
	add	QWORD PTR -8[rbp], 1
.L8:
	cmp	QWORD PTR -8[rbp], 3
	jbe	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"35326.c"
	.text
	.local	i
	.comm	i,4,4
	.comm	bar,4,4
	.section	.tdata,"awT",%progbits
	.align	2
	.type	foo, %object
	.size	foo, 32
foo:
	.word	i
	.word	bar
	.space	24
	.text
	.align	2
	.global	test1
	.syntax unified
	.arm
	.fpu softvfp
	.type	test1, %function
test1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L7
.LPIC0:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r2, r0
	ldr	r3, [r2, r3]
	ldr	r2, .L7+4
	cmp	r3, r2
	bne	.L2
	ldr	r3, .L7+8
.LPIC1:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r2, r0
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, .L7+12
	cmp	r3, r2
	beq	.L3
.L2:
	bl	abort
.L3:
	ldr	r3, .L7+16
.LPIC2:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r2, r0
	mov	r1, #0
	str	r1, [r2, r3]
	ldr	r3, .L7+20
.LPIC3:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r2, r0
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L6:
	ldr	r3, .L7+24
.LPIC4:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r1, r0
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r3, r2, r3
	add	r3, r3, r1
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	bl	abort
.L5:
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #2
	ldr	r3, .L7+28
.LPIC5:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r1, r0
	add	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, .L7+32
.LPIC6:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	ldr	r1, [fp, #-8]
	lsl	r1, r1, #2
	add	r3, r1, r3
	add	r3, r3, r0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bls	.L6
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	foo(gottpoff) + (. - .LPIC0 - 8)
	.word	i
	.word	foo(gottpoff) + (. - .LPIC1 - 8)
	.word	bar
	.word	foo(gottpoff) + (. - .LPIC2 - 8)
	.word	foo(gottpoff) + (. - .LPIC3 - 8)
	.word	foo(gottpoff) + (. - .LPIC4 - 8)
	.word	foo(gottpoff) + (. - .LPIC5 - 8)
	.word	foo(gottpoff) + (. - .LPIC6 - 8)
	.size	test1, .-test1
	.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	.L10
.L12:
	ldr	r3, .L13
.LPIC7:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r1, r0
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r3, r2, r3
	add	r3, r3, r1
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r1, r3, #2
	ldr	r3, .L13+4
.LPIC8:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	add	r3, r0, r3
	add	r3, r1, r3
	cmp	r2, r3
	beq	.L11
	bl	abort
.L11:
	ldr	r3, [fp, #-8]
	eor	r3, r3, #1
	lsl	r2, r3, #2
	ldr	r3, .L13+8
.LPIC9:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	mov	r1, r0
	add	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, .L13+12
.LPIC10:
	ldr	r3, [pc, r3]		@ tls_load_dot_plus_eight
	bl	__aeabi_read_tp	@ load_tp_soft
	ldr	r1, [fp, #-8]
	lsl	r1, r1, #2
	add	r3, r1, r3
	add	r3, r3, r0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bls	.L12
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	foo(gottpoff) + (. - .LPIC7 - 8)
	.word	foo(gottpoff) + (. - .LPIC8 - 8)
	.word	foo(gottpoff) + (. - .LPIC9 - 8)
	.word	foo(gottpoff) + (. - .LPIC10 - 8)
	.size	test2, .-test2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
