	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_crtc_disable_planes
_rcar_du_crtc_disable_planes:           ## @rcar_du_crtc_disable_planes
	.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	%rdi, %rbx
	movq	24(%rdi), %r13
	leaq	20(%rdi), %r14
	movq	%r14, %rdi
	callq	_drm_crtc_vblank_get
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	16(%rbx), %edi
	testb	$1, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_DS1PR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DS2PR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rcar_du_group_write
	movq	_DSSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rcar_du_crtc_read
	movq	_DSSR_VBK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	8(%rbx), %r15d
	xorl	%r12d, %r12d
	cmpl	$0, 4(%rbx)
	sete	%r12b
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_crtc_vblank_put            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DS2PR,4,2                      ## @DS2PR
	.comm	_DS1PR,4,2                      ## @DS1PR
	.comm	_DSSR,4,2                       ## @DSSR
	.comm	_DSSR_VBK,4,2                   ## @DSSR_VBK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vertical blanking timeout\n"

	.no_dead_strip	_rcar_du_crtc_disable_planes
.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_disable_planes
_rcar_du_crtc_disable_planes:           ; @rcar_du_crtc_disable_planes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x22, [x0, #24]
	add	x19, x0, #20
	mov	x0, x19
	bl	_drm_crtc_vblank_get
	add	x21, x20, #12
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _DS2PR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS2PR@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	adrp	x10, _DS1PR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DS1PR@GOTPAGEOFF]
	tst	w9, #0x1
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rcar_du_group_write
Lloh4:
	adrp	x8, _DSSR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DSSR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rcar_du_crtc_read
Lloh7:
	adrp	x8, _DSSR_VBK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DSSR_VBK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #1
	cinc	w8, w8, ne
	str	w8, [x20, #4]
	mov	x0, x21
	bl	_spin_unlock_irq
	ldp	w8, w21, [x20, #4]
	cmp	w8, #0
	cset	w20, eq
	mov	w0, #100
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_wait_event_timeout
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_crtc_vblank_put
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DS2PR,4,2                      ; @DS2PR
	.comm	_DS1PR,4,2                      ; @DS1PR
	.comm	_DSSR,4,2                       ; @DSSR
	.comm	_DSSR_VBK,4,2                   ; @DSSR_VBK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vertical blanking timeout\n"

	.no_dead_strip	_rcar_du_crtc_disable_planes
.subsections_via_symbols
