	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_i2c_read
_hdmi_i2c_read:                         ## @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), %r15
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movslq	(%r15), %rcx
	leaq	(%rax,%rcx,4), %r12
	xorl	%ebx, %ebx
	movq	_HDMI_HI2CRDB0@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_HDMI_READ
	movl	%eax, -44(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	addq	$4, %rbx
	addq	$16, %r12
	cmpq	$64, %rbx
	jne	LBB0_1
## %bb.2:
	addl	$64, (%r15)
	movq	_HDMI_HISR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_HDMI_READ
	movl	%eax, -44(%rbp)
	movq	(%rbx), %rdi
	movq	_HDMI_INTR_I2C_FULL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_HDMI_WRITE
	movq	(%rbx), %rdi
	callq	_HDMI_READ
	movq	_HDMI_HI2CHCR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_HDMI_READ
	movl	%eax, -44(%rbp)
	movq	(%rbx), %rdi
	movq	_HI2C_READ_CONTINUE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_HDMI_WRITE
	movq	(%rbx), %rdi
	callq	_HDMI_READ
	movq	_I2C_READ_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_HI2CRDB0,8,3              ## @HDMI_HI2CRDB0
	.comm	_HDMI_HISR,8,3                  ## @HDMI_HISR
	.comm	_HDMI_INTR_I2C_FULL,4,2         ## @HDMI_INTR_I2C_FULL
	.comm	_HDMI_HI2CHCR,8,3               ## @HDMI_HI2CHCR
	.comm	_HI2C_READ_CONTINUE,4,2         ## @HI2C_READ_CONTINUE
	.comm	_I2C_READ_DONE,4,2              ## @I2C_READ_DONE
	.no_dead_strip	_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 hdmi_i2c_read
_hdmi_i2c_read:                         ; @hdmi_i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, #0
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	add	x19, x8, x9, lsl #2
Lloh0:
	adrp	x22, _HDMI_HI2CRDB0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HDMI_HI2CRDB0@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x21, x8
	bl	_HDMI_READ
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	add	x21, x21, #4
	add	x19, x19, #16
	cmp	x21, #64
	b.ne	LBB0_1
; %bb.2:
	ldr	w8, [x20]
	add	w8, w8, #64
	str	w8, [x20]
Lloh2:
	adrp	x19, _HDMI_HISR@GOTPAGE
Lloh3:
	ldr	x19, [x19, _HDMI_HISR@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_HDMI_READ
	str	w0, [sp, #12]
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _HDMI_INTR_I2C_FULL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HDMI_INTR_I2C_FULL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_HDMI_WRITE
	ldr	x0, [x19]
	bl	_HDMI_READ
Lloh7:
	adrp	x19, _HDMI_HI2CHCR@GOTPAGE
Lloh8:
	ldr	x19, [x19, _HDMI_HI2CHCR@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_HDMI_READ
	str	w0, [sp, #12]
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _HI2C_READ_CONTINUE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HI2C_READ_CONTINUE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_HDMI_WRITE
	ldr	x0, [x19]
	bl	_HDMI_READ
Lloh12:
	adrp	x8, _I2C_READ_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_READ_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_HI2CRDB0,8,3              ; @HDMI_HI2CRDB0
	.comm	_HDMI_HISR,8,3                  ; @HDMI_HISR
	.comm	_HDMI_INTR_I2C_FULL,4,2         ; @HDMI_INTR_I2C_FULL
	.comm	_HDMI_HI2CHCR,8,3               ; @HDMI_HI2CHCR
	.comm	_HI2C_READ_CONTINUE,4,2         ; @HI2C_READ_CONTINUE
	.comm	_I2C_READ_DONE,4,2              ; @I2C_READ_DONE
	.no_dead_strip	_hdmi_i2c_read
.subsections_via_symbols
