	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_hdmi_i2c_xfer
_msm_hdmi_i2c_xfer:                     ## @msm_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	$104, %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, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_hdmi_i2c_adapter
	movq	%rax, %r13
	movq	8(%rax), %r12
	movq	(%r12), %r14
	movq	_MAX_TRANSACTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %ebx
	movq	_REG_HDMI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hdmi_read
	movq	_HDMI_CTRL_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_WARN_ON
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_27
## %bb.1:
	movq	%r13, %rdi
	callq	_init_ddc
	movq	%r13, %rdi
	callq	_ddc_clear_irq
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_2
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_31
## %bb.28:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	leal	-1(%rbx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.3:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_DDC_WRITE@GOTPCREL(%rip), %rbx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	orl	%eax, %ebx
	movl	%r13d, %edi
	callq	_REG_HDMI_I2C_TRANSACTION
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_hdmi_write
	incq	%r13
	cmpq	-104(%rbp), %r13                ## 8-byte Folded Reload
	movq	_DDC_WRITE@GOTPCREL(%rip), %rbx
	je	LBB0_16
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	leaq	(,%r13,2), %r14
	addq	%r13, %r14
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%r14,8), %eax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	4(%rsi,%r14,8), %ecx
	setne	%dl
	leal	(%rdx,%rax,2), %edi
	callq	_HDMI_DDC_DATA_DATA
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_HDMI_DDC_DATA_DATA_RW
	movl	%eax, %ebx
	orl	%r15d, %ebx
	testq	%r13, %r13
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	callq	_HDMI_DDC_DATA_INDEX
	orl	%ebx, %eax
	movq	_HDMI_DDC_DATA_INDEX_WRITE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%r14,8), %rcx
	addq	$4, %rcx
	movq	_REG_HDMI_DDC_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movq	%rcx, %rbx
	callq	_hdmi_write
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, (%rax,%r13,4)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%r15,%r14,8), %edi
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%edi, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%edi, %edi
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,8), %r15
	addq	$8, %r15
	xorl	%ebx, %ebx
	movq	_DDC_WRITE@GOTPCREL(%rip), %r12
	movq	_REG_HDMI_DDC_DATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_HDMI_DDC_DATA_DATA
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_HDMI_DDC_DATA_DATA_RW
	orl	%eax, %r14d
	movl	(%r13), %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_hdmi_write
	incq	%rbx
	movslq	(%r15), %rdi
	cmpq	%rdi, %rbx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%ebx, -56(%rbp)                 ## 4-byte Folded Spill
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-144(%rbp), %rbx                ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_HDMI_I2C_TRANSACTION_REG_CNT
	movl	%eax, %r15d
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DDC_READ@GOTPCREL(%rip), %rax
	andl	(%rbx), %ecx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_DDC_WRITE@GOTPCREL(%rip), %rax
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	callq	_HDMI_I2C_TRANSACTION_REG_RW
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_HDMI_I2C_TRANSACTION_REG_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	xorl	%eax, %eax
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_HDMI_I2C_TRANSACTION_REG_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_16:
	movq	_REG_HDMI_DDC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_HDMI_DDC_CTRL_TRANSACTION_CNT
	movq	_HDMI_DDC_CTRL_GO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_hdmi_write
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	(%rdi), %ebx
	callq	_sw_done
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wait_event_timeout
	testl	%eax, %eax
	jle	LBB0_17
## %bb.18:
	movq	_REG_HDMI_DDC_SW_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hdmi_read
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	$0, %eax
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_27
## %bb.19:
	xorl	%eax, %eax
	movq	_REG_HDMI_DDC_DATA@GOTPCREL(%rip), %r14
	movq	_HDMI_DDC_DATA_DATA@GOTPCREL(%rip), %r15
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	je	LBB0_26
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rdx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 4(%rcx,%rdx,8)
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	leaq	_msm_hdmi_i2c_xfer.nack(%rip), %rcx
	testl	%eax, (%rcx,%r13,4)
	jne	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_DDC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_HDMI_DDC_DATA_DATA_RW
	movl	%eax, %ebx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %edi
	callq	_HDMI_DDC_DATA_INDEX
	orl	%eax, %ebx
	movq	_HDMI_DDC_DATA_INDEX_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_hdmi_write
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_hdmi_read
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax,%rcx,8)
	jle	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rbx
	addq	$8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_hdmi_read
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_FIELD
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jl	LBB0_24
	jmp	LBB0_25
