	.file	"9512735.c"
	.intel_syntax noprefix
	.text
	.globl	work_mutex
	.bss
	.align 32
	.type	work_mutex, @object
	.size	work_mutex, 40
work_mutex:
	.zero	40
	.globl	distance
	.align 32
	.type	distance, @object
	.size	distance, 400
distance:
	.zero	400
	.globl	gas_price
	.align 32
	.type	gas_price, @object
	.size	gas_price, 400
gas_price:
	.zero	400
	.globl	cons_repeats
	.align 32
	.type	cons_repeats, @object
	.size	cons_repeats, 40
cons_repeats:
	.zero	40
	.text
	.globl	die
	.type	die, @function
die:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC0:
	.string	"pthread_mutex_init"
.LC1:
	.string	"City Distances: "
	.align 8
.LC2:
	.string	"==================================="
.LC3:
	.string	"\n\nGas Prices: "
.LC4:
	.string	"===================="
.LC5:
	.string	"Producer %lu joined.\n"
.LC6:
	.string	"Consumer %lu joined.\n"
	.text
	.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, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	esi, 0
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_init@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC0[rip]
	call	die
.L3:
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	QWORD PTR -200[rbp], 0
	jmp	.L4
.L9:
	mov	QWORD PTR -192[rbp], 0
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -200[rbp]
	cmp	rax, QWORD PTR -192[rbp]
	je	.L6
	mov	esi, 99
	mov	edi, 10
	call	random_num
	mov	edx, eax
	jmp	.L7
.L6:
	mov	edx, 0
