	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_i2c_setup_clk
_tegra_i2c_setup_clk:                   ## @tegra_i2c_setup_clk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	movl	%r8d, %eax
	cltd
	idivl	%esi
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	leal	(%rax,%rax,4), %r9d
	movl	%r8d, %eax
	cltd
	idivl	%r9d
	xorl	%edx, %edx
	cmpl	%esi, %eax
	setle	%dl
	subl	%edx, %ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmovll	%ecx, %edx
	movq	_I2C_CLK_DIVISOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CLK_DIVISOR_HSMODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_I2C_CLK_DIVISOR_STD_FAST_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	btsl	%eax, %edx
	popq	%rbp
	jmp	_WR4                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLK_DIVISOR,4,2            ## @I2C_CLK_DIVISOR
	.comm	_I2C_CLK_DIVISOR_HSMODE_SHIFT,4,2 ## @I2C_CLK_DIVISOR_HSMODE_SHIFT
	.comm	_I2C_CLK_DIVISOR_STD_FAST_MODE_SHIFT,4,2 ## @I2C_CLK_DIVISOR_STD_FAST_MODE_SHIFT
	.no_dead_strip	_tegra_i2c_setup_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_i2c_setup_clk
_tegra_i2c_setup_clk:                   ; @tegra_i2c_setup_clk
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sdiv	w9, w8, w1
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	w10, w9, w9, lsl #2
	lsl	w10, w10, #1
	sdiv	w8, w8, w10
	cmp	w8, w1
	cset	w8, le
	sub	w8, w9, w8
	mov	w9, #65535
	cmp	w8, w9
	csel	w8, w8, w9, lt
Lloh0:
	adrp	x9, _I2C_CLK_DIVISOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_CLK_DIVISOR@GOTPAGEOFF]
Lloh2:
	adrp	x10, _I2C_CLK_DIVISOR_HSMODE_SHIFT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _I2C_CLK_DIVISOR_HSMODE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
Lloh5:
	ldr	w9, [x10]
	mov	w10, #1
	lsl	w9, w10, w9
Lloh6:
	adrp	x10, _I2C_CLK_DIVISOR_STD_FAST_MODE_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I2C_CLK_DIVISOR_STD_FAST_MODE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w2, w8, w9
	b	_WR4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLK_DIVISOR,4,2            ; @I2C_CLK_DIVISOR
	.comm	_I2C_CLK_DIVISOR_HSMODE_SHIFT,4,2 ; @I2C_CLK_DIVISOR_HSMODE_SHIFT
	.comm	_I2C_CLK_DIVISOR_STD_FAST_MODE_SHIFT,4,2 ; @I2C_CLK_DIVISOR_STD_FAST_MODE_SHIFT
	.no_dead_strip	_tegra_i2c_setup_clk
.subsections_via_symbols
