	.file	"151706465.c"
	.intel_syntax noprefix
	.text
	.globl	gnu_dev_major
	.type	gnu_dev_major, @function
gnu_dev_major:
.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 8
	and	eax, 4095
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 32
	and	eax, -4096
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gnu_dev_major, .-gnu_dev_major
	.globl	gnu_dev_minor
	.type	gnu_dev_minor, @function
gnu_dev_minor:
.LFB1:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 12
	mov	al, 0
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	gnu_dev_minor, .-gnu_dev_minor
	.globl	gnu_dev_makedev
	.type	gnu_dev_makedev, @function
gnu_dev_makedev:
.LFB2:
	.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], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 8
	and	eax, 1048320
	or	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	sal	rax, 12
	mov	rdx, rax
	movabs	rax, 17592184995840
	and	rax, rdx
	or	rcx, rax
	mov	rdx, rcx
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 32
	mov	rcx, rax
	movabs	rax, -17592186044416
	and	rax, rcx
	or	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	gnu_dev_makedev, .-gnu_dev_makedev
	.data
	.align 4
	.type	iSet, @object
	.size	iSet, 4
iSet:
	.long	4
	.align 4
	.type	iCheck, @object
	.size	iCheck, 4
iCheck:
	.long	1
	.local	a
	.comm	a,4,4
	.local	b
	.comm	b,4,4
	.section	.rodata
.LC0:
	.string	"./reorder <param1> <param2>\n"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Error [%d] found creating set thread.\n"
	.align 8
.LC3:
	.string	"Error [%d] found creating check thread.\n"
