	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_dw_init
_i2c_dw_init:                           ## @i2c_dw_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	8(%rdi), %edi
	callq	_clk_get_rate
	movslq	%eax, %r15
	imulq	$274877907, %r15, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	movq	_DW_IC_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writeb
	imulq	$1125899907, %r15, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	sarq	$48, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	incl	%edi
	movq	_DW_IC_SS_SCL_HCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writew
	imull	$47, %ebx, %eax
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	sarq	$44, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	incl	%edi
	movq	_DW_IC_SS_SCL_LCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writew
	leal	(%rbx,%rbx), %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	sarq	$44, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	incl	%edi
	movq	_DW_IC_FS_SCL_HCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writew
	leal	(%rbx,%rbx,2), %eax
	leal	(%rbx,%rax,4), %eax
	cltq
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	sarq	$44, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	incl	%edi
	movq	_DW_IC_FS_SCL_LCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writew
	movq	_DW_IC_CON_MASTER@GOTPCREL(%rip), %rax
	movq	_DW_IC_CON_SLAVE_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_DW_IC_CON_RESTART_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_DW_IC_CON_SPEED_FAST@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_DW_IC_CON@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writew                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_IC_ENABLE,8,3               ## @DW_IC_ENABLE
	.comm	_DW_IC_SS_SCL_HCNT,8,3          ## @DW_IC_SS_SCL_HCNT
	.comm	_DW_IC_SS_SCL_LCNT,8,3          ## @DW_IC_SS_SCL_LCNT
	.comm	_DW_IC_FS_SCL_HCNT,8,3          ## @DW_IC_FS_SCL_HCNT
	.comm	_DW_IC_FS_SCL_LCNT,8,3          ## @DW_IC_FS_SCL_LCNT
	.comm	_DW_IC_CON_MASTER,4,2           ## @DW_IC_CON_MASTER
	.comm	_DW_IC_CON_SLAVE_DISABLE,4,2    ## @DW_IC_CON_SLAVE_DISABLE
	.comm	_DW_IC_CON_RESTART_EN,4,2       ## @DW_IC_CON_RESTART_EN
	.comm	_DW_IC_CON_SPEED_FAST,4,2       ## @DW_IC_CON_SPEED_FAST
	.comm	_DW_IC_CON,8,3                  ## @DW_IC_CON
	.no_dead_strip	_i2c_dw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_dw_init
_i2c_dw_init:                           ; @i2c_dw_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, #8]
	bl	_clk_get_rate
	mov	x20, x0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w21, w8, w9
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _DW_IC_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DW_IC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #48
	add	w8, w8, w9
	add	w0, w8, #1
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _DW_IC_SS_SCL_HCNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DW_IC_SS_SCL_HCNT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	mov	w8, #47
	mul	w8, w21, w8
	mov	w20, #35757
	movk	w20, #26843, lsl #16
	smull	x8, w8, w20
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	add	w0, w8, #1
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _DW_IC_SS_SCL_LCNT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DW_IC_SS_SCL_LCNT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	add	w8, w21, w21, lsl #1
	lsl	w8, w8, #1
	smull	x8, w8, w20
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	add	w0, w8, #1
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _DW_IC_FS_SCL_HCNT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DW_IC_FS_SCL_HCNT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	mov	w8, #13
	mul	w8, w21, w8
	smull	x8, w8, w20
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	add	w0, w8, #1
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _DW_IC_FS_SCL_LCNT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DW_IC_FS_SCL_LCNT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
Lloh15:
	adrp	x8, _DW_IC_CON_MASTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DW_IC_CON_MASTER@GOTPAGEOFF]
Lloh17:
	adrp	x9, _DW_IC_CON_SLAVE_DISABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DW_IC_CON_SLAVE_DISABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _DW_IC_CON_RESTART_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DW_IC_CON_RESTART_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _DW_IC_CON_SPEED_FAST@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DW_IC_CON_SPEED_FAST@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _DW_IC_CON@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DW_IC_CON@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_writew
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_IC_ENABLE,8,3               ; @DW_IC_ENABLE
	.comm	_DW_IC_SS_SCL_HCNT,8,3          ; @DW_IC_SS_SCL_HCNT
	.comm	_DW_IC_SS_SCL_LCNT,8,3          ; @DW_IC_SS_SCL_LCNT
	.comm	_DW_IC_FS_SCL_HCNT,8,3          ; @DW_IC_FS_SCL_HCNT
	.comm	_DW_IC_FS_SCL_LCNT,8,3          ; @DW_IC_FS_SCL_LCNT
	.comm	_DW_IC_CON_MASTER,4,2           ; @DW_IC_CON_MASTER
	.comm	_DW_IC_CON_SLAVE_DISABLE,4,2    ; @DW_IC_CON_SLAVE_DISABLE
	.comm	_DW_IC_CON_RESTART_EN,4,2       ; @DW_IC_CON_RESTART_EN
	.comm	_DW_IC_CON_SPEED_FAST,4,2       ; @DW_IC_CON_SPEED_FAST
	.comm	_DW_IC_CON,8,3                  ; @DW_IC_CON
	.no_dead_strip	_i2c_dw_init
.subsections_via_symbols
