	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_i2c_dev_init
_fsi_i2c_dev_init:                      ## @fsi_i2c_dev_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_I2C_MODE_ENHANCED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$0, -28(%rbp)
	movl	(%rdi), %edi
	movq	_I2C_FSI_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_fsi_i2c_write_reg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_I2C_MODE_CLKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_DEFAULT_CLK_DIV@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movl	%ebx, -40(%rbp)
	movl	(%r15), %edi
	movq	_I2C_FSI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_fsi_i2c_write_reg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %edi
	movq	_I2C_FSI_ESTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_fsi_i2c_read_reg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_I2C_ESTAT_FIFO_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-36(%rbp), %esi
	callq	_FIELD_GET
	movq	%rax, 8(%r15)
	movq	_I2C_WATERMARK_HI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_I2C_FIFO_HI_LVL@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, %rsi
	callq	_FIELD_PREP
	movl	%eax, %r14d
	movq	_I2C_WATERMARK_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_FIFO_LO_LVL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_FIELD_PREP
	orl	%r14d, %eax
	movl	%eax, -32(%rbp)
	movl	(%r15), %edi
	movq	_I2C_FSI_WATER_MARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_fsi_i2c_write_reg
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_MODE_ENHANCED,4,2          ## @I2C_MODE_ENHANCED
	.comm	_I2C_FSI_INT_MASK,4,2           ## @I2C_FSI_INT_MASK
	.comm	_I2C_MODE_CLKDIV,4,2            ## @I2C_MODE_CLKDIV
	.comm	_I2C_DEFAULT_CLK_DIV,8,3        ## @I2C_DEFAULT_CLK_DIV
	.comm	_I2C_FSI_MODE,4,2               ## @I2C_FSI_MODE
	.comm	_I2C_FSI_ESTAT,4,2              ## @I2C_FSI_ESTAT
	.comm	_I2C_ESTAT_FIFO_SZ,4,2          ## @I2C_ESTAT_FIFO_SZ
	.comm	_I2C_WATERMARK_HI,4,2           ## @I2C_WATERMARK_HI
	.comm	_I2C_FIFO_HI_LVL,8,3            ## @I2C_FIFO_HI_LVL
	.comm	_I2C_WATERMARK_LO,4,2           ## @I2C_WATERMARK_LO
	.comm	_I2C_FIFO_LO_LVL,8,3            ## @I2C_FIFO_LO_LVL
	.comm	_I2C_FSI_WATER_MARK,4,2         ## @I2C_FSI_WATER_MARK
	.no_dead_strip	_fsi_i2c_dev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_i2c_dev_init
_fsi_i2c_dev_init:                      ; @fsi_i2c_dev_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_MODE_ENHANCED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_MODE_ENHANCED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	str	wzr, [sp]
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _I2C_FSI_INT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_FSI_INT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_fsi_i2c_write_reg
	cbnz	w0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _I2C_MODE_CLKDIV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_MODE_CLKDIV@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _I2C_DEFAULT_CLK_DIV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_DEFAULT_CLK_DIV@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	bl	_FIELD_PREP
	orr	w8, w20, w0
	str	w8, [sp, #12]
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _I2C_FSI_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_FSI_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_fsi_i2c_write_reg
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _I2C_FSI_ESTAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_FSI_ESTAT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_fsi_i2c_read_reg
	cbnz	w0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _I2C_ESTAT_FIFO_SZ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I2C_ESTAT_FIFO_SZ@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	bl	_FIELD_GET
Lloh21:
	adrp	x8, _I2C_WATERMARK_HI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I2C_WATERMARK_HI@GOTPAGEOFF]
	str	x0, [x19, #8]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _I2C_FIFO_HI_LVL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I2C_FIFO_HI_LVL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	sub	x1, x0, x9
	mov	x0, x8
	bl	_FIELD_PREP
	mov	x20, x0
Lloh27:
	adrp	x8, _I2C_WATERMARK_LO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I2C_WATERMARK_LO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _I2C_FIFO_LO_LVL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I2C_FIFO_LO_LVL@GOTPAGEOFF]
Lloh32:
	ldr	x1, [x8]
	bl	_FIELD_PREP
	orr	w8, w20, w0
	str	w8, [sp, #4]
	ldr	w0, [x19]
Lloh33:
	adrp	x8, _I2C_FSI_WATER_MARK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I2C_FSI_WATER_MARK@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_fsi_i2c_write_reg
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_MODE_ENHANCED,4,2          ; @I2C_MODE_ENHANCED
	.comm	_I2C_FSI_INT_MASK,4,2           ; @I2C_FSI_INT_MASK
	.comm	_I2C_MODE_CLKDIV,4,2            ; @I2C_MODE_CLKDIV
	.comm	_I2C_DEFAULT_CLK_DIV,8,3        ; @I2C_DEFAULT_CLK_DIV
	.comm	_I2C_FSI_MODE,4,2               ; @I2C_FSI_MODE
	.comm	_I2C_FSI_ESTAT,4,2              ; @I2C_FSI_ESTAT
	.comm	_I2C_ESTAT_FIFO_SZ,4,2          ; @I2C_ESTAT_FIFO_SZ
	.comm	_I2C_WATERMARK_HI,4,2           ; @I2C_WATERMARK_HI
	.comm	_I2C_FIFO_HI_LVL,8,3            ; @I2C_FIFO_HI_LVL
	.comm	_I2C_WATERMARK_LO,4,2           ; @I2C_WATERMARK_LO
	.comm	_I2C_FIFO_LO_LVL,8,3            ; @I2C_FIFO_LO_LVL
	.comm	_I2C_FSI_WATER_MARK,4,2         ; @I2C_FSI_WATER_MARK
	.no_dead_strip	_fsi_i2c_dev_init
.subsections_via_symbols
