	.file	"extr_mb1232.c_mb1232_read_distance.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"write command - err: %d\n"
.LC1:
	.string	"i2c_master_recv: ret=%d\n"
.LC2:
	.string	"distance=%d\n"
	.text
	.p2align 4
	.type	mb1232_read_distance, @function
mb1232_read_distance:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	lea	r14, 12[rbx]
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 16[rdi]
	mov	rdi, r13
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	mutex_lock@PLT
	mov	rdi, r14
	call	reinit_completion@PLT
	mov	esi, DWORD PTR MB1232_RANGE_COMMAND[rip]
	mov	rdi, rbp
	call	i2c_smbus_write_byte@PLT
	test	eax, eax
	js	.L12
	cmp	QWORD PTR [rbx], 0
	js	.L4
	movsx	rsi, DWORD PTR HZ[rip]
	mov	rdi, r14
	mov	rax, rsi
	imul	rsi, rsi, 1717986919
	sar	eax, 31
	sar	rsi, 34
	sub	esi, eax
	call	wait_for_completion_killable_timeout@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	je	.L13
.L5:
	lea	rsi, 4[rsp]
	mov	edx, 4
	mov	rdi, rbp
	call	i2c_master_recv@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
	mov	edi, DWORD PTR 4[rsp]
	call	__be16_to_cpu@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
.L3:
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, 15
	call	msleep@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
	jmp	.L3
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mb1232_read_distance, .-mb1232_read_distance
	.comm	MB1232_RANGE_COMMAND,4,4
	.comm	HZ,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EINVAL,4,4
	.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_mb1232.c_mb1232_read_distance.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"write command - err: %d\012\000"
	.align	2
.LC1:
	.ascii	"i2c_master_recv: ret=%d\012\000"
	.align	2
.LC2:
	.ascii	"distance=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mb1232_read_distance, %function
mb1232_read_distance:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r3, .L17
	add	r5, r0, #4
	sub	sp, sp, #8
	mov	r0, r5
	add	r8, r6, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r7, [r6, #12]
	bl	mutex_lock
	mov	r0, r8
	bl	reinit_completion
	ldr	r3, .L17+4
	mov	r0, r7
	ldr	r1, [r3]
	bl	i2c_smbus_write_byte
	subs	r4, r0, #0
	blt	.L12
	ldr	r3, [r6]
	cmp	r3, #0
	blt	.L4
	ldr	r3, .L17+8
	ldr	r1, .L17+12
	ldr	r3, [r3]
	mov	r0, r8
	smull	r2, r1, r3, r1
	asr	r3, r3, #31
	rsb	r1, r3, r1, asr #2
	bl	wait_for_completion_killable_timeout
	subs	r4, r0, #0
	blt	.L3
	beq	.L13
.L5:
	mov	r2, #4
	mov	r1, sp
	mov	r0, r7
	bl	i2c_master_recv
	subs	r4, r0, #0
	blt	.L14
	ldr	r0, [sp]
	bl	__be16_to_cpu
	subs	r4, r0, #0
	blt	.L15
.L3:
	mov	r0, r5
	bl	mutex_unlock
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, #15
	bl	msleep
	b	.L5
.L15:
	mov	r2, r4
	mov	r0, r7
	ldr	r1, .L17+16
	bl	dev_err
	ldr	r3, .L17+20
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L3
.L14:
	mov	r0, r7
	mov	r2, r4
	ldr	r1, .L17+24
	bl	dev_err
	b	.L3
.L12:
	mov	r0, r7
	mov	r2, r4
	ldr	r1, .L17+28
	bl	dev_err
	b	.L3
.L13:
	ldr	r3, .L17+32
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L3
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	MB1232_RANGE_COMMAND
	.word	HZ
	.word	1717986919
	.word	.LC2
	.word	EINVAL
	.word	.LC1
	.word	.LC0
	.word	ETIMEDOUT
	.size	mb1232_read_distance, .-mb1232_read_distance
	.comm	MB1232_RANGE_COMMAND,4,4
	.comm	HZ,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
