	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32f4_i2c_set_speed_mode
_stm32f4_i2c_set_speed_mode:            ## @stm32f4_i2c_set_speed_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_STM32_I2C_SPEED_STANDARD@GOTPCREL(%rip), %rcx
	movl	8(%rdi), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movslq	%edi, %rax
	imulq	$351843721, %rax, %rdi          ## imm = 0x14F8B589
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$46, %rdi
	addl	%eax, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	$1200000, %esi                  ## imm = 0x124F80
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movq	_STM32F4_I2C_CCR_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_STM32F4_I2C_CCR_CCR
	orl	%eax, %ebx
	movq	_STM32F4_I2C_CCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_I2C_SPEED_STANDARD,8,3   ## @STM32_I2C_SPEED_STANDARD
	.comm	_STM32F4_I2C_CCR_FS,4,2         ## @STM32F4_I2C_CCR_FS
	.comm	_STM32F4_I2C_CCR,8,3            ## @STM32F4_I2C_CCR
	.no_dead_strip	_stm32f4_i2c_set_speed_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32f4_i2c_set_speed_mode
_stm32f4_i2c_set_speed_mode:            ; @stm32f4_i2c_set_speed_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _STM32_I2C_SPEED_STANDARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STM32_I2C_SPEED_STANDARD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x0, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	mov	w8, #46473
	movk	w8, #5368, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #46
	add	w0, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w1, #20352
	movk	w1, #18, lsl #16
	bl	_DIV_ROUND_UP
Lloh3:
	adrp	x8, _STM32F4_I2C_CCR_FS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STM32F4_I2C_CCR_FS@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_3:
	bl	_STM32F4_I2C_CCR_CCR
	orr	w0, w0, w20
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _STM32F4_I2C_CCR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STM32F4_I2C_CCR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_I2C_SPEED_STANDARD,8,3   ; @STM32_I2C_SPEED_STANDARD
	.comm	_STM32F4_I2C_CCR_FS,4,2         ; @STM32F4_I2C_CCR_FS
	.comm	_STM32F4_I2C_CCR,8,3            ; @STM32F4_I2C_CCR
	.no_dead_strip	_stm32f4_i2c_set_speed_mode
.subsections_via_symbols
