	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_irq
_v3d_irq:                               ## @v3d_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_V3D_CTL_INT_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_V3D_CORE_READ
	movl	%eax, %r13d
	movq	_V3D_CTL_INT_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	%r13d, %edx
	callq	_V3D_CORE_WRITE
	movq	_V3D_INT_OUTOMEM@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	40(%r15), %rdi
	callq	_schedule_work
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_2:
	movq	_V3D_INT_FLDONE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_to_v3d_fence
	movq	%rax, %rbx
	leaq	12(%r15), %rdi
	movl	4(%rax), %esi
	callq	_trace_v3d_bcl_irq
	movq	%rbx, %rdi
	callq	_dma_fence_signal
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_4:
	movq	_V3D_INT_FRDONE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	callq	_to_v3d_fence
	movq	%rax, %rbx
	leaq	12(%r15), %rdi
	movl	4(%rax), %esi
	callq	_trace_v3d_rcl_irq
	movq	%rbx, %rdi
	callq	_dma_fence_signal
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_6:
	movq	_V3D_INT_CSDDONE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_to_v3d_fence
	movq	%rax, %rbx
	leaq	12(%r15), %rdi
	movl	4(%rax), %esi
	callq	_trace_v3d_csd_irq
	movq	%rbx, %rdi
	callq	_dma_fence_signal
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_8:
	movq	_V3D_INT_GMPV@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
## %bb.9:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_10:
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.11:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_12
## %bb.13:
	movl	%r14d, %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v3d_hub_irq                    ## TAILCALL
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,8,3                   ## @IRQ_NONE
	.comm	_V3D_CTL_INT_STS,4,2            ## @V3D_CTL_INT_STS
	.comm	_V3D_CTL_INT_CLR,4,2            ## @V3D_CTL_INT_CLR
	.comm	_V3D_INT_OUTOMEM,4,2            ## @V3D_INT_OUTOMEM
	.comm	_IRQ_HANDLED,8,3                ## @IRQ_HANDLED
	.comm	_V3D_INT_FLDONE,4,2             ## @V3D_INT_FLDONE
	.comm	_V3D_INT_FRDONE,4,2             ## @V3D_INT_FRDONE
	.comm	_V3D_INT_CSDDONE,4,2            ## @V3D_INT_CSDDONE
	.comm	_V3D_INT_GMPV,4,2               ## @V3D_INT_GMPV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GMP violation\n"

	.no_dead_strip	_v3d_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v3d_irq
_v3d_irq:                               ; @v3d_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IRQ_NONE@GOTPAGEOFF]
	ldr	x22, [x23]
Lloh2:
	adrp	x8, _V3D_CTL_INT_STS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V3D_CTL_INT_STS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_V3D_CORE_READ
	mov	x21, x0
Lloh5:
	adrp	x8, _V3D_CTL_INT_CLR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V3D_CTL_INT_CLR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #0
	mov	x2, x21
	bl	_V3D_CORE_WRITE
Lloh8:
	adrp	x8, _V3D_INT_OUTOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V3D_INT_OUTOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #40
	bl	_schedule_work
	ldr	x22, [x24]
LBB0_2:
Lloh13:
	adrp	x8, _V3D_INT_FLDONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V3D_INT_FLDONE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_to_v3d_fence
	mov	x22, x0
	add	x0, x19, #12
	ldr	w1, [x22, #4]
	bl	_trace_v3d_bcl_irq
	mov	x0, x22
	bl	_dma_fence_signal
	ldr	x22, [x24]
LBB0_4:
Lloh16:
	adrp	x8, _V3D_INT_FRDONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V3D_INT_FRDONE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_to_v3d_fence
	mov	x22, x0
	add	x0, x19, #12
	ldr	w1, [x22, #4]
	bl	_trace_v3d_rcl_irq
	mov	x0, x22
	bl	_dma_fence_signal
	ldr	x22, [x24]
LBB0_6:
Lloh19:
	adrp	x8, _V3D_INT_CSDDONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V3D_INT_CSDDONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_to_v3d_fence
	mov	x22, x0
	add	x0, x19, #12
	ldr	w1, [x22, #4]
	bl	_trace_v3d_csd_irq
	mov	x0, x22
	bl	_dma_fence_signal
	ldr	x22, [x24]
LBB0_8:
Lloh22:
	adrp	x8, _V3D_INT_GMPV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V3D_INT_GMPV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #8]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_10:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_v3d_hub_irq
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,8,3                   ; @IRQ_NONE
	.comm	_V3D_CTL_INT_STS,4,2            ; @V3D_CTL_INT_STS
	.comm	_V3D_CTL_INT_CLR,4,2            ; @V3D_CTL_INT_CLR
	.comm	_V3D_INT_OUTOMEM,4,2            ; @V3D_INT_OUTOMEM
	.comm	_IRQ_HANDLED,8,3                ; @IRQ_HANDLED
	.comm	_V3D_INT_FLDONE,4,2             ; @V3D_INT_FLDONE
	.comm	_V3D_INT_FRDONE,4,2             ; @V3D_INT_FRDONE
	.comm	_V3D_INT_CSDDONE,4,2            ; @V3D_INT_CSDDONE
	.comm	_V3D_INT_GMPV,4,2               ; @V3D_INT_GMPV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GMP violation\n"

	.no_dead_strip	_v3d_irq
.subsections_via_symbols
