	.file	"23575681.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"error: not exactly 3 args"
	.align 8
.LC2:
	.string	"error creating thread[%d]: %d\n"
.LC3:
	.string	"error joining thread[%d]: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	sub	rsp, 224
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -196[rbp], 4
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -184[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -180[rbp], xmm0
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -184[rbp]
	movsd	QWORD PTR -216[rbp], xmm2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -184[rbp]
	mulss	xmm0, DWORD PTR -180[rbp]
	movss	xmm1, DWORD PTR .LC1[rip]
	divss	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	call	round@PLT
	addsd	xmm0, QWORD PTR -216[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -176[rbp], eax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR [rax], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -128[rbp], rdx
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	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
.L3:
	cmp	rsp, rdx
	je	.L4
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L3
.L4:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L5
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L5:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -120[rbp], rax
	mov	rcx, QWORD PTR -168[rbp]
	mov	rax, rcx
	sub	rax, 1
	mov	QWORD PTR -112[rbp], rax
	mov	r14, rcx
	mov	r15d, 0
	imul	rdx, r15, 192
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 192
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	r12, rcx
	mov	r13d, 0
	imul	rdx, r13, 192
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 192
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rdx, rax
	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
.L6:
	cmp	rsp, rdx
	je	.L7
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L6
.L7:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L8
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L8:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -104[rbp], rax
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -96[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	QWORD PTR -160[rbp], 0
	jmp	.L9
.L11:
	mov	rax, QWORD PTR -160[rbp]
	mov	ecx, eax
	mov	rsi, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	DWORD PTR [rax], ecx
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -160[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	lea	rdi, [rcx+rax]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	lea	rdx, work[rip]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	je	.L10
	mov	edx, DWORD PTR -172[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	add	QWORD PTR -160[rbp], 1
.L9:
	mov	rax, QWORD PTR -160[rbp]
	cmp	rax, QWORD PTR -168[rbp]
	jb	.L11
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	QWORD PTR -152[rbp], 0
	jmp	.L12
.L14:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	je	.L13
	mov	edx, DWORD PTR -172[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	add	QWORD PTR -152[rbp], 1
.L12:
	mov	rax, QWORD PTR -152[rbp]
	cmp	rax, QWORD PTR -168[rbp]
	jb	.L14
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	work
	.type	work, @function
work:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	BYTE PTR -22[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	sete	al
	mov	BYTE PTR -21[rbp], al
	cmp	BYTE PTR -21[rbp], 0
	je	.L17
	mov	eax, 9
	jmp	.L18
.L17:
	mov	eax, 6
.L18:
	mov	DWORD PTR -16[rbp], eax
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	nop
	mov	edi, 0
	call	pthread_exit@PLT
.L19:
	mov	eax, 0
	call	rand_20
	cmp	DWORD PTR -16[rbp], eax
	jle	.L21
	mov	eax, 0
	call	rand_1_4
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L22
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, ecx
	mov	DWORD PTR [rax], edx
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	jmp	.L23
	.cfi_endproc
.LFE7:
	.size	work, .-work
	.globl	rand_20
	.type	rand_20, @function
rand_20:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	sal	eax, 2
	sub	edx, eax
	mov	ecx, edx
	mov	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rand_20, .-rand_20
	.globl	rand_1_4
	.type	rand_1_4, @function
rand_1_4:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rand_1_4, .-rand_1_4
	.section	.rodata
	.align 4
.LC1:
	.long	1120403456
	.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	"23575681.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error: not exactly 3 args\000"
	.global	__aeabi_d2f
	.global	__aeabi_i2d
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
.LC1:
	.ascii	"error creating thread[%d]: %d\012\000"
	.align	2
.LC2:
	.ascii	"error joining thread[%d]: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #104
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #4
	beq	.L2
	ldr	r0, .L10+4
	bl	puts
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-116]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-88]	@ float
	ldr	r0, [fp, #-92]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-92]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-88]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L10+8
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	round
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-84]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	mov	r1, #0
	ldr	r0, [fp, #-76]
	bl	pthread_mutex_init
	ldr	ip, [fp, #-104]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	lsl	r3, ip, #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, #-68]
	ldr	ip, [fp, #-104]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	lsl	r3, ip, #4
	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, #-60]
	sub	r3, fp, #52
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #52
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L3
.L5:
	ldr	r1, [fp, #-100]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-100]
	str	r1, [r3, r2, lsl #4]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-84]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-80]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-76]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r0, r2, r3
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	sub	r1, fp, #52
	ldr	r2, .L10+12
	bl	pthread_create
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-100]
	ldr	r0, .L10+16
	bl	printf
.L4:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L3:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	bcc	.L5
	sub	r3, fp, #52
	mov	r0, r3
	bl	pthread_attr_destroy
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L6
.L8:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-96]
	ldr	r0, .L10+20
	bl	printf
.L7:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L6:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	bcc	.L8
	ldr	r0, [fp, #-76]
	bl	pthread_mutex_destroy
	ldr	r0, [fp, #-76]
	bl	free
	ldr	r0, [fp, #-80]
	bl	free
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	1120403456
	.word	work
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	work
	.syntax unified
	.arm
	.fpu softvfp
	.type	work, %function
work:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-22]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	mov	r3, #9
	b	.L14
.L13:
	mov	r3, #6
.L14:
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pthread_mutex_unlock
	nop
	mov	r0, #0
	bl	pthread_exit
.L15:
	bl	rand_20
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	ble	.L17
	bl	rand_1_4
	str	r0, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L18
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L18:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-20]
	add	r2, r1, r2
	str	r2, [r3]
.L17:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	pthread_mutex_unlock
	b	.L19
	.size	work, .-work
	.align	2
	.global	rand_20
	.syntax unified
	.arm
	.fpu softvfp
	.type	rand_20, %function
rand_20:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r2, r0
	ldr	r3, .L22
	smull	r1, r3, r2, r3
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	mov	r3, r1
	mov	r0, r3
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	1717986919
	.size	rand_20, .-rand_20
	.align	2
	.global	rand_1_4
	.syntax unified
	.arm
	.fpu softvfp
	.type	rand_1_4, %function
rand_1_4:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	add	r3, r3, #1
	mov	r0, r3
	pop	{fp, pc}
	.size	rand_1_4, .-rand_1_4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
