	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_handle_hdmi_int_1
_anx78xx_handle_hdmi_int_1:             ## @anx78xx_handle_hdmi_int_1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	(%r14), %rax
	movq	_I2C_IDX_RX_P0@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_INT_STATUS1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_1
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_1:
	movq	_SP_CKDT_CHG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_SP_SCDT_CHG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_SYSTEM_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
LBB0_12:
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_13
LBB0_5:
	movl	-28(%rbp), %eax
	movq	_SP_TMDS_CLOCK_DET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.8:
	movq	_SP_TMDS_DE_DET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_anx78xx_dp_link_training
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Handle HDMI interrupt 1: %02x\n"

	.comm	_I2C_IDX_RX_P0,8,3              ## @I2C_IDX_RX_P0
	.comm	_SP_INT_STATUS1_REG,4,2         ## @SP_INT_STATUS1_REG
L_.str.1:                               ## @.str.1
	.asciz	"Write HDMI int 1 failed: %d\n"

	.comm	_SP_CKDT_CHG,4,2                ## @SP_CKDT_CHG
	.comm	_SP_SCDT_CHG,4,2                ## @SP_SCDT_CHG
L_.str.2:                               ## @.str.2
	.asciz	"IRQ: HDMI input detected\n"

	.comm	_SP_SYSTEM_STATUS_REG,4,2       ## @SP_SYSTEM_STATUS_REG
L_.str.3:                               ## @.str.3
	.asciz	"Read system status reg failed: %d\n"

	.comm	_SP_TMDS_CLOCK_DET,4,2          ## @SP_TMDS_CLOCK_DET
L_.str.4:                               ## @.str.4
	.asciz	"IRQ: *** Waiting for HDMI clock ***\n"

	.comm	_SP_TMDS_DE_DET,4,2             ## @SP_TMDS_DE_DET
L_.str.5:                               ## @.str.5
	.asciz	"IRQ: *** Waiting for HDMI signal ***\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to start link training: %d\n"

	.no_dead_strip	_anx78xx_handle_hdmi_int_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anx78xx_handle_hdmi_int_1
_anx78xx_handle_hdmi_int_1:             ; @anx78xx_handle_hdmi_int_1
	.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	x20, x1
	mov	x19, x0
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _I2C_IDX_RX_P0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _I2C_IDX_RX_P0@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh4:
	adrp	x8, _SP_INT_STATUS1_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SP_INT_STATUS1_REG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_regmap_write
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_DRM_ERROR
LBB0_2:
Lloh9:
	adrp	x8, _SP_CKDT_CHG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SP_CKDT_CHG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _SP_SCDT_CHG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SP_SCDT_CHG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
LBB0_4:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
Lloh17:
	adrp	x8, _SP_SYSTEM_STATUS_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SP_SYSTEM_STATUS_REG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_8
; %bb.5:
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_DRM_ERROR
LBB0_7:
	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
LBB0_8:
	ldr	w8, [sp, #12]
Lloh22:
	adrp	x9, _SP_TMDS_CLOCK_DET@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SP_TMDS_CLOCK_DET@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
Lloh25:
	adrp	x9, _SP_TMDS_DE_DET@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SP_TMDS_DE_DET@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_anx78xx_dp_link_training
	cbz	w0, LBB0_7
; %bb.11:
	mov	x1, x0
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_12:
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_7
LBB0_13:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Handle HDMI interrupt 1: %02x\n"

	.comm	_I2C_IDX_RX_P0,8,3              ; @I2C_IDX_RX_P0
	.comm	_SP_INT_STATUS1_REG,4,2         ; @SP_INT_STATUS1_REG
l_.str.1:                               ; @.str.1
	.asciz	"Write HDMI int 1 failed: %d\n"

	.comm	_SP_CKDT_CHG,4,2                ; @SP_CKDT_CHG
	.comm	_SP_SCDT_CHG,4,2                ; @SP_SCDT_CHG
l_.str.2:                               ; @.str.2
	.asciz	"IRQ: HDMI input detected\n"

	.comm	_SP_SYSTEM_STATUS_REG,4,2       ; @SP_SYSTEM_STATUS_REG
l_.str.3:                               ; @.str.3
	.asciz	"Read system status reg failed: %d\n"

	.comm	_SP_TMDS_CLOCK_DET,4,2          ; @SP_TMDS_CLOCK_DET
l_.str.4:                               ; @.str.4
	.asciz	"IRQ: *** Waiting for HDMI clock ***\n"

	.comm	_SP_TMDS_DE_DET,4,2             ; @SP_TMDS_DE_DET
l_.str.5:                               ; @.str.5
	.asciz	"IRQ: *** Waiting for HDMI signal ***\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to start link training: %d\n"

	.no_dead_strip	_anx78xx_handle_hdmi_int_1
.subsections_via_symbols