LBB0_17:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovnel	%eax, %ebx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	movq	_REG_HDMI_DDC_SW_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hdmi_read
	movl	%eax, %r14d
	movq	_REG_HDMI_DDC_HW_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hdmi_read
	movl	%eax, %r15d
	movq	_REG_HDMI_DDC_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hdmi_read
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DBG
	movq	%rbx, %rax
	jmp	LBB0_27
LBB0_26:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	jmp	LBB0_27
LBB0_30:
	leaq	L_.str.2(%rip), %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DBG
	movq	%r13, %rax
	jmp	LBB0_27
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @msm_hdmi_i2c_xfer.nack
_msm_hdmi_i2c_xfer.nack:
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.comm	_MAX_TRANSACTIONS,4,2           ## @MAX_TRANSACTIONS
	.comm	_REG_HDMI_CTRL,4,2              ## @REG_HDMI_CTRL
	.comm	_HDMI_CTRL_ENABLE,4,2           ## @HDMI_CTRL_ENABLE
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_DDC_WRITE,4,2                  ## @DDC_WRITE
	.comm	_HDMI_DDC_DATA_INDEX_WRITE,4,2  ## @HDMI_DDC_DATA_INDEX_WRITE
	.comm	_REG_HDMI_DDC_DATA,4,2          ## @REG_HDMI_DDC_DATA
	.comm	_DDC_READ,4,2                   ## @DDC_READ
	.comm	_HDMI_I2C_TRANSACTION_REG_START,4,2 ## @HDMI_I2C_TRANSACTION_REG_START
	.comm	_HDMI_I2C_TRANSACTION_REG_STOP,4,2 ## @HDMI_I2C_TRANSACTION_REG_STOP
	.comm	_REG_HDMI_DDC_CTRL,4,2          ## @REG_HDMI_DDC_CTRL
	.comm	_HDMI_DDC_CTRL_GO,4,2           ## @HDMI_DDC_CTRL_GO
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DDC timeout: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"sw_status=%08x, hw_status=%08x, int_ctrl=%08x"

	.comm	_REG_HDMI_DDC_SW_STATUS,4,2     ## @REG_HDMI_DDC_SW_STATUS
	.comm	_REG_HDMI_DDC_HW_STATUS,4,2     ## @REG_HDMI_DDC_HW_STATUS
	.comm	_REG_HDMI_DDC_INT_CTRL,4,2      ## @REG_HDMI_DDC_INT_CTRL
L_.str.2:                               ## @.str.2
	.asciz	"ddc_status=%08x"

	.no_dead_strip	_msm_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 msm_hdmi_i2c_xfer
