	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inno_hdmi_i2c_xfer
_inno_hdmi_i2c_xfer:                    ## @inno_hdmi_i2c_xfer
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	callq	_i2c_get_adapdata
	movq	%rax, %r12
	movq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_HDMI_INTERRUPT_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_m_INT_EDID_READY@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_hdmi_writeb
	movq	_HDMI_INTERRUPT_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_hdmi_writeb
	movl	%r15d, %ecx
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ecx, %r13d
	callq	_DRM_DEV_DEBUG
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_inno_hdmi_i2c_read
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_inno_hdmi_i2c_write
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	testl	%eax, %eax
	movl	%r13d, %ecx
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	leaq	1(%r14), %rax
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%rax, %r14
	jb	LBB0_2
LBB0_7:
	testl	%r15d, %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_9
LBB0_8:
	movl	%ecx, %r15d
LBB0_9:
	movq	_HDMI_INTERRUPT_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_hdmi_writeb
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INTERRUPT_MASK1,4,2       ## @HDMI_INTERRUPT_MASK1
	.comm	_m_INT_EDID_READY,4,2           ## @m_INT_EDID_READY
	.comm	_HDMI_INTERRUPT_STATUS1,4,2     ## @HDMI_INTERRUPT_STATUS1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xfer: num: %d/%d, len: %d, flags: %#x\n"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_inno_hdmi_i2c_xfer
.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_xfer
_inno_hdmi_i2c_xfer:                    ; @inno_hdmi_i2c_xfer
	.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	x20, x2
	mov	x22, x1
	bl	_i2c_get_adapdata
	mov	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x26, _HDMI_INTERRUPT_MASK1@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HDMI_INTERRUPT_MASK1@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x23, _m_INT_EDID_READY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _m_INT_EDID_READY@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_hdmi_writeb
Lloh4:
	adrp	x8, _HDMI_INTERRUPT_STATUS1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDMI_INTERRUPT_STATUS1@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_hdmi_writeb
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w27, w20
	mov	w23, #1
Lloh7:
	adrp	x28, _I2C_M_RD@GOTPAGE
Lloh8:
	ldr	x28, [x28, _I2C_M_RD@GOTPAGEOFF]
Lloh9:
	adrp	x24, l_.str@PAGE
Lloh10:
	add	x24, x24, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldp	w5, w4, [x22]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	bl	_DRM_DEV_DEBUG
	ldr	w8, [x22]
	ldr	w9, [x28]
	mov	x0, x21
	mov	x1, x22
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_inno_hdmi_i2c_read
	mov	x25, x0
	tbz	w0, #31, LBB0_5
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_inno_hdmi_i2c_write
	mov	x25, x0
	tbnz	w0, #31, LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #8
	add	x8, x23, #1
	cmp	x23, x27
	mov	x23, x8
	b.lo	LBB0_2
LBB0_6:
	cbnz	w25, LBB0_8
LBB0_7:
	mov	x25, x20
LBB0_8:
	ldr	w1, [x26]
	mov	x0, x21
	mov	w2, #0
	bl	_hdmi_writeb
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x25
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INTERRUPT_MASK1,4,2       ; @HDMI_INTERRUPT_MASK1
	.comm	_m_INT_EDID_READY,4,2           ; @m_INT_EDID_READY
	.comm	_HDMI_INTERRUPT_STATUS1,4,2     ; @HDMI_INTERRUPT_STATUS1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xfer: num: %d/%d, len: %d, flags: %#x\n"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_inno_hdmi_i2c_xfer
.subsections_via_symbols
