	.file	"extr_i2c-stm32f4.c_stm32f4_i2c_xfer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to enable clock\n"
	.text
	.p2align 4
	.type	stm32f4_i2c_xfer, @function
stm32f4_i2c_xfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	i2c_get_adapdata@PLT
	mov	edi, DWORD PTR [rax]
	mov	r13, rax
	call	clk_enable@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L2
	lea	r14d, -1[rbp]
	test	ebp, ebp
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L6:
	xor	ecx, ecx
	cmp	ebx, r14d
	mov	rsi, r15
	mov	rdi, r13
	sete	cl
	xor	edx, edx
	test	ebx, ebx
	sete	dl
	add	ebx, 1
	add	r15, 4
	call	stm32f4_i2c_xfer_msg@PLT
	mov	r12d, eax
	cmp	ebp, ebx
	jle	.L8
	test	eax, eax
	je	.L6
.L8:
	mov	edi, DWORD PTR 0[r13]
	call	clk_disable@PLT
	test	r12d, r12d
	js	.L1
.L9:
	mov	r12d, ebp
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r13]
	lea	rsi, .LC0[rip]
	mov	r12d, ebx
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR 0[r13]
	call	clk_disable@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	stm32f4_i2c_xfer, .-stm32f4_i2c_xfer
	.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_i2c-stm32f4.c_stm32f4_i2c_xfer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to enable clock\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm32f4_i2c_xfer, %function
stm32f4_i2c_xfer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r8, r2
	bl	i2c_get_adapdata
	mov	r7, r0
	ldr	r0, [r0]
	bl	clk_enable
	subs	r4, r0, #0
	bne	.L2
	cmp	r8, #0
	subgt	r9, r8, #1
	ble	.L14
.L6:
	sub	r3, r4, r9
	clz	r2, r4
	clz	r3, r3
	mov	r1, r6
	lsr	r3, r3, #5
	mov	r0, r7
	lsr	r2, r2, #5
	bl	stm32f4_i2c_xfer_msg
	add	r4, r4, #1
	cmp	r8, r4
	movle	r3, #0
	movgt	r3, #1
	cmp	r0, #0
	movne	r3, #0
	cmp	r3, #0
	mov	r5, r0
	add	r6, r6, #4
	bne	.L6
	ldr	r0, [r7]
	bl	clk_disable
	cmp	r5, #0
	blt	.L1
.L8:
	mov	r5, r8
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r5, r4
	ldr	r0, [r7, #4]
	ldr	r1, .L15
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r0, [r7]
	bl	clk_disable
	b	.L8
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	stm32f4_i2c_xfer, .-stm32f4_i2c_xfer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
