	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_dsi_irq_handler
_vc4_dsi_irq_handler:                   ## @vc4_dsi_irq_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_INT_STAT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_DSI_PORT_READ
	movl	%eax, %ebx
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_DSI_PORT_WRITE
	movq	_DSI1_INT_ERR_SYNC_ESC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	leaq	-36(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_ERR_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_ERR_CONT_LP0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_ERR_CONT_LP1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_HSTX_TO@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str.4(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_LPRX_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_TA_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_PR_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_dsi_handle_error
	movq	_DSI1_INT_TXPKT1_DONE@GOTPCREL(%rip), %rax
	movq	_DSI1_INT_PHY_DIR_RTF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_2
## %bb.1:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_complete
	jmp	LBB0_4
LBB0_2:
	testl	%ebx, (%r12)
	je	LBB0_5
## %bb.3:
	leaq	4(%r14), %rdi
	callq	_complete
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
LBB0_5:
	movl	(%r15), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_STAT,4,2                   ## @INT_STAT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DSI1_INT_ERR_SYNC_ESC,4,2      ## @DSI1_INT_ERR_SYNC_ESC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LPDT sync"

	.comm	_DSI1_INT_ERR_CONTROL,4,2       ## @DSI1_INT_ERR_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"data lane 0 sequence"

	.comm	_DSI1_INT_ERR_CONT_LP0,4,2      ## @DSI1_INT_ERR_CONT_LP0
L_.str.2:                               ## @.str.2
	.asciz	"LP0 contention"

	.comm	_DSI1_INT_ERR_CONT_LP1,4,2      ## @DSI1_INT_ERR_CONT_LP1
L_.str.3:                               ## @.str.3
	.asciz	"LP1 contention"

	.comm	_DSI1_INT_HSTX_TO,4,2           ## @DSI1_INT_HSTX_TO
L_.str.4:                               ## @.str.4
	.asciz	"HSTX timeout"

	.comm	_DSI1_INT_LPRX_TO,4,2           ## @DSI1_INT_LPRX_TO
L_.str.5:                               ## @.str.5
	.asciz	"LPRX timeout"

	.comm	_DSI1_INT_TA_TO,4,2             ## @DSI1_INT_TA_TO
L_.str.6:                               ## @.str.6
	.asciz	"turnaround timeout"

	.comm	_DSI1_INT_PR_TO,4,2             ## @DSI1_INT_PR_TO
L_.str.7:                               ## @.str.7
	.asciz	"peripheral reset timeout"

	.comm	_DSI1_INT_TXPKT1_DONE,4,2       ## @DSI1_INT_TXPKT1_DONE
	.comm	_DSI1_INT_PHY_DIR_RTF,4,2       ## @DSI1_INT_PHY_DIR_RTF
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_vc4_dsi_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_dsi_irq_handler
_vc4_dsi_irq_handler:                   ; @vc4_dsi_irq_handler
	.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	x19, x1
Lloh0:
	adrp	x21, _INT_STAT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INT_STAT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_DSI_PORT_READ
	mov	x20, x0
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_DSI_PORT_WRITE
Lloh5:
	adrp	x8, _DSI1_INT_ERR_SYNC_ESC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSI1_INT_ERR_SYNC_ESC@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x4, l_.str@PAGE
Lloh9:
	add	x4, x4, l_.str@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh10:
	adrp	x8, _DSI1_INT_ERR_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DSI1_INT_ERR_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x4, l_.str.1@PAGE
Lloh14:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh15:
	adrp	x8, _DSI1_INT_ERR_CONT_LP0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DSI1_INT_ERR_CONT_LP0@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x4, l_.str.2@PAGE
Lloh19:
	add	x4, x4, l_.str.2@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh20:
	adrp	x8, _DSI1_INT_ERR_CONT_LP1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DSI1_INT_ERR_CONT_LP1@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x4, l_.str.3@PAGE
Lloh24:
	add	x4, x4, l_.str.3@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh25:
	adrp	x21, _DSI1_INT_HSTX_TO@GOTPAGE
Lloh26:
	ldr	x21, [x21, _DSI1_INT_HSTX_TO@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh27:
	adrp	x4, l_.str.4@PAGE
Lloh28:
	add	x4, x4, l_.str.4@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh29:
	adrp	x8, _DSI1_INT_LPRX_TO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DSI1_INT_LPRX_TO@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x4, l_.str.5@PAGE
Lloh33:
	add	x4, x4, l_.str.5@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh34:
	adrp	x8, _DSI1_INT_TA_TO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DSI1_INT_TA_TO@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x4, l_.str.6@PAGE
Lloh38:
	add	x4, x4, l_.str.6@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh39:
	adrp	x8, _DSI1_INT_PR_TO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DSI1_INT_PR_TO@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
Lloh42:
	adrp	x4, l_.str.7@PAGE
Lloh43:
	add	x4, x4, l_.str.7@PAGEOFF
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_dsi_handle_error
Lloh44:
	adrp	x8, _DSI1_INT_TXPKT1_DONE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DSI1_INT_TXPKT1_DONE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _DSI1_INT_PHY_DIR_RTF@GOTPAGE
Lloh48:
	ldr	x9, [x9, _DSI1_INT_PHY_DIR_RTF@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #4
	bl	_complete
	b	LBB0_4
LBB0_2:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.3:
	add	x0, x19, #4
	bl	_complete
Lloh50:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
LBB0_4:
Lloh53:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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_6:
	add	x8, sp, #12
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_STAT,4,2                   ; @INT_STAT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DSI1_INT_ERR_SYNC_ESC,4,2      ; @DSI1_INT_ERR_SYNC_ESC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LPDT sync"

	.comm	_DSI1_INT_ERR_CONTROL,4,2       ; @DSI1_INT_ERR_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"data lane 0 sequence"

	.comm	_DSI1_INT_ERR_CONT_LP0,4,2      ; @DSI1_INT_ERR_CONT_LP0
l_.str.2:                               ; @.str.2
	.asciz	"LP0 contention"

	.comm	_DSI1_INT_ERR_CONT_LP1,4,2      ; @DSI1_INT_ERR_CONT_LP1
l_.str.3:                               ; @.str.3
	.asciz	"LP1 contention"

	.comm	_DSI1_INT_HSTX_TO,4,2           ; @DSI1_INT_HSTX_TO
l_.str.4:                               ; @.str.4
	.asciz	"HSTX timeout"

	.comm	_DSI1_INT_LPRX_TO,4,2           ; @DSI1_INT_LPRX_TO
l_.str.5:                               ; @.str.5
	.asciz	"LPRX timeout"

	.comm	_DSI1_INT_TA_TO,4,2             ; @DSI1_INT_TA_TO
l_.str.6:                               ; @.str.6
	.asciz	"turnaround timeout"

	.comm	_DSI1_INT_PR_TO,4,2             ; @DSI1_INT_PR_TO
l_.str.7:                               ; @.str.7
	.asciz	"peripheral reset timeout"

	.comm	_DSI1_INT_TXPKT1_DONE,4,2       ; @DSI1_INT_TXPKT1_DONE
	.comm	_DSI1_INT_PHY_DIR_RTF,4,2       ; @DSI1_INT_PHY_DIR_RTF
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_vc4_dsi_irq_handler
.subsections_via_symbols
