	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_i2c_read
_dw_hdmi_i2c_read:                      ## @dw_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
	movl	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	jne	LBB0_3
	jmp	LBB0_8
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	$1, (%r13)
	testl	%r12d, %r12d
	je	LBB0_8
LBB0_3:
	leaq	12(%r13), %r15
	movl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_reinit_completion
	movl	4(%r13), %esi
	leal	1(%rsi), %eax
	movl	%eax, 4(%r13)
	movq	_HDMI_I2CM_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_hdmi_writeb
	cmpl	$0, 8(%r13)
	movq	_HDMI_I2CM_OPERATION_READ_EXT@GOTPCREL(%rip), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_HDMI_I2CM_OPERATION_READ@GOTPCREL(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %esi
	movq	_HDMI_I2CM_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_writeb
	movq	%rbx, %rdi
	callq	_dw_hdmi_i2c_wait
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_HDMI_I2CM_DATAI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx,%r14)
	incq	%r14
	cmpl	%r14d, %r12d
	jne	LBB0_4
LBB0_8:
	movl	$0, 8(%r13)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set read register address to 0\n"

	.comm	_HDMI_I2CM_ADDRESS,4,2          ## @HDMI_I2CM_ADDRESS
	.comm	_HDMI_I2CM_OPERATION_READ_EXT,4,2 ## @HDMI_I2CM_OPERATION_READ_EXT
	.comm	_HDMI_I2CM_OPERATION,4,2        ## @HDMI_I2CM_OPERATION
	.comm	_HDMI_I2CM_OPERATION_READ,4,2   ## @HDMI_I2CM_OPERATION_READ
	.comm	_HDMI_I2CM_DATAI,4,2            ## @HDMI_I2CM_DATAI
	.no_dead_strip	_dw_hdmi_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dw_hdmi_i2c_read
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dw_hdmi_i2c_read:                      ; @dw_hdmi_i2c_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w8, [x23]
	cbz	w8, LBB0_2
; %bb.1:
	cbnz	w19, LBB0_3
	b	LBB0_6
LBB0_2:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x23]
	cbz	w19, LBB0_6
LBB0_3:
	add	x22, x23, #12
Lloh4:
	adrp	x24, _HDMI_I2CM_ADDRESS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HDMI_I2CM_ADDRESS@GOTPAGEOFF]
Lloh6:
	adrp	x25, _HDMI_I2CM_OPERATION_READ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HDMI_I2CM_OPERATION_READ@GOTPAGEOFF]
Lloh8:
	adrp	x26, _HDMI_I2CM_OPERATION_READ_EXT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _HDMI_I2CM_OPERATION_READ_EXT@GOTPAGEOFF]
Lloh10:
	adrp	x27, _HDMI_I2CM_OPERATION@GOTPAGE
Lloh11:
	ldr	x27, [x27, _HDMI_I2CM_OPERATION@GOTPAGEOFF]
Lloh12:
	adrp	x28, _HDMI_I2CM_DATAI@GOTPAGE
Lloh13:
	ldr	x28, [x28, _HDMI_I2CM_DATAI@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_reinit_completion
	ldr	w1, [x23, #4]
	add	w8, w1, #1
	str	w8, [x23, #4]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_hdmi_writeb
	ldr	w8, [x23, #8]
	cmp	w8, #0
	csel	x8, x25, x26, eq
	ldr	w1, [x8]
	ldr	w2, [x27]
	mov	x0, x21
	bl	_hdmi_writeb
	mov	x0, x21
	bl	_dw_hdmi_i2c_wait
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w19, w19, #1
	ldr	w1, [x28]
	mov	x0, x21
	bl	_hdmi_readb
	strb	w0, [x20], #1
	cbnz	w19, LBB0_4
LBB0_6:
	mov	w0, #0
	str	wzr, [x23, #8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set read register address to 0\n"

	.comm	_HDMI_I2CM_ADDRESS,4,2          ; @HDMI_I2CM_ADDRESS
	.comm	_HDMI_I2CM_OPERATION_READ_EXT,4,2 ; @HDMI_I2CM_OPERATION_READ_EXT
	.comm	_HDMI_I2CM_OPERATION,4,2        ; @HDMI_I2CM_OPERATION
	.comm	_HDMI_I2CM_OPERATION_READ,4,2   ; @HDMI_I2CM_OPERATION_READ
	.comm	_HDMI_I2CM_DATAI,4,2            ; @HDMI_I2CM_DATAI
	.no_dead_strip	_dw_hdmi_i2c_read
.subsections_via_symbols