.L7:
	mov	rcx, QWORD PTR -192[rbp]
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	mov	rcx, QWORD PTR -200[rbp]
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rax, distance[rip]
	mov	DWORD PTR [rcx+rax], edx
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -200[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, distance[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR -200[rbp]
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	mov	rcx, QWORD PTR -192[rbp]
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rax, distance[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	QWORD PTR -192[rbp], 1
.L5:
	mov	rax, QWORD PTR -192[rbp]
	cmp	rax, QWORD PTR -200[rbp]
	jb	.L8
	add	QWORD PTR -200[rbp], 1
.L4:
	cmp	QWORD PTR -200[rbp], 9
	jbe	.L9
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdx, distance[rip]
	mov	esi, 10
	mov	edi, 10
	call	print_table
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdx, gas_price[rip]
	mov	esi, 10
	mov	edi, 10
	call	print_table
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 0
	call	sleep@PLT
	mov	QWORD PTR -200[rbp], 0
	jmp	.L10
.L11:
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, cons_repeats[rip]
	mov	DWORD PTR [rdx+rax], 10
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -200[rbp]
	sal	rax, 3
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rax
	lea	rdx, thread_producer[rip]
	mov	esi, 0
	call	pthread_create@PLT
	lea	rdx, -176[rbp]
	mov	rax, QWORD PTR -200[rbp]
	sal	rax, 3
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rax
	lea	rdx, thread_consumer[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	QWORD PTR -200[rbp], 1
.L10:
	cmp	QWORD PTR -200[rbp], 9
	jbe	.L11
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	QWORD PTR -200[rbp], 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -176[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -200[rbp], 1
.L12:
	cmp	QWORD PTR -200[rbp], 9
	jbe	.L13
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.globl	random_num
	.type	random_num, @function
random_num:
.LFB8:
	.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
	mov	DWORD PTR -8[rbp], esi
	call	rand@PLT
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, edx
	sub	ecx, DWORD PTR -4[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	add	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	random_num, .-random_num
	.section	.rodata
.LC7:
	.string	"%d "
	.text
	.globl	print_table
	.type	print_table, @function
print_table:
.LFB9:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rbx, QWORD PTR -64[rbp]
	mov	rax, rbx
	sub	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	r8, rbx
	mov	r9d, 0
	mov	QWORD PTR -32[rbp], 0
	jmp	.L19
.L22:
	mov	QWORD PTR -40[rbp], 0
	jmp	.L20
.L21:
	mov	rax, rbx
	imul	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -40[rbp], 1
.L20:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L21
	mov	edi, 10
	call	putchar@PLT
	add	QWORD PTR -32[rbp], 1
.L19:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L22
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_table, .-print_table
	.section	.rodata
.LC8:
	.string	"======[PRODUCER]======"
.LC9:
	.string	"City ID: %d\n"
.LC10:
	.string	"Repeats left: %d\n"
	.align 8
.LC11:
	.string	"Gas price changed from %d to: %d\n"
.LC12:
	.string	"======================"
	.text
	.globl	thread_producer
	.type	thread_producer, @function
thread_producer:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -24[rbp], 10
	mov	DWORD PTR -20[rbp], 0
.L26:
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons_repeats[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jge	.L24
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L25
.L24:
	mov	esi, 10
	mov	edi, 1
	call	random_num
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	je	.L24
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
	sub	DWORD PTR -24[rbp], 1
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, gas_price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rcx, rax
	lea	rdx, gas_price[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	edi, 0
	call	sleep@PLT
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_unlock@PLT
.L25:
	cmp	DWORD PTR -24[rbp], 0
	jg	.L26
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE10:
	.size	thread_producer, .-thread_producer
	.section	.rodata
.LC13:
	.string	"======[CONSUMER]======"
	.align 8
.LC14:
	.string	"City %d skipped (Gas price not set yet)\n"
	.align 8
.LC15:
	.string	"City %d skipped (Gas price hasn't changed yet)\n"
.LC16:
	.string	"%d\n"
.LC18:
	.string	"Gas Prices: "
.LC21:
	.string	"Var: %.2f\n"
.LC22:
	.string	"Avg: %.2f\n"
	.align 8
.LC23:
	.string	"Max Travel Cost: %d (From %d To %d)\n"
	.text
	.globl	thread_consumer
	.type	thread_consumer, @function
thread_consumer:
.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, 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	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -40[rbp], 0
.L36:
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, gas_price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L28
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jne	.L30
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons_repeats[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons_repeats[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons_repeats[rip]
	mov	DWORD PTR [rdx+rax], ecx
	pxor	xmm0, xmm0
	movss	DWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	mov	DWORD PTR -24[rbp], 0
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons_repeats[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	je	.L32
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, distance[rip]
	mov	eax, DWORD PTR [rdx+rax]
	imul	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, gas_price[rip]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, gas_price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -32[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, gas_price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jge	.L32
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, gas_price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], eax
.L32:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, gas_price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L31:
	cmp	DWORD PTR -36[rbp], 9
	jle	.L33
	mov	edi, 10
	call	putchar@PLT
	movss	xmm0, DWORD PTR -32[rbp]
	movss	xmm1, DWORD PTR .LC19[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, gas_price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	subss	xmm0, DWORD PTR -32[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movsd	xmm0, QWORD PTR .LC20[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -28[rbp]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	add	DWORD PTR -36[rbp], 1
.L34:
	cmp	DWORD PTR -36[rbp], 9
	jle	.L35
	movss	xmm0, DWORD PTR -28[rbp]
	movss	xmm1, DWORD PTR .LC19[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -28[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC21[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -32[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 1
	call	printf@PLT
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 0
	call	sleep@PLT
	lea	rdi, work_mutex[rip]
	call	pthread_mutex_unlock@PLT
.L29:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons_repeats[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jg	.L36
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE11:
	.size	thread_consumer, .-thread_consumer
	.section	.rodata
	.align 4
.LC19:
	.long	1092616192
	.align 8
.LC20:
	.long	0
	.long	1073741824
	.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	"9512735.c"
	.text
	.comm	work_mutex,24,4
	.comm	distance,400,4
	.comm	gas_price,400,4
	.comm	cons_repeats,40,4
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	die, .-die
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pthread_mutex_init\000"
	.align	2
.LC1:
	.ascii	"City Distances: \000"
	.align	2
.LC2:
	.ascii	"===================================\000"
	.align	2
.LC3:
	.ascii	"\012\012Gas Prices: \000"
	.align	2
.LC4:
	.ascii	"====================\000"
	.align	2
.LC5:
	.ascii	"Producer %lu joined.\012\000"
	.align	2
.LC6:
	.ascii	"Consumer %lu joined.\012\000"
	.align	2
.LC7:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r1, #0
	ldr	r0, .L16+4
	bl	pthread_mutex_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L16+8
	bl	die
.L3:
	ldr	r0, .L16+4
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L4
.L9:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L5
.L8:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	beq	.L6
	mov	r1, #99
	mov	r0, #10
	bl	random_num
	mov	r2, r0
	b	.L7
.L6:
	mov	r2, #0
.L7:
	ldr	r0, .L16+12
	ldr	r1, [fp, #-96]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	ldr	r1, [fp, #-100]
	add	r3, r3, r1
	str	r2, [r0, r3, lsl #2]
	ldr	r1, .L16+12
	ldr	r2, [fp, #-96]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-100]
	add	r3, r3, r2
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L16+12
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-96]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L5:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bcc	.L8
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L4:
	ldr	r3, [fp, #-100]
	cmp	r3, #9
	bls	.L9
	ldr	r0, .L16+16
	bl	puts
	ldr	r0, .L16+20
	bl	puts
	ldr	r2, .L16+12
	mov	r1, #10
	mov	r0, #10
	bl	print_table
	ldr	r0, .L16+24
	bl	puts
	ldr	r0, .L16+28
	bl	puts
	ldr	r2, .L16+32
	mov	r1, #10
	mov	r0, #10
	bl	print_table
	mov	r0, #10
	bl	putchar
	mov	r0, #0
	bl	sleep
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L10
.L11:
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	str	r2, [r3]
	ldr	r2, .L16+36
	ldr	r3, [fp, #-100]
	mov	r1, #10
	str	r1, [r2, r3, lsl #2]
	sub	r2, fp, #48
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-92]
	ldr	r2, .L16+40
	mov	r1, #0
	bl	pthread_create
	sub	r2, fp, #88
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-92]
	ldr	r2, .L16+44
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L10:
	ldr	r3, [fp, #-100]
	cmp	r3, #9
	bls	.L11
	ldr	r0, .L16+4
	bl	pthread_mutex_unlock
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L12
.L13:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r1, [fp, #-100]
	ldr	r0, .L16+48
	bl	printf
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r1, [fp, #-100]
	ldr	r0, .L16+52
	bl	printf
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L12:
	ldr	r3, [fp, #-100]
	cmp	r3, #9
	bls	.L13
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	work_mutex
	.word	.LC0
	.word	distance
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	gas_price
	.word	cons_repeats
	.word	thread_producer
	.word	thread_consumer
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.global	__aeabi_idivmod
	.align	2
	.global	random_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_num, %function
random_num:
	@ 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]
	str	r1, [fp, #-12]
	bl	rand
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	random_num, .-random_num
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%d \000"
	.text
	.align	2
	.global	print_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_table, %function
print_table:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r4, [fp, #-36]
	mov	r3, r4
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r0, r4
	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, #0
	str	r3, [fp, #-20]
	b	.L21
.L24:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L22
.L23:
	ldr	r3, [fp, #-20]
	mul	r3, r4, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L25
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L22:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bcc	.L23
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L24
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC8
	.size	print_table, .-print_table
	.section	.rodata
	.align	2
.LC9:
	.ascii	"======[PRODUCER]======\000"
	.align	2
.LC10:
	.ascii	"City ID: %d\012\000"
	.align	2
.LC11:
	.ascii	"Repeats left: %d\012\000"
	.align	2
.LC12:
	.ascii	"Gas price changed from %d to: %d\012\000"
	.align	2
.LC13:
	.ascii	"======================\000"
	.text
	.align	2
	.global	thread_producer
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_producer, %function
thread_producer:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #10
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
.L30:
	ldr	r0, .L31
	bl	pthread_mutex_lock
	ldr	r2, .L31+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L28
	ldr	r0, .L31
	bl	pthread_mutex_unlock
	b	.L29
.L28:
	mov	r1, #10
	mov	r0, #1
	bl	random_num
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L28
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r0, .L31+8
	bl	puts
	ldr	r1, [fp, #-12]
	ldr	r0, .L31+12
	bl	printf
	ldr	r1, [fp, #-24]
	ldr	r0, .L31+16
	bl	printf
	ldr	r1, .L31+20
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L31+24
	bl	printf
	ldr	r0, .L31+28
	bl	puts
	ldr	r1, .L31+20
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r0, #0
	bl	sleep
	ldr	r0, .L31
	bl	pthread_mutex_unlock
.L29:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L30
	mov	r0, #0
	bl	pthread_exit
.L32:
	.align	2
.L31:
	.word	work_mutex
	.word	cons_repeats
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	gas_price
	.word	.LC12
	.word	.LC13
	.size	thread_producer, .-thread_producer
	.section	.rodata
	.align	2
.LC14:
	.ascii	"======[CONSUMER]======\000"
	.align	2
.LC15:
	.ascii	"City %d skipped (Gas price not set yet)\012\000"
	.align	2
.LC16:
	.ascii	"City %d skipped (Gas price hasn't changed yet)\012\000"
	.align	2
.LC17:
	.ascii	"%d\012\000"
	.align	2
.LC18:
	.ascii	"Gas Prices: \000"
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.align	2
.LC19:
	.ascii	"Var: %.2f\012\000"
	.align	2
.LC20:
	.ascii	"Avg: %.2f\012\000"
	.align	2
.LC21:
	.ascii	"Max Travel Cost: %d (From %d To %d)\012\000"
	.text
	.align	2
	.global	thread_consumer
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_consumer, %function
thread_consumer:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-48]
.L42:
	ldr	r0, .L43
	bl	pthread_mutex_lock
	ldr	r1, .L43+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L43+8
	bl	puts
	ldr	r1, [fp, #-20]
	ldr	r0, .L43+12
	bl	printf
	ldr	r0, .L43+16
	bl	puts
	ldr	r0, .L43
	bl	pthread_mutex_unlock
	mov	r0, #1
	bl	sleep
	b	.L35
.L34:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bne	.L36
	ldr	r0, .L43+8
	bl	puts
	ldr	r1, [fp, #-20]
	ldr	r0, .L43+20
	bl	printf
	ldr	r2, .L43+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L43+28
	bl	printf
	ldr	r0, .L43+16
	bl	puts
	ldr	r0, .L43
	bl	pthread_mutex_unlock
	mov	r0, #1
	bl	sleep
	b	.L35
.L36:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-48]
	ldr	r2, .L43+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, r3, #1
	ldr	r1, .L43+24
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
	mov	r3, #0
	str	r3, [fp, #-36]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, .L43+8
	bl	puts
	ldr	r1, [fp, #-20]
	ldr	r0, .L43+32
	bl	printf
	ldr	r2, .L43+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L43+36
	bl	printf
	ldr	r0, .L43+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L37
.L39:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L38
	ldr	r1, .L43+44
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-16]
	mul	r1, r2, r3
	ldr	r0, .L43+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r1, .L43+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-40]	@ float
	ldr	r1, .L43+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L38
	ldr	r1, .L43+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
.L38:
	ldr	r1, .L43+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L43+48
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L37:
	ldr	r3, [fp, #-44]
	cmp	r3, #9
	ble	.L39
	mov	r0, #10
	bl	putchar
	ldr	r1, .L43+52
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-40]	@ float
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L40
.L41:
	ldr	r1, .L43+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-40]	@ float
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	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_d2f
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L40:
	ldr	r3, [fp, #-44]
	cmp	r3, #9
	ble	.L41
	ldr	r1, .L43+52
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L43+56
	bl	printf
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L43+60
	bl	printf
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	ldr	r0, .L43+64
	bl	printf
	ldr	r0, .L43+16
	bl	puts
	mov	r0, #0
	bl	sleep
	ldr	r0, .L43
	bl	pthread_mutex_unlock
.L35:
	ldr	r2, .L43+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bgt	.L42
	mov	r0, #0
	bl	pthread_exit
.L44:
	.align	2
.L43:
	.word	work_mutex
	.word	gas_price
	.word	.LC14
	.word	.LC15
	.word	.LC13
	.word	.LC16
	.word	cons_repeats
	.word	.LC17
	.word	.LC10
	.word	.LC11
	.word	.LC18
	.word	distance
	.word	.LC8
	.word	1092616192
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	thread_consumer, .-thread_consumer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
