	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp9xx_i2c_init
_xlp9xx_i2c_init:                       ## @xlp9xx_i2c_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, %rbx
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	callq	_DIV_ROUND_UP
	addl	$-8, %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$33, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %r14d
	decl	%r14d
	movq	_XLP9XX_I2C_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_XLP9XX_I2C_CTRL_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_xlp9xx_write_i2c_reg
	movl	(%r15), %esi
	movq	_XLP9XX_I2C_CTRL_EN@GOTPCREL(%rip), %rax
	movq	_XLP9XX_I2C_CTRL_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_xlp9xx_write_i2c_reg
	movq	_XLP9XX_I2C_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_xlp9xx_write_i2c_reg
	movq	_XLP9XX_I2C_INTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_xlp9xx_write_i2c_reg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLP9XX_I2C_CTRL,4,2            ## @XLP9XX_I2C_CTRL
	.comm	_XLP9XX_I2C_CTRL_RST,4,2        ## @XLP9XX_I2C_CTRL_RST
	.comm	_XLP9XX_I2C_CTRL_EN,4,2         ## @XLP9XX_I2C_CTRL_EN
	.comm	_XLP9XX_I2C_CTRL_MASTER,4,2     ## @XLP9XX_I2C_CTRL_MASTER
	.comm	_XLP9XX_I2C_DIV,4,2             ## @XLP9XX_I2C_DIV
	.comm	_XLP9XX_I2C_INTEN,4,2           ## @XLP9XX_I2C_INTEN
	.no_dead_strip	_xlp9xx_i2c_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp9xx_i2c_init
_xlp9xx_i2c_init:                       ; @xlp9xx_i2c_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, #4]
	ldr	w1, [x19]
	bl	_DIV_ROUND_UP
	sub	w8, w0, #8
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	sub	w20, w8, #1
Lloh0:
	adrp	x21, _XLP9XX_I2C_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XLP9XX_I2C_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _XLP9XX_I2C_CTRL_RST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLP9XX_I2C_CTRL_RST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_xlp9xx_write_i2c_reg
Lloh5:
	adrp	x8, _XLP9XX_I2C_CTRL_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XLP9XX_I2C_CTRL_EN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _XLP9XX_I2C_CTRL_MASTER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XLP9XX_I2C_CTRL_MASTER@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_xlp9xx_write_i2c_reg
Lloh11:
	adrp	x8, _XLP9XX_I2C_DIV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XLP9XX_I2C_DIV@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_xlp9xx_write_i2c_reg
Lloh14:
	adrp	x8, _XLP9XX_I2C_INTEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_xlp9xx_write_i2c_reg
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XLP9XX_I2C_CTRL,4,2            ; @XLP9XX_I2C_CTRL
	.comm	_XLP9XX_I2C_CTRL_RST,4,2        ; @XLP9XX_I2C_CTRL_RST
	.comm	_XLP9XX_I2C_CTRL_EN,4,2         ; @XLP9XX_I2C_CTRL_EN
	.comm	_XLP9XX_I2C_CTRL_MASTER,4,2     ; @XLP9XX_I2C_CTRL_MASTER
	.comm	_XLP9XX_I2C_DIV,4,2             ; @XLP9XX_I2C_DIV
	.comm	_XLP9XX_I2C_INTEN,4,2           ; @XLP9XX_I2C_INTEN
	.no_dead_strip	_xlp9xx_i2c_init
.subsections_via_symbols
