	.file	"extr_i2c-stm32f4.c_stm32f4_i2c_set_rise_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stm32f4_i2c_set_rise_time, @function
stm32f4_i2c_set_rise_time:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 16[rdi]
	mov	esi, DWORD PTR HZ_TO_MHZ[rip]
	call	DIV_ROUND_UP@PLT
	mov	rcx, QWORD PTR STM32_I2C_SPEED_STANDARD[rip]
	cmp	QWORD PTR [rbx], rcx
	je	.L5
	lea	edx, [rax+rax*2]
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1717986919
	sar	rax, 34
	sub	eax, edx
.L5:
	lea	edi, 1[rax]
	mov	rbp, QWORD PTR STM32F4_I2C_TRISE[rip]
	add	rbp, QWORD PTR 8[rbx]
	call	STM32F4_I2C_TRISE_VALUE@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	writel_relaxed@PLT
	.cfi_endproc
.LFE0:
	.size	stm32f4_i2c_set_rise_time, .-stm32f4_i2c_set_rise_time
	.comm	STM32_I2C_SPEED_STANDARD,8,8
	.comm	STM32F4_I2C_TRISE,8,8
	.comm	HZ_TO_MHZ,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_i2c-stm32f4.c_stm32f4_i2c_set_rise_time.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm32f4_i2c_set_rise_time, %function
stm32f4_i2c_set_rise_time:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L6
	ldr	r0, [r0, #8]
	ldr	r1, [r3]
	bl	DIV_ROUND_UP
	ldr	r3, .L6+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	ldrne	r3, .L6+8
	addne	r0, r0, r0, lsl #1
	smullne	r2, r3, r0, r3
	asrne	r0, r0, #31
	rsbne	r3, r0, r3, asr #2
	addne	r0, r3, #1
	addeq	r0, r0, #1
	bl	STM32F4_I2C_TRISE_VALUE
	ldr	r3, .L6+12
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	pop	{r4, lr}
	add	r1, r1, r3
	b	writel_relaxed
.L7:
	.align	2
.L6:
	.word	HZ_TO_MHZ
	.word	STM32_I2C_SPEED_STANDARD
	.word	1717986919
	.word	STM32F4_I2C_TRISE
	.size	stm32f4_i2c_set_rise_time, .-stm32f4_i2c_set_rise_time
	.comm	STM32_I2C_SPEED_STANDARD,4,4
	.comm	STM32F4_I2C_TRISE,4,4
	.comm	HZ_TO_MHZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
