	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inno_hdmi_i2c_init
_inno_hdmi_i2c_init:                    ## @inno_hdmi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	sarl	$2, %eax
	movq	_HDMI_SCL_RATE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_DDC_BUS_FREQ_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movl	%eax, %r14d
	callq	_hdmi_writeb
	movq	_DDC_BUS_FREQ_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %eax
	movzbl	%ah, %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movq	_HDMI_INTERRUPT_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_writeb
	movq	_HDMI_INTERRUPT_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_m_INT_EDID_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdmi_writeb                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_SCL_RATE,4,2              ## @HDMI_SCL_RATE
	.comm	_DDC_BUS_FREQ_L,4,2             ## @DDC_BUS_FREQ_L
	.comm	_DDC_BUS_FREQ_H,4,2             ## @DDC_BUS_FREQ_H
	.comm	_HDMI_INTERRUPT_MASK1,4,2       ## @HDMI_INTERRUPT_MASK1
	.comm	_HDMI_INTERRUPT_STATUS1,4,2     ## @HDMI_INTERRUPT_STATUS1
	.comm	_m_INT_EDID_READY,4,2           ## @m_INT_EDID_READY
	.no_dead_strip	_inno_hdmi_i2c_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inno_hdmi_i2c_init
_inno_hdmi_i2c_init:                    ; @inno_hdmi_i2c_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	asr	w8, w8, #2
Lloh0:
	adrp	x9, _HDMI_SCL_RATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDMI_SCL_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w20, w8, w9
Lloh3:
	adrp	x8, _DDC_BUS_FREQ_L@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DDC_BUS_FREQ_L@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	and	w2, w20, #0xff
	bl	_hdmi_writeb
Lloh6:
	adrp	x8, _DDC_BUS_FREQ_H@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDC_BUS_FREQ_H@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ubfx	w2, w20, #8, #8
	mov	x0, x19
	bl	_hdmi_writeb
Lloh9:
	adrp	x8, _HDMI_INTERRUPT_MASK1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDMI_INTERRUPT_MASK1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_writeb
Lloh12:
	adrp	x8, _HDMI_INTERRUPT_STATUS1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDMI_INTERRUPT_STATUS1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _m_INT_EDID_READY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _m_INT_EDID_READY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdmi_writeb
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_HDMI_SCL_RATE,4,2              ; @HDMI_SCL_RATE
	.comm	_DDC_BUS_FREQ_L,4,2             ; @DDC_BUS_FREQ_L
	.comm	_DDC_BUS_FREQ_H,4,2             ; @DDC_BUS_FREQ_H
	.comm	_HDMI_INTERRUPT_MASK1,4,2       ; @HDMI_INTERRUPT_MASK1
	.comm	_HDMI_INTERRUPT_STATUS1,4,2     ; @HDMI_INTERRUPT_STATUS1
	.comm	_m_INT_EDID_READY,4,2           ; @m_INT_EDID_READY
	.no_dead_strip	_inno_hdmi_i2c_init
.subsections_via_symbols