_msm_hdmi_i2c_xfer:                     ; @msm_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
	sub	sp, sp, #64
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_to_hdmi_i2c_adapter
	mov	x25, x0
	ldr	x19, [x0, #8]
	ldr	x24, [x19]
Lloh3:
	adrp	x8, _MAX_TRANSACTIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TRANSACTIONS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	lsl	x8, x1, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	sp, x8
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_min
	mov	x22, x0
Lloh8:
	adrp	x8, _REG_HDMI_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_HDMI_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
Lloh11:
	adrp	x8, _HDMI_CTRL_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_CTRL_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	bl	_WARN_ON
	cbz	w22, LBB0_22
; %bb.1:
	mov	x0, x25
	bl	_init_ddc
	mov	x0, x25
	bl	_ddc_clear_irq
	mov	x23, x0
	cbnz	w0, LBB0_23
; %bb.2:
	stur	x25, [x29, #-128]               ; 8-byte Folded Spill
	stur	x24, [x29, #-144]               ; 8-byte Folded Spill
Lloh14:
	adrp	x23, _I2C_M_RD@GOTPAGE
Lloh15:
	ldr	x23, [x23, _I2C_M_RD@GOTPAGEOFF]
	mov	w8, w22
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh16:
	adrp	x21, _REG_HDMI_DDC_DATA@GOTPAGE
Lloh17:
	ldr	x21, [x21, _REG_HDMI_DDC_DATA@GOTPAGEOFF]
	stur	w22, [x29, #-132]               ; 4-byte Folded Spill
	subs	w8, w22, #1
	stp	x20, x8, [x29, #-120]           ; 16-byte Folded Spill
	b.lt	LBB0_13
; %bb.3:
	mov	x24, #0
	mov	w22, #0
	mov	w8, #24
Lloh18:
	adrp	x26, _DDC_WRITE@GOTPAGE
Lloh19:
	ldr	x26, [x26, _DDC_WRITE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w0, w22
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_HDMI_I2C_TRANSACTION_REG_CNT
	mov	x25, x0
	ldr	w8, [x27]
Lloh20:
	adrp	x23, _I2C_M_RD@GOTPAGE
Lloh21:
	ldr	x23, [x23, _I2C_M_RD@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
Lloh22:
	adrp	x8, _DDC_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DDC_READ@GOTPAGEOFF]
	csel	x8, x26, x8, eq
	ldr	w0, [x8]
	bl	_HDMI_I2C_TRANSACTION_REG_RW
	orr	w8, w0, w25
Lloh24:
	adrp	x9, _HDMI_I2C_TRANSACTION_REG_START@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HDMI_I2C_TRANSACTION_REG_START@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _HDMI_I2C_TRANSACTION_REG_STOP@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HDMI_I2C_TRANSACTION_REG_STOP@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldur	x10, [x29, #-112]               ; 8-byte Folded Reload
	cmp	x24, x10
	csel	w9, w9, wzr, eq
	orr	w25, w8, w9
	mov	x0, x24
	bl	_REG_HDMI_I2C_TRANSACTION
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_hdmi_write
	add	x24, x24, #1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cmp	x24, x8
	mov	w8, #24
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mul	x8, x24, x8
	add	x27, x20, x8
	ldr	w8, [x20, x8]
	ldr	w9, [x27, #4]!
	mov	w28, #24
	ldr	w10, [x23]
	tst	w10, w9
	cset	w0, ne
	bfi	w0, w8, #1, #31
	bl	_HDMI_DDC_DATA_DATA
	mov	x25, x0
	ldr	w0, [x26]
	bl	_HDMI_DDC_DATA_DATA_RW
	orr	w25, w0, w25
	cbnz	x24, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	bl	_HDMI_DDC_DATA_INDEX
Lloh30:
	adrp	x8, _HDMI_DDC_DATA_INDEX_WRITE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDMI_DDC_DATA_INDEX_WRITE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w9, w0, w25
	orr	w25, w9, w8
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x25
	bl	_hdmi_write
	add	w22, w22, #1
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	str	w22, [x8, x24, lsl #2]
	ldr	w8, [x27]
	ldr	w9, [x23]
	madd	x23, x24, x28, x20
	ldr	w0, [x23, #8]!
	tst	w9, w8
	mov	w8, #24
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	madd	x8, x24, x8, x20
	add	x20, x8, #16
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	w0, [x8, x28, lsl #2]
	bl	_HDMI_DDC_DATA_DATA
	mov	x25, x0
	ldr	w0, [x26]
	bl	_HDMI_DDC_DATA_DATA_RW
	orr	w2, w0, w25
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hdmi_write
	add	x28, x28, #1
	ldrsw	x0, [x23]
	cmp	x28, x0
	b.lt	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, w28
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	b	LBB0_5
LBB0_13:
Lloh33:
	adrp	x8, _REG_HDMI_DDC_CTRL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REG_HDMI_DDC_CTRL@GOTPAGEOFF]
Lloh35:
	ldr	w24, [x8]
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_HDMI_DDC_CTRL_TRANSACTION_CNT
Lloh36:
	adrp	x8, _HDMI_DDC_CTRL_GO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDMI_DDC_CTRL_GO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x24
	bl	_hdmi_write
	ldur	x0, [x29, #-128]                ; 8-byte Folded Reload
	ldr	w23, [x0]
	bl	_sw_done
	mov	x1, x0
Lloh39:
	adrp	x8, _HZ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	mov	x0, x23
	bl	_wait_event_timeout
	cmp	w0, #0
	b.le	LBB0_25
; %bb.14:
Lloh42:
	adrp	x8, _REG_HDMI_DDC_SW_STATUS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _REG_HDMI_DDC_SW_STATUS@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.15:
	mov	x22, x0
	mov	x23, #0
	mov	w26, #24
Lloh45:
	adrp	x24, _HDMI_DDC_DATA_DATA@GOTPAGE
Lloh46:
	ldr	x24, [x24, _HDMI_DDC_DATA_DATA@GOTPAGEOFF]
Lloh47:
	adrp	x27, _msm_hdmi_i2c_xfer.nack@PAGE
Lloh48:
	add	x27, x27, _msm_hdmi_i2c_xfer.nack@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cmp	x23, x8
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	b.eq	LBB0_26
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	madd	x8, x23, x26, x20
	ldr	w8, [x8, #4]
Lloh49:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh50:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x27, x23, lsl #2]
	tst	w8, w22
	b.ne	LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh52:
	adrp	x8, _DDC_READ@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DDC_READ@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_HDMI_DDC_DATA_DATA_RW
	mov	x25, x0
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	w0, [x8, x23, lsl #2]
	bl	_HDMI_DDC_DATA_INDEX
	orr	w8, w0, w25
Lloh55:
	adrp	x9, _HDMI_DDC_DATA_INDEX_WRITE@GOTPAGE
Lloh56:
	ldr	x9, [x9, _HDMI_DDC_DATA_INDEX_WRITE@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hdmi_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hdmi_read
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	madd	x25, x23, x26, x8
	ldr	w8, [x25, #8]!
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x20, #0
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	madd	x8, x23, x26, x8
	add	x28, x8, #16
LBB0_21:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hdmi_read
	mov	x1, x24
	bl	_FIELD
	ldr	x8, [x28]
	str	w0, [x8, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [x25]
	cmp	x20, x8
	b.lt	LBB0_21
	b	LBB0_16
LBB0_22:
	mov	w23, #0
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh58:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh59:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.24:
	mov	x0, x23
	sub	sp, x29, #80
	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
LBB0_25:
Lloh61:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	csneg	w23, w0, w8, ne
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ldr	w0, [x8]
Lloh64:
	adrp	x1, l_.str@PAGE
Lloh65:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_warn
Lloh66:
	adrp	x8, _REG_HDMI_DDC_SW_STATUS@GOTPAGE
Lloh67:
	ldr	x8, [x8, _REG_HDMI_DDC_SW_STATUS@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	mov	x20, x0
Lloh69:
	adrp	x8, _REG_HDMI_DDC_HW_STATUS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _REG_HDMI_DDC_HW_STATUS@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	mov	x21, x0
Lloh72:
	adrp	x8, _REG_HDMI_DDC_INT_CTRL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _REG_HDMI_DDC_INT_CTRL@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #-16]!
Lloh75:
	adrp	x0, l_.str.1@PAGE
Lloh76:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DBG
	add	sp, sp, #16
	b	LBB0_23
LBB0_26:
	ldur	w23, [x29, #-132]               ; 4-byte Folded Reload
	b	LBB0_23
LBB0_27:
Lloh77:
	adrp	x0, l_.str.2@PAGE
Lloh78:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_DBG
	b	LBB0_23
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @msm_hdmi_i2c_xfer.nack
_msm_hdmi_i2c_xfer.nack:
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.comm	_MAX_TRANSACTIONS,4,2           ; @MAX_TRANSACTIONS
	.comm	_REG_HDMI_CTRL,4,2              ; @REG_HDMI_CTRL
	.comm	_HDMI_CTRL_ENABLE,4,2           ; @HDMI_CTRL_ENABLE
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_DDC_WRITE,4,2                  ; @DDC_WRITE
	.comm	_HDMI_DDC_DATA_INDEX_WRITE,4,2  ; @HDMI_DDC_DATA_INDEX_WRITE
	.comm	_REG_HDMI_DDC_DATA,4,2          ; @REG_HDMI_DDC_DATA
	.comm	_DDC_READ,4,2                   ; @DDC_READ
	.comm	_HDMI_I2C_TRANSACTION_REG_START,4,2 ; @HDMI_I2C_TRANSACTION_REG_START
	.comm	_HDMI_I2C_TRANSACTION_REG_STOP,4,2 ; @HDMI_I2C_TRANSACTION_REG_STOP
	.comm	_REG_HDMI_DDC_CTRL,4,2          ; @REG_HDMI_DDC_CTRL
	.comm	_HDMI_DDC_CTRL_GO,4,2           ; @HDMI_DDC_CTRL_GO
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DDC timeout: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"sw_status=%08x, hw_status=%08x, int_ctrl=%08x"

	.comm	_REG_HDMI_DDC_SW_STATUS,4,2     ; @REG_HDMI_DDC_SW_STATUS
	.comm	_REG_HDMI_DDC_HW_STATUS,4,2     ; @REG_HDMI_DDC_HW_STATUS
	.comm	_REG_HDMI_DDC_INT_CTRL,4,2      ; @REG_HDMI_DDC_INT_CTRL
l_.str.2:                               ; @.str.2
	.asciz	"ddc_status=%08x"

	.no_dead_strip	_msm_hdmi_i2c_xfer
.subsections_via_symbols
