	.file	"extr_bmp085.c_bmp085_lua_pressure.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bmp085_lua_pressure, @function
bmp085_lua_pressure:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 1
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 50000
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	lua_isnumber@PLT
	test	rax, rax
	jne	.L8
.L2:
	mov	edi, r13d
	call	bmp085_pressure_raw@PLT
	mov	ebx, eax
	xor	eax, eax
	call	bmp085_temperature_raw_b5@PLT
	mov	rcx, QWORD PTR bmp085_data[rip+24]
	lea	edx, -4000[rax]
	mov	eax, DWORD PTR bmp085_data[rip+40]
	mov	esi, edx
	imul	esi, edx
	sar	esi, 12
	imul	eax, esi
	imul	esi, DWORD PTR bmp085_data[rip+8]
	sar	eax, 11
	mov	edi, eax
	mov	eax, DWORD PTR bmp085_data[rip+32]
	sar	esi, 16
	imul	eax, edx
	imul	edx, DWORD PTR bmp085_data[rip+16]
	sar	eax, 11
	add	eax, edi
	sar	edx, 13
	mov	rdi, rbp
	lea	eax, [rax+rcx*4]
	mov	ecx, r13d
	sal	eax, cl
	lea	ecx, 2[rdx+rsi]
	add	eax, 2
	sar	ecx, 2
	sar	eax, 2
	add	ecx, 32768
	sub	ebx, eax
	imul	ecx, DWORD PTR bmp085_data[rip]
	mov	eax, ebx
	imul	eax, r12d
	sar	ecx, 15
	cdq
	idiv	ecx
	add	eax, eax
	mov	edx, eax
	imul	ecx, eax, -7357
	sar	edx, 8
	imul	edx, edx
	sar	ecx, 16
	imul	edx, edx, 3038
	sar	edx, 16
	lea	esi, 3791[rcx+rdx]
	sar	esi, 4
	add	esi, eax
	call	lua_pushinteger@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	mov	r13d, 3
	call	luaL_checkinteger@PLT
	cmp	eax, 3
	cmovle	r13d, eax
	mov	ecx, r13d
	sar	r12d, cl
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	bmp085_lua_pressure, .-bmp085_lua_pressure
	.comm	bmp085_data,48,32
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bmp085.c_bmp085_lua_pressure.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bmp085_lua_pressure, %function
bmp085_lua_pressure:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #1
	mov	r4, r0
	bl	lua_isnumber
	subs	r7, r0, #0
	ldreq	r6, .L7
	bne	.L6
.L2:
	mov	r0, r7
	bl	bmp085_pressure_raw
	mov	r5, r0
	bl	bmp085_temperature_raw_b5
	sub	r3, r0, #4000
	mul	ip, r3, r3
	ldr	r2, .L7+4
	asr	ip, ip, #12
	ldmib	r2, {r1, lr}
	mul	r1, ip, r1
	mul	lr, r3, lr
	ldr	r0, [r2, #16]
	ldr	r8, [r2, #20]
	mul	r3, r0, r3
	mul	ip, r8, ip
	asr	r1, r1, #16
	add	r1, r1, lr, asr #13
	add	r1, r1, #2
	ldr	r0, [r2, #12]
	asr	r3, r3, #11
	ldr	r2, [r2]
	asr	r1, r1, #2
	add	r3, r3, ip, asr #11
	add	r1, r1, #32768
	mul	r1, r2, r1
	add	r3, r3, r0, lsl #2
	lsl	r3, r3, r7
	add	r3, r3, #2
	sub	r0, r5, r3, asr #2
	mul	r0, r6, r0
	asr	r1, r1, #15
	bl	__aeabi_idiv
	lsl	r1, r0, #1
	asr	r2, r1, #8
	mov	r3, r2
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L7+8
	rsb	r2, r2, r2, lsl #3
	mul	r0, r3, r1
	rsb	r2, r2, r2, lsl #3
	rsb	r3, r2, r2, lsl #5
	lsl	r3, r3, #1
	asr	r3, r3, #16
	add	r3, r3, r0, asr #16
	add	r3, r3, #3776
	add	r3, r3, #15
	mov	r0, r4
	add	r1, r1, r3, asr #4
	bl	lua_pushinteger
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, #1
	mov	r0, r4
	bl	luaL_checkinteger
	cmp	r0, #3
	movlt	r7, r0
	movge	r7, #3
	ldr	r6, .L7
	asr	r6, r6, r7
	b	.L2
.L8:
	.align	2
.L7:
	.word	50000
	.word	bmp085_data
	.word	-7357
	.size	bmp085_lua_pressure, .-bmp085_lua_pressure
	.comm	bmp085_data,24,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
