	.file	"502917.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"error creating broker[%d]: %d\n"
.LC1:
	.string	"error creating exchange: %d\n"
.LC2:
	.string	"error joining exchange: %d\n"
.LC3:
	.string	"error joining broker[%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
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1408
	mov	DWORD PTR -5492[rbp], edi
	mov	QWORD PTR -5504[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -5477[rbp], 0
	lea	rax, -5408[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -5408[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	lea	rdx, -5344[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	BYTE PTR -5256[rbp], 65
	mov	DWORD PTR -5252[rbp], 100
	mov	DWORD PTR -5248[rbp], 40
	lea	rdx, -5240[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	BYTE PTR -5152[rbp], 66
	mov	DWORD PTR -5148[rbp], 200
	mov	DWORD PTR -5144[rbp], 150
	lea	rdx, -5136[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	BYTE PTR -5048[rbp], 67
	mov	DWORD PTR -5044[rbp], 150
	mov	DWORD PTR -5040[rbp], 40
	lea	rdx, -5032[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	BYTE PTR -4944[rbp], 68
	mov	DWORD PTR -4940[rbp], 240
	mov	DWORD PTR -4936[rbp], 100
	lea	rdx, -4928[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	BYTE PTR -4840[rbp], 69
	mov	DWORD PTR -4836[rbp], 300
	mov	DWORD PTR -4832[rbp], 200
	mov	QWORD PTR -5456[rbp], 0
	jmp	.L2
.L3:
	lea	rcx, -5344[rbp]
	mov	rdx, QWORD PTR -5456[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, 48
	add	rax, rcx
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	lea	rcx, -5344[rbp]
	mov	rdx, QWORD PTR -5456[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	add	QWORD PTR -5456[rbp], 1
.L2:
	cmp	QWORD PTR -5456[rbp], 4
	jbe	.L3
	mov	QWORD PTR -5448[rbp], 0
	jmp	.L4
.L5:
	mov	rcx, QWORD PTR -5448[rbp]
	movabs	rdx, -3689348814741910323
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	mov	DWORD PTR -5472[rbp], eax
	mov	rax, QWORD PTR -5448[rbp]
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	add	eax, 1
	mov	DWORD PTR -5468[rbp], eax
	mov	rdx, QWORD PTR -5448[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	lea	rdx, -4008[rax]
	lea	rax, -5477[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rcx, -5344[rbp]
	mov	eax, DWORD PTR -5472[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rdx, QWORD PTR -5448[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 4000
	mov	QWORD PTR [rax], rcx
	mov	eax, DWORD PTR -5472[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 5252
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -5468[rbp]
	add	edx, 1
	sub	eax, edx
	mov	ecx, eax
	mov	rdx, QWORD PTR -5448[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 3992
	mov	DWORD PTR [rax], ecx
	mov	rdx, QWORD PTR -5448[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 3988
	mov	DWORD PTR [rax], 5
	mov	eax, DWORD PTR -5472[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 5252
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -5468[rbp]
	add	eax, 1
	lea	ecx, [rdx+rax]
	mov	rdx, QWORD PTR -5448[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 3984
	mov	DWORD PTR [rax], ecx
	mov	rdx, QWORD PTR -5448[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 3980
	mov	DWORD PTR [rax], 5
	add	QWORD PTR -5448[rbp], 1
.L4:
	cmp	QWORD PTR -5448[rbp], 99
	jbe	.L5
	lea	rax, -5344[rbp]
	mov	QWORD PTR -5416[rbp], rax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	QWORD PTR -5440[rbp], 0
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -5440[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -5440[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 4016
	mov	DWORD PTR [rax], ecx
	lea	rcx, -4016[rbp]
	mov	rdx, QWORD PTR -5440[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	lea	rcx, -4816[rbp]
	mov	rax, QWORD PTR -5440[rbp]
	sal	rax, 3
	lea	rdi, [rcx+rax]
	lea	rax, -5408[rbp]
	mov	rcx, rdx
	lea	rdx, thread_broker[rip]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -5476[rbp], eax
	cmp	DWORD PTR -5476[rbp], 0
	je	.L7
	mov	edx, DWORD PTR -5476[rbp]
	mov	rax, QWORD PTR -5440[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	add	QWORD PTR -5440[rbp], 1
.L6:
	cmp	QWORD PTR -5440[rbp], 99
	jbe	.L8
	mov	rax, QWORD PTR -5440[rbp]
	mov	DWORD PTR -5424[rbp], eax
	lea	rdx, -5424[rbp]
	lea	rsi, -5408[rbp]
	lea	rax, -5464[rbp]
	mov	rcx, rdx
	lea	rdx, thread_exchange[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -5476[rbp], eax
	cmp	DWORD PTR -5476[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -5476[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	lea	rax, -5408[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	rax, QWORD PTR -5464[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -5476[rbp], eax
	cmp	DWORD PTR -5476[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -5476[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	BYTE PTR -5477[rbp], 1
	mov	QWORD PTR -5440[rbp], 0
	jmp	.L11
.L12:
	lea	rcx, -5344[rbp]
	mov	rdx, QWORD PTR -5440[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, 48
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	lea	rcx, -5344[rbp]
	mov	rdx, QWORD PTR -5440[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	lea	rcx, -5344[rbp]
	mov	rdx, QWORD PTR -5440[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, 48
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	add	QWORD PTR -5440[rbp], 1
.L11:
	cmp	QWORD PTR -5440[rbp], 4
	jbe	.L12
	mov	QWORD PTR -5432[rbp], 0
	jmp	.L13
.L15:
	mov	rax, QWORD PTR -5432[rbp]
	mov	rax, QWORD PTR -4816[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -5476[rbp], eax
	cmp	DWORD PTR -5476[rbp], 0
	je	.L14
	mov	edx, DWORD PTR -5476[rbp]
	mov	rax, QWORD PTR -5432[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	add	QWORD PTR -5432[rbp], 1
.L13:
	cmp	QWORD PTR -5432[rbp], 99
	jbe	.L15
	mov	QWORD PTR -5440[rbp], 0
	jmp	.L16
.L17:
	lea	rcx, -5344[rbp]
	mov	rdx, QWORD PTR -5440[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, 48
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	lea	rcx, -5344[rbp]
	mov	rdx, QWORD PTR -5440[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	add	QWORD PTR -5440[rbp], 1
.L16:
	cmp	QWORD PTR -5440[rbp], 4
	jbe	.L17
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	thread_broker
	.type	thread_broker, @function
thread_broker:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 36[rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 48
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 48[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
	jmp	.L21
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 92[rax]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L22
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 96[rax]
	test	eax, eax
	jle	.L22
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 96[rax]
	cmp	DWORD PTR -32[rbp], eax
	cmovle	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 96[rax]
	sub	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 96[rax], edx
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 92[rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L23
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 96[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 96[rax], edx
.L23:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 48[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR [rax]
	xor	eax, 1
	test	al, al
	jne	.L24
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 48
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	thread_broker, .-thread_broker
	.globl	thread_exchange
	.type	thread_exchange, @function
thread_exchange:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L26
.L27:
	movss	xmm1, DWORD PTR .LC4[rip]
	movss	xmm0, DWORD PTR .LC5[rip]
	mov	edi, 10
	call	price_var
	movd	ebx, xmm0
	mov	edi, 3
	call	one_in
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movd	xmm0, ebx
	mov	esi, edx
	mov	rdi, rax
	call	update_stock
	movss	xmm1, DWORD PTR .LC4[rip]
	movss	xmm0, DWORD PTR .LC6[rip]
	mov	edi, 12
	call	price_var
	movd	ebx, xmm0
	mov	edi, 7
	call	one_in
	movzx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 104
	movd	xmm0, ebx
	mov	esi, eax
	mov	rdi, rdx
	call	update_stock
	movss	xmm1, DWORD PTR .LC7[rip]
	movss	xmm0, DWORD PTR .LC8[rip]
	mov	edi, 7
	call	price_var
	movd	ebx, xmm0
	mov	edi, 6
	call	one_in
	movzx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 208
	movd	xmm0, ebx
	mov	esi, eax
	mov	rdi, rdx
	call	update_stock
	movss	xmm1, DWORD PTR .LC9[rip]
	movss	xmm0, DWORD PTR .LC6[rip]
	mov	edi, 8
	call	price_var
	movd	ebx, xmm0
	mov	edi, 2
	call	one_in
	movzx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 312
	movd	xmm0, ebx
	mov	esi, eax
	mov	rdi, rdx
	call	update_stock
	movss	xmm1, DWORD PTR .LC10[rip]
	movss	xmm0, DWORD PTR .LC11[rip]
	mov	edi, 8
	call	price_var
	movd	ebx, xmm0
	mov	edi, 4
	call	one_in
	movzx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 416
	movd	xmm0, ebx
	mov	esi, eax
	mov	rdi, rdx
	call	update_stock
	add	DWORD PTR -36[rbp], 1
.L26:
	cmp	DWORD PTR -36[rbp], 9999
	jle	.L27
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	thread_exchange, .-thread_exchange
	.globl	update_stock
	.type	update_stock, @function
update_stock:
.LFB9:
	.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, esi
	movss	DWORD PTR -16[rbp], xmm0
	mov	BYTE PTR -12[rbp], al
	cmp	BYTE PTR -12[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 92[rax]
	cmp	eax, 100
	jle	.L30
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 92[rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	addss	xmm0, DWORD PTR -16[rbp]
	cvttss2si	edx, xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 92[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 48
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 48
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
.L30:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	update_stock, .-update_stock
	.globl	one_in
	.type	one_in, @function
one_in:
.LFB10:
	.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	DWORD PTR -4[rbp], edi
	call	rand@PLT
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	test	eax, eax
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	one_in, .-one_in
	.globl	price_var
	.type	price_var, @function
price_var:
.LFB11:
	.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	DWORD PTR -4[rbp], edi
	movss	DWORD PTR -8[rbp], xmm0
	movss	DWORD PTR -12[rbp], xmm1
	call	rand@PLT
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movaps	xmm1, xmm0
	subss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC12[rip]
	mulss	xmm0, xmm1
	divss	xmm0, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	price_var, .-price_var
	.section	.rodata
	.align 4
.LC4:
	.long	1075000115
	.align 4
.LC5:
	.long	1080452710
	.align 4
.LC6:
	.long	1084227584
	.align 4
.LC7:
	.long	1074161254
	.align 4
.LC8:
	.long	1065353216
	.align 4
.LC9:
	.long	1072064102
	.align 4
.LC10:
	.long	1068708659
	.align 4
.LC11:
	.long	1073741824
	.align 4
.LC12:
	.long	1092616192
	.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	"502917.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error creating broker[%d]: %d\012\000"
	.align	2
.LC1:
	.ascii	"error creating exchange: %d\012\000"
	.align	2
.LC2:
	.ascii	"error joining exchange: %d\012\000"
	.align	2
.LC3:
	.ascii	"error joining broker[%d]: %d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3736
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3728
	sub	sp, sp, #8
	str	r0, [fp, #-3736]
	str	r1, [fp, #-3740]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-3729]
	sub	r3, fp, #3680
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #3680
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	sub	r3, fp, #3248
	sub	r3, r3, #4
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #65
	strb	r3, [fp, #-3180]
	mov	r3, #100
	str	r3, [fp, #-3176]
	mov	r3, #40
	str	r3, [fp, #-3172]
	sub	r3, fp, #3152
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #66
	strb	r3, [fp, #-3092]
	mov	r3, #200
	str	r3, [fp, #-3088]
	mov	r3, #150
	str	r3, [fp, #-3084]
	sub	r3, fp, #3072
	sub	r3, r3, #4
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #67
	strb	r3, [fp, #-3004]
	mov	r3, #150
	str	r3, [fp, #-3000]
	mov	r3, #40
	str	r3, [fp, #-2996]
	sub	r3, fp, #2976
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #68
	strb	r3, [fp, #-2916]
	mov	r3, #240
	str	r3, [fp, #-2912]
	mov	r3, #100
	str	r3, [fp, #-2908]
	sub	r3, fp, #2896
	sub	r3, r3, #4
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #69
	strb	r3, [fp, #-2828]
	mov	r3, #300
	str	r3, [fp, #-2824]
	mov	r3, #200
	str	r3, [fp, #-2820]
	mov	r3, #0
	str	r3, [fp, #-3724]
	b	.L2
.L3:
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3724]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #48
	add	r3, r1, r3
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3724]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	ldr	r3, [fp, #-3724]
	add	r3, r3, #1
	str	r3, [fp, #-3724]
.L2:
	ldr	r3, [fp, #-3724]
	cmp	r3, #4
	bls	.L3
	mov	r3, #0
	str	r3, [fp, #-3720]
	b	.L4
.L5:
	ldr	r1, [fp, #-3720]
	ldr	r3, .L20+4
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [fp, #-3704]
	ldr	r3, [fp, #-3720]
	ldr	r2, .L20+4
	umull	r1, r3, r2, r3
	lsr	r3, r3, #2
	add	r3, r3, #1
	str	r3, [fp, #-3700]
	ldr	r2, [fp, #-3720]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2800
	sub	r3, r3, #4
	sub	r2, fp, #3712
	sub	r2, r2, #4
	sub	r2, r2, #13
	str	r2, [r3]
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3704]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	ldr	r2, [fp, #-3720]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2800
	str	r1, [r3]
	ldr	r2, [fp, #-3704]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #3168
	sub	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-3700]
	add	r3, r3, #1
	sub	r1, r2, r3
	ldr	r2, [fp, #-3720]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2784
	sub	r3, r3, #12
	str	r1, [r3]
	ldr	r2, [fp, #-3720]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2784
	sub	r3, r3, #8
	mov	r2, #5
	str	r2, [r3]
	ldr	r2, [fp, #-3704]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #3168
	sub	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-3700]
	add	r3, r3, #1
	add	r1, r2, r3
	ldr	r2, [fp, #-3720]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2784
	sub	r3, r3, #4
	str	r1, [r3]
	ldr	r2, [fp, #-3720]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2784
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-3720]
	add	r3, r3, #1
	str	r3, [fp, #-3720]
.L4:
	ldr	r3, [fp, #-3720]
	cmp	r3, #99
	bls	.L5
	sub	r3, fp, #3248
	sub	r3, r3, #4
	str	r3, [fp, #-3692]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-3716]
	b	.L6
.L8:
	ldr	r1, [fp, #-3716]
	ldr	r2, [fp, #-3716]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #2800
	sub	r3, r3, #8
	str	r1, [r3]
	sub	r2, fp, #3648
	sub	r2, r2, #4
	ldr	r3, [fp, #-3716]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #2800
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldr	r1, [fp, #-3716]
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r1, fp, #3680
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, .L20+8
	bl	pthread_create
	str	r0, [fp, #-3708]
	ldr	r3, [fp, #-3708]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-3708]
	ldr	r1, [fp, #-3716]
	ldr	r0, .L20+12
	bl	printf
.L7:
	ldr	r3, [fp, #-3716]
	add	r3, r3, #1
	str	r3, [fp, #-3716]
.L6:
	ldr	r3, [fp, #-3716]
	cmp	r3, #99
	bls	.L8
	ldr	r3, [fp, #-3716]
	str	r3, [fp, #-3696]
	sub	r3, fp, #3680
	sub	r3, r3, #4
	sub	r3, r3, #12
	sub	r1, fp, #3680
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r0, fp, #3712
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r2, .L20+16
	bl	pthread_create
	str	r0, [fp, #-3708]
	ldr	r3, [fp, #-3708]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [fp, #-3708]
	ldr	r0, .L20+20
	bl	printf
.L9:
	sub	r3, fp, #3680
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	pthread_attr_destroy
	ldr	r3, [fp, #-3728]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-3708]
	ldr	r3, [fp, #-3708]
	cmp	r3, #0
	beq	.L10
	ldr	r1, [fp, #-3708]
	ldr	r0, .L20+24
	bl	printf
.L10:
	mov	r3, #1
	strb	r3, [fp, #-3729]
	mov	r3, #0
	str	r3, [fp, #-3716]
	b	.L11
.L12:
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3716]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #48
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_lock
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3716]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_cond_broadcast
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3716]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #48
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-3716]
	add	r3, r3, #1
	str	r3, [fp, #-3716]
.L11:
	ldr	r3, [fp, #-3716]
	cmp	r3, #4
	bls	.L12
	mov	r3, #0
	str	r3, [fp, #-3712]
	b	.L13
.L15:
	ldr	r3, [fp, #-3712]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-3648]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-3708]
	ldr	r3, [fp, #-3708]
	cmp	r3, #0
	beq	.L14
	ldr	r2, [fp, #-3708]
	ldr	r1, [fp, #-3712]
	ldr	r0, .L20+28
	bl	printf
.L14:
	ldr	r3, [fp, #-3712]
	add	r3, r3, #1
	str	r3, [fp, #-3712]
.L13:
	ldr	r3, [fp, #-3712]
	cmp	r3, #99
	bls	.L15
	mov	r3, #0
	str	r3, [fp, #-3716]
	b	.L16
.L17:
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3716]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #48
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_destroy
	sub	r1, fp, #3248
	sub	r1, r1, #4
	ldr	r2, [fp, #-3716]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_cond_destroy
	ldr	r3, [fp, #-3716]
	add	r3, r3, #1
	str	r3, [fp, #-3716]
.L16:
	ldr	r3, [fp, #-3716]
	cmp	r3, #4
	bls	.L17
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	-858993459
	.word	thread_broker
	.word	.LC0
	.word	thread_exchange
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	thread_broker
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_broker, %function
thread_broker:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r3, r3, #48
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
	b	.L23
.L26:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #76]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L24
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #80]
	cmp	r3, #0
	ble	.L24
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #80]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #80]
	ldr	r3, [fp, #-20]
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3, #80]
	b	.L25
.L24:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #76]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L25
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3, #80]
.L25:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r3, r3, #48
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
.L23:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-36]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	pthread_exit
	.size	thread_broker, .-thread_broker
	.align	2
	.global	thread_exchange
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_exchange, %function
thread_exchange:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L28
.L29:
	mov	r0, #3
	bl	one_in
	mov	r3, r0
	mov	r4, r3
	ldr	r2, .L30
	ldr	r1, .L30+4
	mov	r0, #10
	bl	price_var
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-16]
	bl	update_stock
	ldr	r3, [fp, #-16]
	add	r4, r3, #88
	mov	r0, #7
	bl	one_in
	mov	r3, r0
	mov	r5, r3
	ldr	r2, .L30
	ldr	r1, .L30+8
	mov	r0, #12
	bl	price_var
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	update_stock
	ldr	r3, [fp, #-16]
	add	r4, r3, #176
	mov	r0, #6
	bl	one_in
	mov	r3, r0
	mov	r5, r3
	ldr	r2, .L30+12
	mov	r1, #1065353216
	mov	r0, #7
	bl	price_var
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	update_stock
	ldr	r3, [fp, #-16]
	add	r4, r3, #264
	mov	r0, #2
	bl	one_in
	mov	r3, r0
	mov	r5, r3
	ldr	r2, .L30+16
	ldr	r1, .L30+8
	mov	r0, #8
	bl	price_var
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	update_stock
	ldr	r3, [fp, #-16]
	add	r4, r3, #352
	mov	r0, #4
	bl	one_in
	mov	r3, r0
	mov	r5, r3
	ldr	r2, .L30+20
	mov	r1, #1073741824
	mov	r0, #8
	bl	price_var
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	update_stock
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L28:
	ldr	r3, [fp, #-24]
	ldr	r2, .L30+24
	cmp	r3, r2
	ble	.L29
	mov	r0, #0
	bl	pthread_exit
.L31:
	.align	2
.L30:
	.word	1075000115
	.word	1080452710
	.word	1084227584
	.word	1074161254
	.word	1072064102
	.word	1068708659
	.word	9999
	.size	thread_exchange, .-thread_exchange
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_f2iz
	.align	2
	.global	update_stock
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_stock, %function
update_stock:
	@ 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, #-8]
	mov	r3, r1
	str	r2, [fp, #-16]	@ float
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #76]
	cmp	r3, #100
	ble	.L34
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #76]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #76]
	ldr	r3, [fp, #-8]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	pthread_cond_broadcast
	ldr	r3, [fp, #-8]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_unlock
.L34:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	update_stock, .-update_stock
	.global	__aeabi_idivmod
	.align	2
	.global	one_in
	.syntax unified
	.arm
	.fpu softvfp
	.type	one_in, %function
one_in:
	@ 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]
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	one_in, .-one_in
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.align	2
	.global	price_var
	.syntax unified
	.arm
	.fpu softvfp
	.type	price_var, %function
price_var:
	@ 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, #-8]
	str	r1, [fp, #-12]	@ float
	str	r2, [fp, #-16]	@ float
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	ldr	r1, .L39
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	1092616192
	.size	price_var, .-price_var
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
