	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oaktrail_hdmi_i2c_handler
_oaktrail_hdmi_i2c_handler:             ## @oaktrail_hdmi_i2c_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rsi), %r14
	movq	_HDMI_HISR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_HDMI_READ
	movl	%eax, %ebx
	movq	_HDMI_INTR_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %esi
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	orl	%ebx, %esi
	callq	_HDMI_WRITE
	movl	(%r12), %edi
	callq	_HDMI_READ
LBB0_2:
	movq	_HDMI_INTR_I2C_FULL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_hdmi_i2c_read
LBB0_4:
	movq	_HDMI_INTR_I2C_DONE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_hdmi_i2c_transaction_done
LBB0_6:
	movq	%r14, %rdi
	callq	_complete
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_HISR,4,2                  ## @HDMI_HISR
	.comm	_HDMI_INTR_HPD,4,2              ## @HDMI_INTR_HPD
	.comm	_HDMI_INTR_I2C_FULL,4,2         ## @HDMI_INTR_I2C_FULL
	.comm	_HDMI_INTR_I2C_DONE,4,2         ## @HDMI_INTR_I2C_DONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_oaktrail_hdmi_i2c_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oaktrail_hdmi_i2c_handler
_oaktrail_hdmi_i2c_handler:             ; @oaktrail_hdmi_i2c_handler
	.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	x20, x1
	ldr	x19, [x1]
Lloh0:
	adrp	x22, _HDMI_HISR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HDMI_HISR@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_HDMI_READ
	mov	x21, x0
Lloh2:
	adrp	x8, _HDMI_INTR_HPD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_INTR_HPD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	orr	w1, w8, w21
	bl	_HDMI_WRITE
	ldr	w0, [x22]
	bl	_HDMI_READ
LBB0_2:
Lloh5:
	adrp	x8, _HDMI_INTR_I2C_FULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDMI_INTR_I2C_FULL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_hdmi_i2c_read
LBB0_4:
Lloh8:
	adrp	x8, _HDMI_INTR_I2C_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_INTR_I2C_DONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_hdmi_i2c_transaction_done
LBB0_6:
	mov	x0, x19
	bl	_complete
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_HISR,4,2                  ; @HDMI_HISR
	.comm	_HDMI_INTR_HPD,4,2              ; @HDMI_INTR_HPD
	.comm	_HDMI_INTR_I2C_FULL,4,2         ; @HDMI_INTR_I2C_FULL
	.comm	_HDMI_INTR_I2C_DONE,4,2         ; @HDMI_INTR_I2C_DONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_oaktrail_hdmi_i2c_handler
.subsections_via_symbols
