	.file	"265635.c"
	.intel_syntax noprefix
	.text
	.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, 32
	mov	QWORD PTR -24[rbp], rdi
	call	omp_get_thread_num@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L8
	cmp	eax, 4
	jg	.L3
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L9
	cmp	eax, 2
	je	.L6
	jmp	.L3
.L4:
	mov	edi, 1000
	call	usleep@PLT
	mov	edi, 2000
	call	usleep@PLT
	mov	edi, 4000
	call	usleep@PLT
	jmp	.L3
.L6:
	mov	edi, 1000
	call	usleep@PLT
	jmp	.L9
.L8:
	nop
	jmp	.L3
.L9:
	nop
.L3:
	call	omp_get_cancellation@PLT
	test	eax, eax
	je	.L10
	call	abort@PLT
.L10:
	nop
	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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -144[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -136[rbp], 2
	mov	DWORD PTR -132[rbp], 4
	mov	DWORD PTR -128[rbp], 2
	mov	DWORD PTR -124[rbp], 2
	mov	DWORD PTR -120[rbp], 1
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	foo
	mov	DWORD PTR -152[rbp], 0
	jmp	.L12
.L15:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L13
.L14:
	call	rand@PLT
	and	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], edx
	add	DWORD PTR -148[rbp], 1
.L13:
	cmp	DWORD PTR -148[rbp], 31
	jle	.L14
	call	rand@PLT
	and	eax, 31
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], 4
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	foo
	add	DWORD PTR -152[rbp], 1
.L12:
	cmp	DWORD PTR -152[rbp], 31
	jle	.L15
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"265635.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	bl	omp_get_thread_num
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L2
	.word	.L6
	.word	.L5
	.word	.L2
.L5:
	mov	r0, #1000
	bl	usleep
	mov	r0, #2000
	bl	usleep
	mov	r0, #4000
	bl	usleep
	b	.L2
.L6:
	mov	r0, #1000
	bl	usleep
	nop
.L2:
	bl	omp_get_cancellation
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	bl	abort
.L9:
	nop
	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 = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-132]
	mov	r3, #2
	str	r3, [fp, #-128]
	mov	r3, #4
	str	r3, [fp, #-124]
	mov	r3, #2
	str	r3, [fp, #-120]
	mov	r3, #2
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-112]
	sub	r3, fp, #136
	mov	r0, r3
	bl	foo
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L12
.L13:
	bl	rand
	mov	r3, r0
	and	r2, r3, #3
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-132]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L12:
	ldr	r3, [fp, #-140]
	cmp	r3, #31
	ble	.L13
	bl	rand
	mov	r3, r0
	and	r3, r3, #31
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #4
	str	r2, [r3, #-132]
	sub	r3, fp, #136
	mov	r0, r3
	bl	foo
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L11:
	ldr	r3, [fp, #-144]
	cmp	r3, #31
	ble	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
