	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_imx_set_clk
_i2c_imx_set_clk:                       ## @i2c_imx_set_clk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	%esi, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	24(%rdi), %r9
	movq	8(%r9), %r8
	movl	%esi, (%rdi)
	movl	4(%rdi), %r10d
	leal	(%rsi,%r10), %eax
	decl	%eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	divl	%r10d
	movl	(%r8), %edx
	cmpl	%edx, %eax
	jae	LBB0_3
## %bb.2:
	movl	%edx, %r9d
	jmp	LBB0_10
LBB0_3:
	movslq	(%r9), %rcx
	movl	-8(%r8,%rcx,8), %r9d
	cmpl	%r9d, %eax
	jbe	LBB0_5
## %bb.4:
	decq	%rcx
	jmp	LBB0_10
LBB0_5:
	cmpl	%eax, %edx
	jae	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rdx), %rcx
	cmpl	%eax, 8(%r8,%rdx,8)
	movq	%rcx, %rdx
	jb	LBB0_8
	jmp	LBB0_9
LBB0_6:
	xorl	%ecx, %ecx
LBB0_9:
	movslq	%ecx, %rax
	movl	(%r8,%rax,8), %r9d
LBB0_10:
	movslq	%ecx, %rax
	movl	4(%r8,%rax,8), %eax
	movl	%eax, 8(%rdi)
	imull	$500000, %r9d, %eax             ## imm = 0x7A120
	shrl	%esi
	addl	%esi, %eax
	decl	%eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, 12(%rdi)
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_i2c_imx_set_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_imx_set_clk
_i2c_imx_set_clk:                       ; @i2c_imx_set_clk
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, w1
	b.eq	LBB0_11
; %bb.1:
	ldr	x9, [x0, #24]
	ldr	x8, [x9, #8]
	str	w1, [x0]
	ldr	w10, [x0, #4]
	add	w11, w1, w10
	sub	w11, w11, #1
	udiv	w10, w11, w10
	ldr	w11, [x8]
	cmp	w10, w11
	b.hs	LBB0_3
; %bb.2:
	mov	w9, #0
	b	LBB0_10
LBB0_3:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	lsl	x12, x9, #3
	ldr	w12, [x8, x12]
	cmp	w10, w12
	b.ls	LBB0_5
; %bb.4:
	mov	x11, x12
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	b	LBB0_10
LBB0_5:
	cmp	w11, w10
	b.hs	LBB0_8
; %bb.6:
	mov	x9, #0
	add	x11, x8, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x9, #1
	ldr	w12, [x11], #8
	cmp	w12, w10
	b.lo	LBB0_7
	b	LBB0_9
LBB0_8:
	mov	x9, #0
LBB0_9:
	sbfiz	x10, x9, #3, #32
	ldr	w11, [x8, x10]
LBB0_10:
	add	x8, x8, w9, sxtw #3
	ldr	w8, [x8, #4]
	mov	w9, #41248
	movk	w9, #7, lsl #16
	lsr	w10, w1, #1
	madd	w9, w11, w9, w10
	sub	w9, w9, #1
	udiv	w9, w9, w10
	stp	w8, w9, [x0, #8]
LBB0_11:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_i2c_imx_set_clk
.subsections_via_symbols