.LC4:
	.string	"pthread join error: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -100[rbp], 1
	je	.L8
	cmp	DWORD PTR -100[rbp], 3
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, iSet[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sscanf@PLT
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, iCheck[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sscanf@PLT
.L8:
	mov	eax, DWORD PTR iSet[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -128[rbp], rdx
	mov	QWORD PTR -120[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -144[rbp], rdx
	mov	QWORD PTR -136[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L10:
	cmp	rsp, rdx
	je	.L11
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L10
.L11:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L12
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L12:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR iCheck[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L13:
	cmp	rsp, rdx
	je	.L14
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L13
.L14:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L15
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L15:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -96[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, setThread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -92[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L17:
	add	DWORD PTR -96[rbp], 1
.L16:
	mov	eax, DWORD PTR iSet[rip]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L18
	mov	DWORD PTR -96[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, checkThread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -92[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L20:
	add	DWORD PTR -96[rbp], 1
.L19:
	mov	eax, DWORD PTR iCheck[rip]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L21
	mov	DWORD PTR -96[rbp], 0
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -92[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L23:
	add	DWORD PTR -96[rbp], 1
.L22:
	mov	eax, DWORD PTR iSet[rip]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L24
	mov	DWORD PTR -96[rbp], 0
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -96[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -92[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L26:
	add	DWORD PTR -96[rbp], 1
.L25:
	mov	eax, DWORD PTR iCheck[rip]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L27
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.globl	setThread
	.type	setThread, @function
setThread:
.LFB4:
	.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 -8[rbp], rdi
	mov	DWORD PTR a[rip], 1
	mov	DWORD PTR b[rip], -1
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	setThread, .-setThread
	.section	.rodata
.LC5:
	.string	"Bug found!\n"
.LC6:
	.string	"reorder_bad.c"
.LC7:
	.string	"0"
	.text
	.globl	checkThread
	.type	checkThread, @function
checkThread:
.LFB5:
	.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], rdi
	mov	eax, DWORD PTR a[rip]
	test	eax, eax
	jne	.L33
	mov	eax, DWORD PTR b[rip]
	test	eax, eax
	je	.L34
.L33:
	mov	eax, DWORD PTR a[rip]
	cmp	eax, 1
	jne	.L35
	mov	eax, DWORD PTR b[rip]
	cmp	eax, -1
	je	.L34
.L35:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 80
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L34:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	checkThread, .-checkThread
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 12
__PRETTY_FUNCTION__.0:
	.string	"checkThread"
	.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	"151706465.c"
	.text
	.align	2
	.global	gnu_dev_major
	.syntax unified
	.arm
	.fpu softvfp
	.type	gnu_dev_major, %function
gnu_dev_major:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #8
	orr	r2, r2, r1, lsl #24
	lsr	r3, r1, #8
	mov	r3, r2
	lsl	r1, r3, #20
	lsr	r1, r1, #20
	sub	r5, fp, #20
	ldmia	r5, {r4-r5}
	mov	r2, #0
	mov	r3, #0
	mov	r2, r5
	mov	r3, #0
	mov	r3, r2
	bic	r3, r3, #4080
	bic	r3, r3, #15
	orr	r3, r1, r3
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
	.size	gnu_dev_major, .-gnu_dev_major
	.align	2
	.global	gnu_dev_minor
	.syntax unified
	.arm
	.fpu softvfp
	.type	gnu_dev_minor, %function
gnu_dev_minor:
	@ 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
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	and	ip, r3, #255
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #12
	orr	r2, r2, r1, lsl #20
	lsr	r3, r1, #12
	mov	r3, r2
	bic	r3, r3, #255
	orr	r3, ip, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	gnu_dev_minor, .-gnu_dev_minor
	.align	2
	.global	gnu_dev_makedev
	.syntax unified
	.arm
	.fpu softvfp
	.type	gnu_dev_makedev, %function
gnu_dev_makedev:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	lsl	r1, r3, #8
	ldr	r3, .L7+8
	and	r3, r3, r1
	orr	r3, r2, r3
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #-36]
	mov	r2, r3
	mov	r3, #0
	lsr	ip, r2, #20
	str	ip, [fp, #-40]
	lsl	r3, r2, #12
	str	r3, [fp, #-44]
	adr	r3, .L7
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-44]
	and	r8, ip, r2
	ldr	ip, [fp, #-40]
	and	ip, ip, r3
	mov	r9, ip
	orr	r6, r0, r8
	orr	r7, r1, r9
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	mov	r3, r0
	mov	r2, #0
	mov	r0, #0
	ldr	r1, .L7+12
	and	r4, r2, r0
	and	r5, r3, r1
	orr	r3, r6, r4
	str	r3, [fp, #-52]
	orr	r3, r7, r5
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
.L8:
	.align	3
.L7:
	.word	-1048576
	.word	4095
	.word	1048320
	.word	-4096
	.size	gnu_dev_makedev, .-gnu_dev_makedev
	.data
	.align	2
	.type	iSet, %object
	.size	iSet, 4
iSet:
	.word	4
	.align	2
	.type	iCheck, %object
	.size	iCheck, 4
iCheck:
	.word	1
	.local	a
	.comm	a,4,4
	.local	b
	.comm	b,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"./reorder <param1> <param2>\012\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Error [%d] found creating set thread.\012\000"
	.align	2
.LC3:
	.ascii	"Error [%d] found creating check thread.\012\000"
	.align	2
.LC4:
	.ascii	"pthread join error: %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	beq	.L10
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	beq	.L11
	ldr	r3, .L26+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L26+8
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L11:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L26+12
	ldr	r1, .L26+16
	mov	r0, r3
	bl	sscanf
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L26+20
	ldr	r1, .L26+16
	mov	r0, r3
	bl	sscanf
.L10:
	ldr	r3, .L26+12
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, .L26+20
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L12
.L14:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L26+24
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L26+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L26+28
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L13:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L12:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L14
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L15
.L17:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L26+32
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L26+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L26+36
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L16:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L15:
	ldr	r3, .L26+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L18
.L20:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L26+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L26+40
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L19:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L18:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L21
.L23:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L26+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L26+40
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L22:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L21:
	ldr	r3, .L26+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L23
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	iSet
	.word	.LC1
	.word	iCheck
	.word	setThread
	.word	.LC2
	.word	checkThread
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	setThread
	.syntax unified
	.arm
	.fpu softvfp
	.type	setThread, %function
setThread:
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, .L30
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L30+4
	mvn	r2, #0
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	a
	.word	b
	.size	setThread, .-setThread
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Bug found!\012\000"
	.align	2
.LC7:
	.ascii	"reorder_bad.c\000"
	.align	2
.LC8:
	.ascii	"0\000"
	.text
	.align	2
	.global	checkThread
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkThread, %function
checkThread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L37
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L37+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
.L33:
	ldr	r3, .L37
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L35
	ldr	r3, .L37+4
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L34
.L35:
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L37+12
	bl	fwrite
	ldr	r3, .L37+16
	mov	r2, #80
	ldr	r1, .L37+20
	ldr	r0, .L37+24
	bl	__assert_fail
.L34:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	a
	.word	b
	.word	stderr
	.word	.LC6
	.word	__PRETTY_FUNCTION__.5684
	.word	.LC7
	.word	.LC8
	.size	checkThread, .-checkThread
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5684, %object
	.size	__PRETTY_FUNCTION__.5684, 12
__PRETTY_FUNCTION__.5684:
	.ascii	"checkThread\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
