	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synquacer_i2c_hw_init
_synquacer_i2c_hw_init:                 ## @synquacer_i2c_hw_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	16(%rdi), %r14d
	movq	_SYNQUACER_I2C_REG_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rdi), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movl	16(%rbx), %edi
	callq	_SYNQUACER_I2C_BUS_CLK_FR
	movq	_SYNQUACER_I2C_REG_FSR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rbx), %rsi
	movzbl	%al, %edi
	callq	_writeb
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.2:
	movl	16(%rbx), %eax
	movq	_SYNQUACER_I2C_CLK_RATE_18M@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_3
## %bb.4:
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CCR_CS_FAST_MIN_18M
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CSR_CS_FAST_MIN_18M
	jmp	LBB0_5
LBB0_6:
	movl	16(%rbx), %eax
	movq	_SYNQUACER_I2C_CLK_RATE_18M@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
## %bb.8:
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CCR_CS_STD_MIN_18M
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CSR_CS_STD_MIN_18M
	jmp	LBB0_9
LBB0_11:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_12
LBB0_3:
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CCR_CS_FAST_MAX_18M
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CSR_CS_FAST_MAX_18M
LBB0_5:
	movl	%eax, %r14d
	movq	_SYNQUACER_I2C_CCR_FM@GOTPCREL(%rip), %rax
	orb	(%rax), %r15b
	jmp	LBB0_10
LBB0_7:
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CCR_CS_STD_MAX_18M
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_SYNQUACER_I2C_CSR_CS_STD_MAX_18M
LBB0_9:
	movl	%eax, %r14d
LBB0_10:
	movq	_SYNQUACER_I2C_CCR_EN@GOTPCREL(%rip), %rax
	orb	(%rax), %r15b
	movq	_SYNQUACER_I2C_REG_CCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movzbl	%r15b, %edi
	callq	_writeb
	movq	_SYNQUACER_I2C_REG_CSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movzbl	%r14b, %edi
	callq	_writeb
LBB0_12:
	movq	_SYNQUACER_I2C_REG_BCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movq	_SYNQUACER_I2C_REG_BC2R@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writeb                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNQUACER_I2C_REG_ADR,8,3      ## @SYNQUACER_I2C_REG_ADR
	.comm	_SYNQUACER_I2C_REG_FSR,8,3      ## @SYNQUACER_I2C_REG_FSR
	.comm	_SYNQUACER_I2C_CLK_RATE_18M,4,2 ## @SYNQUACER_I2C_CLK_RATE_18M
	.comm	_SYNQUACER_I2C_CCR_FM,1,0       ## @SYNQUACER_I2C_CCR_FM
	.comm	_SYNQUACER_I2C_CCR_EN,1,0       ## @SYNQUACER_I2C_CCR_EN
	.comm	_SYNQUACER_I2C_REG_CCR,8,3      ## @SYNQUACER_I2C_REG_CCR
	.comm	_SYNQUACER_I2C_REG_CSR,8,3      ## @SYNQUACER_I2C_REG_CSR
	.comm	_SYNQUACER_I2C_REG_BCR,8,3      ## @SYNQUACER_I2C_REG_BCR
	.comm	_SYNQUACER_I2C_REG_BC2R,8,3     ## @SYNQUACER_I2C_REG_BC2R
	.no_dead_strip	_synquacer_i2c_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function synquacer_i2c_hw_init
_synquacer_i2c_hw_init:                 ; @synquacer_i2c_hw_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	w20, [x0, #16]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _SYNQUACER_I2C_REG_ADR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SYNQUACER_I2C_REG_ADR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	ldr	w0, [x19, #16]
	bl	_SYNQUACER_I2C_BUS_CLK_FR
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _SYNQUACER_I2C_REG_FSR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYNQUACER_I2C_REG_FSR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
Lloh6:
	adrp	x9, _SYNQUACER_I2C_CLK_RATE_18M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SYNQUACER_I2C_CLK_RATE_18M@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	x0, x20
	cmp	w8, w9
	b.le	LBB0_7
; %bb.3:
	bl	_SYNQUACER_I2C_CCR_CS_FAST_MIN_18M
	mov	x21, x0
	mov	x0, x20
	bl	_SYNQUACER_I2C_CSR_CS_FAST_MIN_18M
	b	LBB0_8
LBB0_4:
	ldr	w8, [x19, #16]
Lloh9:
	adrp	x9, _SYNQUACER_I2C_CLK_RATE_18M@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SYNQUACER_I2C_CLK_RATE_18M@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	x0, x20
	cmp	w8, w9
	b.le	LBB0_9
; %bb.5:
	bl	_SYNQUACER_I2C_CCR_CS_STD_MIN_18M
	mov	x21, x0
	mov	x0, x20
	bl	_SYNQUACER_I2C_CSR_CS_STD_MIN_18M
	b	LBB0_10
LBB0_6:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_12
LBB0_7:
	bl	_SYNQUACER_I2C_CCR_CS_FAST_MAX_18M
	mov	x21, x0
	mov	x0, x20
	bl	_SYNQUACER_I2C_CSR_CS_FAST_MAX_18M
LBB0_8:
	mov	x20, x0
Lloh12:
	adrp	x8, _SYNQUACER_I2C_CCR_FM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYNQUACER_I2C_CCR_FM@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w21
Lloh14:
	adrp	x9, _SYNQUACER_I2C_CCR_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SYNQUACER_I2C_CCR_EN@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_11
LBB0_9:
	bl	_SYNQUACER_I2C_CCR_CS_STD_MAX_18M
	mov	x21, x0
	mov	x0, x20
	bl	_SYNQUACER_I2C_CSR_CS_STD_MAX_18M
LBB0_10:
	mov	x20, x0
Lloh16:
	adrp	x8, _SYNQUACER_I2C_CCR_EN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SYNQUACER_I2C_CCR_EN@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w0, w8, w21
LBB0_11:
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _SYNQUACER_I2C_REG_CCR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SYNQUACER_I2C_REG_CCR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _SYNQUACER_I2C_REG_CSR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SYNQUACER_I2C_REG_CSR@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writeb
LBB0_12:
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _SYNQUACER_I2C_REG_BCR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SYNQUACER_I2C_REG_BCR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _SYNQUACER_I2C_REG_BC2R@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SYNQUACER_I2C_REG_BC2R@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	b	_writeb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNQUACER_I2C_REG_ADR,8,3      ; @SYNQUACER_I2C_REG_ADR
	.comm	_SYNQUACER_I2C_REG_FSR,8,3      ; @SYNQUACER_I2C_REG_FSR
	.comm	_SYNQUACER_I2C_CLK_RATE_18M,4,2 ; @SYNQUACER_I2C_CLK_RATE_18M
	.comm	_SYNQUACER_I2C_CCR_FM,1,0       ; @SYNQUACER_I2C_CCR_FM
	.comm	_SYNQUACER_I2C_CCR_EN,1,0       ; @SYNQUACER_I2C_CCR_EN
	.comm	_SYNQUACER_I2C_REG_CCR,8,3      ; @SYNQUACER_I2C_REG_CCR
	.comm	_SYNQUACER_I2C_REG_CSR,8,3      ; @SYNQUACER_I2C_REG_CSR
	.comm	_SYNQUACER_I2C_REG_BCR,8,3      ; @SYNQUACER_I2C_REG_BCR
	.comm	_SYNQUACER_I2C_REG_BC2R,8,3     ; @SYNQUACER_I2C_REG_BC2R
	.no_dead_strip	_synquacer_i2c_hw_init
.subsections_via_symbols
