	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anx78xx_handle_dp_int_1
_anx78xx_handle_dp_int_1:               ## @anx78xx_handle_dp_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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_TX_P2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_SP_DP_INT_STATUS1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_1
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_SP_TRAINING_FINISH@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	testl	%ebx, (%rcx)
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_anx78xx_config_dp_output       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Handle DP interrupt 1: %02x\n"

	.comm	_I2C_IDX_TX_P2,8,3              ## @I2C_IDX_TX_P2
	.comm	_SP_DP_INT_STATUS1_REG,4,2      ## @SP_DP_INT_STATUS1_REG
	.comm	_SP_TRAINING_FINISH,4,2         ## @SP_TRAINING_FINISH
L_.str.1:                               ## @.str.1
	.asciz	"IRQ: hardware link training finished\n"

	.no_dead_strip	_anx78xx_handle_dp_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_dp_int_1
_anx78xx_handle_dp_int_1:               ; @anx78xx_handle_dp_int_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	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	x9, _I2C_IDX_TX_P2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_IDX_TX_P2@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
Lloh5:
	adrp	x8, _SP_DP_INT_STATUS1_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SP_DP_INT_STATUS1_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_regmap_write
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
Lloh8:
	adrp	x8, _SP_TRAINING_FINISH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SP_TRAINING_FINISH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_anx78xx_config_dp_output
LBB0_4:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Handle DP interrupt 1: %02x\n"

	.comm	_I2C_IDX_TX_P2,8,3              ; @I2C_IDX_TX_P2
	.comm	_SP_DP_INT_STATUS1_REG,4,2      ; @SP_DP_INT_STATUS1_REG
	.comm	_SP_TRAINING_FINISH,4,2         ; @SP_TRAINING_FINISH
l_.str.1:                               ; @.str.1
	.asciz	"IRQ: hardware link training finished\n"

	.no_dead_strip	_anx78xx_handle_dp_int_1
.subsections_via_symbols
