	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inno_hdmi_i2c_read
_inno_hdmi_i2c_read:                    ## @inno_hdmi_i2c_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rsi), %r15d
	movq	8(%rsi), %r12
	movq	(%rdi), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	_HDMI_EDID_FIFO_ADDR@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movl	%eax, (%r12,%r14,4)
	incq	%r14
	cmpl	%r14d, %r15d
	jne	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_HDMI_EDID_FIFO_ADDR,4,2        ## @HDMI_EDID_FIFO_ADDR
	.no_dead_strip	_inno_hdmi_i2c_read
.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_read
_inno_hdmi_i2c_read:                    ; @inno_hdmi_i2c_read
	.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, [x1]
	ldr	x21, [x1, #8]
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_5
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
Lloh3:
	adrp	x22, _HDMI_EDID_FIFO_ADDR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HDMI_EDID_FIFO_ADDR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hdmi_readb
	str	w0, [x21], #4
	cbnz	w20, LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_HDMI_EDID_FIFO_ADDR,4,2        ; @HDMI_EDID_FIFO_ADDR
	.no_dead_strip	_inno_hdmi_i2c_read
.subsections_via_symbols
