	.file	"extr_max6690.c_max6690_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"iicbus read failed\n"
.LC1:
	.string	"max6690_read"
	.text
	.p2align 4
	.type	max6690_read, @function
max6690_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC1[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, 6
	sub	rsp, 160
	.cfi_def_cfa_offset 208
	mov	DWORD PTR 12[rsp], edx
	lea	rdx, 24[rsp]
	lea	rcx, 28[rsp]
	lea	r12, 48[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX6690_RSL_STATUS[rip]
	mov	DWORD PTR 64[rsp], edx
	mov	edx, DWORD PTR IIC_M_RD[rip]
	mov	DWORD PTR 48[rsp], esi
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR IIC_M_WR[rip]
	or	eax, DWORD PTR IIC_M_NOSTOP[rip]
	mov	DWORD PTR 72[rsp], esi
	mov	DWORD PTR 52[rsp], eax
	mov	DWORD PTR 100[rsp], eax
	lea	rax, 12[rsp]
	mov	DWORD PTR 112[rsp], eax
	lea	rax, 32[rsp]
	mov	QWORD PTR 56[rsp], 1
	mov	DWORD PTR 76[rsp], edx
	mov	QWORD PTR 80[rsp], 1
	mov	DWORD PTR 88[rsp], ecx
	mov	DWORD PTR 96[rsp], esi
	mov	QWORD PTR 104[rsp], 1
	mov	DWORD PTR 120[rsp], esi
	mov	DWORD PTR 124[rsp], edx
	mov	QWORD PTR 128[rsp], 1
	mov	DWORD PTR 136[rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR hz[rip]
	mov	rdi, r13
	call	pause@PLT
.L5:
	mov	edx, 4
	mov	rsi, r12
	mov	edi, ebp
	call	iicbus_transfer@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR 28[rsp]
	and	eax, 128
	or	eax, r8d
	jne	.L2
	mov	edx, DWORD PTR 32[rsp]
	cmp	edx, 255
	jne	.L12
.L2:
	sub	ebx, 1
	jne	.L4
	lea	rsi, .LC0[rip]
	mov	edi, ebp
	call	device_printf@PLT
	mov	eax, -1
.L1:
	mov	rcx, QWORD PTR 152[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 160
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L12:
	.cfi_restore_state
	mov	DWORD PTR [r14], edx
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	max6690_read, .-max6690_read
	.comm	hz,4,4
	.comm	MAX6690_RSL_STATUS,4,4
	.comm	IIC_M_WR,4,4
	.comm	IIC_M_RD,4,4
	.comm	IIC_M_NOSTOP,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_max6690.c_max6690_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iicbus read failed\012\000"
	.align	2
.LC1:
	.ascii	"max6690_read\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max6690_read, %function
max6690_read:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r8, r3
	ldr	r0, .L14
	ldr	r3, .L14+4
	sub	sp, sp, #104
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	ldr	lr, [r0]
	ldr	r3, .L14+8
	ldr	r0, .L14+12
	ldr	r3, [r3]
	ldr	r6, [r0]
	ldr	r0, .L14+16
	orr	r3, r3, lr
	ldr	r0, [r0]
	str	r1, [sp, #36]
	str	r1, [sp, #52]
	str	r1, [sp, #68]
	str	r1, [sp, #84]
	str	r2, [sp, #4]
	str	r3, [sp, #40]
	str	r3, [sp, #72]
	add	lr, sp, #12
	add	r1, sp, #16
	add	r2, sp, #4
	add	r3, sp, #20
	str	r6, [sp, #12]
	mov	r4, #6
	ldr	r7, .L14+20
	ldr	r6, .L14+24
	str	r0, [sp, #56]
	str	r0, [sp, #88]
	str	ip, [sp, #44]
	str	ip, [sp, #60]
	str	ip, [sp, #76]
	str	ip, [sp, #92]
	str	lr, [sp, #48]
	str	r1, [sp, #64]
	str	r2, [sp, #80]
	str	r3, [sp, #96]
	b	.L5
.L4:
	mov	r0, r6
	ldr	r1, [r7]
	bl	pause
.L5:
	mov	r2, #4
	mov	r0, r5
	add	r1, sp, #36
	bl	iicbus_transfer
	ldr	r2, [sp, #16]
	and	r2, r2, #128
	orrs	r0, r2, r0
	bne	.L2
	ldr	r3, [sp, #20]
	cmp	r3, #255
	bne	.L12
.L2:
	subs	r4, r4, #1
	bne	.L4
	mov	r0, r5
	ldr	r1, .L14+28
	bl	device_printf
	mvn	r0, #0
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #104
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	str	r3, [r8]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	IIC_M_NOSTOP
	.word	.LC2
	.word	IIC_M_WR
	.word	MAX6690_RSL_STATUS
	.word	IIC_M_RD
	.word	hz
	.word	.LC1
	.word	.LC0
	.size	max6690_read, .-max6690_read
	.comm	hz,4,4
	.comm	MAX6690_RSL_STATUS,4,4
	.comm	IIC_M_WR,4,4
	.comm	IIC_M_RD,4,4
	.comm	IIC_M_NOSTOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
