	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_i2c_v2_init
_sh_mobile_i2c_v2_init:                 ## @sh_mobile_i2c_v2_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	32(%rdi), %edi
	callq	_clk_get_rate
	movq	(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_3:
	leaq	(%rbx,%rbx,4), %rax
	movabsq	$-2049638230412172401, %r15     ## imm = 0xE38E38E38E38E38F
	mulq	%r15
	shrq	$3, %rdx
	leaq	-1(%rdx), %rdi
	movl	8(%r14), %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %rcx
	shlq	$2, %rbx
	movq	%rbx, %rax
	mulq	%r15
	movq	%rcx, 24(%r14)
	shrq	$3, %rdx
	leaq	-5(%rdx), %rdi
	movl	8(%r14), %esi
	callq	_DIV_ROUND_UP
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh_mobile_i2c_check_timing     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sh_mobile_i2c_v2_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mobile_i2c_v2_init
_sh_mobile_i2c_v2_init:                 ; @sh_mobile_i2c_v2_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_clk_get_rate
	ldr	x8, [x19]
	udiv	x8, x0, x8
	lsl	x20, x8, #2
	add	x8, x20, x8
	mov	x21, #58255
	movk	x21, #36408, lsl #16
	movk	x21, #14563, lsl #32
	movk	x21, #58254, lsl #48
	umulh	x8, x8, x21
	lsr	x8, x8, #3
	sub	x0, x8, #1
	ldr	w1, [x19, #8]
	bl	_DIV_ROUND_UP
	str	x0, [x19, #24]
	umulh	x8, x20, x21
	lsr	x8, x8, #3
	sub	x0, x8, #5
	ldr	w1, [x19, #8]
	bl	_DIV_ROUND_UP
	str	x0, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sh_mobile_i2c_check_timing
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sh_mobile_i2c_v2_init
.subsections_via_symbols
