	.file	"984004.c"
	.intel_syntax noprefix
	.text
	.globl	g
	.bss
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	g1
	.align 4
	.type	g1, @object
	.size	g1, 4
g1:
	.zero	4
	.globl	g2
	.align 4
	.type	g2, @object
	.size	g2, 4
g2:
	.zero	4
	.text
	.globl	thr1
	.type	thr1, @function
thr1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR g1[rip]
	add	eax, 1
	mov	DWORD PTR g1[rip], eax
.L2:
	mov	edx, DWORD PTR g1[rip]
	mov	eax, DWORD PTR g[rip]
	cmp	edx, eax
	jl	.L3
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thr1, .-thr1
	.globl	thr2
	.type	thr2, @function
thr2:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR g2[rip]
	add	eax, 1
	mov	DWORD PTR g2[rip], eax
.L5:
	mov	edx, DWORD PTR g2[rip]
	mov	eax, DWORD PTR g[rip]
	cmp	edx, eax
	jl	.L6
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -4[rbp], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	thr2, .-thr2
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR g[rip]
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	glb_init@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, thr1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thr2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edx, DWORD PTR g1[rip]
	mov	eax, DWORD PTR g[rip]
	cmp	edx, eax
	setle	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	mov	edx, DWORD PTR g2[rip]
	mov	eax, DWORD PTR g[rip]
	cmp	edx, eax
	setle	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	mov	edx, DWORD PTR g1[rip]
	mov	eax, DWORD PTR g2[rip]
	add	edx, eax
	mov	eax, DWORD PTR g[rip]
	add	eax, eax
	cmp	edx, eax
	setle	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"984004.c"
	.text
	.comm	g,4,4
	.global	g1
	.bss
	.align	2
	.type	g1, %object
	.size	g1, 4
g1:
	.space	4
	.global	g2
	.align	2
	.type	g2, %object
	.size	g2, 4
g2:
	.space	4
	.text
	.align	2
	.global	thr1
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr1, %function
thr1:
	@ 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, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
.L2:
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	g1
	.word	g
	.size	thr1, .-thr1
	.align	2
	.global	thr2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thr2, %function
thr2:
	@ 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, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, .L9
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9
	str	r3, [r2]
.L7:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	g2
	.word	g
	.size	thr2, .-thr2
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	glb_init
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L14+8
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L14+12
	mov	r1, #0
	bl	pthread_create
	ldr	r3, .L14+16
	ldr	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r2, r3
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	ldr	r3, .L14+20
	ldr	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r2, r3
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	ldr	r3, .L14+16
	ldr	r2, [r3]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, .L14+4
	ldr	r3, [r3]
	lsl	r3, r3, #1
	cmp	r2, r3
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	g
	.word	thr1
	.word	thr2
	.word	g1
	.word	g2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
