	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_irq                        ## -- Begin function vc4_irq
	.p2align	4, 0x90
_vc4_irq:                               ## @vc4_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, %r14
	movq	%rsi, %rdi
	callq	_to_vc4_dev
	movq	%rax, %r15
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_barrier
	movq	_V3D_INTCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_V3D_READ
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_V3D_WRITE
	movq	_V3D_INT_OUTOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %esi
	je	LBB0_2
## %bb.1:
	movq	_V3D_INTDIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V3D_WRITE
	leaq	4(%r15), %rdi
	callq	_schedule_work
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	movq	_V3D_INT_FLDONE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_vc4_irq_finish_bin_job
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	movq	_V3D_INT_FRDONE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_vc4_irq_finish_render_job
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_V3D_INTCTL,4,2                 ## @V3D_INTCTL
	.comm	_V3D_INT_OUTOMEM,4,2            ## @V3D_INT_OUTOMEM
	.comm	_V3D_INTDIS,4,2                 ## @V3D_INTDIS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_V3D_INT_FLDONE,4,2             ## @V3D_INT_FLDONE
	.comm	_V3D_INT_FRDONE,4,2             ## @V3D_INT_FRDONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_irq                        ; -- Begin function vc4_irq
	.p2align	2
_vc4_irq:                               ; @vc4_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	x0, x1
	bl	_to_vc4_dev
	mov	x20, x0
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_barrier
Lloh3:
	adrp	x23, _V3D_INTCTL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _V3D_INTCTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_V3D_READ
	mov	x21, x0
	ldr	w0, [x23]
	mov	x1, x21
	bl	_V3D_WRITE
Lloh5:
	adrp	x8, _V3D_INT_OUTOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V3D_INT_OUTOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x23, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IRQ_HANDLED@GOTPAGEOFF]
	tst	w1, w21
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _V3D_INTDIS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V3D_INTDIS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_V3D_WRITE
	add	x0, x20, #4
	bl	_schedule_work
	ldr	w22, [x23]
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:
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x19
	bl	_vc4_irq_finish_bin_job
	mov	x0, x20
	bl	_spin_unlock
	ldr	w22, [x23]
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:
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x19
	bl	_vc4_irq_finish_render_job
	mov	x0, x20
	bl	_spin_unlock
	ldr	w22, [x23]
LBB0_6:
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_V3D_INTCTL,4,2                 ; @V3D_INTCTL
	.comm	_V3D_INT_OUTOMEM,4,2            ; @V3D_INT_OUTOMEM
	.comm	_V3D_INTDIS,4,2                 ; @V3D_INTDIS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_V3D_INT_FLDONE,4,2             ; @V3D_INT_FLDONE
	.comm	_V3D_INT_FRDONE,4,2             ; @V3D_INT_FRDONE
.subsections_via_symbols
