	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_crtc_irq
_rcar_du_crtc_irq:                      ## @rcar_du_crtc_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, %rbx
	movq	24(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	12(%rsi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_DSSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rcar_du_crtc_read
	movl	%eax, %r12d
	movq	_DSRCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DSRCR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_rcar_du_crtc_write
	movq	_DSSR_VBK@GOTPCREL(%rip), %r13
	testl	%r12d, (%r13)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	decq	%rax
	movq	%rax, (%rbx)
	jne	LBB0_4
## %bb.3:
	leaq	16(%rbx), %rdi
	callq	_wake_up
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%r12d, (%r13)
	je	LBB0_8
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jg	LBB0_7
## %bb.6:
	leaq	8(%rbx), %rdi
	callq	_drm_crtc_handle_vblank
	movq	%rbx, %rdi
	callq	_rcar_du_crtc_finish_page_flip
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %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	_DSSR,4,2                       ## @DSSR
	.comm	_DSRCR,4,2                      ## @DSRCR
	.comm	_DSRCR_MASK,4,2                 ## @DSRCR_MASK
	.comm	_DSSR_VBK,4,2                   ## @DSSR_VBK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rcar_du_crtc_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_du_crtc_irq
_rcar_du_crtc_irq:                      ; @rcar_du_crtc_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
	ldr	x23, [x1, #24]
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x21, x1, #12
	mov	x0, x21
	bl	_spin_lock
Lloh3:
	adrp	x8, _DSSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rcar_du_crtc_read
	mov	x22, x0
Lloh6:
	adrp	x8, _DSRCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DSRCR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DSRCR_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DSRCR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w2, w8, w0
	mov	x0, x19
	bl	_rcar_du_crtc_write
Lloh12:
	adrp	x24, _DSSR_VBK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DSSR_VBK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_4
; %bb.3:
	add	x0, x19, #16
	bl	_wake_up
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #2
	b.gt	LBB0_7
; %bb.6:
	add	x0, x19, #8
	bl	_drm_crtc_handle_vblank
	mov	x0, x19
	bl	_rcar_du_crtc_finish_page_flip
LBB0_7:
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x20
	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	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DSSR,4,2                       ; @DSSR
	.comm	_DSRCR,4,2                      ; @DSRCR
	.comm	_DSRCR_MASK,4,2                 ; @DSRCR_MASK
	.comm	_DSSR_VBK,4,2                   ; @DSSR_VBK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rcar_du_crtc_irq
.subsections_via_symbols
