	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_crtc_atomic_enable
_vc4_crtc_atomic_enable:                ## @vc4_crtc_atomic_enable
	.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	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_to_vc4_dev
	movq	%rbx, %rdi
	callq	_to_vc4_crtc
	movq	%rax, %r12
	movq	(%rbx), %rdi
	callq	_to_vc4_crtc_state
	movq	%rax, %r15
	movq	(%rbx), %r13
	movq	%r14, %rdi
	callq	_require_hvs_enabled
	movq	%rbx, %rdi
	callq	_drm_crtc_vblank_on
	movq	%rbx, %rdi
	callq	_vc4_crtc_update_dlist
	movl	(%r12), %edi
	callq	_SCALER_DISPCTRLX
	movl	%eax, %r14d
	movl	4(%r13), %edi
	movq	_SCALER_DISPCTRLX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movl	(%r13), %edi
	movq	_SCALER_DISPCTRLX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%ebx, %eax
	movq	_SCALER_DISPCTRLX_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_SCALER_DISPCTRLX_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%ecx, %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_HVS_WRITE
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_PV_V_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_CRTC_READ
	movq	_PV_VCONTROL_VIDEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CRTC_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_DISPCTRLX_WIDTH,4,2     ## @SCALER_DISPCTRLX_WIDTH
	.comm	_SCALER_DISPCTRLX_HEIGHT,4,2    ## @SCALER_DISPCTRLX_HEIGHT
	.comm	_SCALER_DISPCTRLX_ENABLE,4,2    ## @SCALER_DISPCTRLX_ENABLE
	.comm	_SCALER_DISPCTRLX_ONESHOT,4,2   ## @SCALER_DISPCTRLX_ONESHOT
	.comm	_PV_V_CONTROL,4,2               ## @PV_V_CONTROL
	.comm	_PV_VCONTROL_VIDEN,4,2          ## @PV_VCONTROL_VIDEN
	.no_dead_strip	_vc4_crtc_atomic_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_crtc_atomic_enable
_vc4_crtc_atomic_enable:                ; @vc4_crtc_atomic_enable
	.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, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_to_vc4_dev
	mov	x0, x19
	bl	_to_vc4_crtc
	mov	x21, x0
	ldr	x0, [x19]
	bl	_to_vc4_crtc_state
	mov	x22, x0
	ldr	x23, [x19]
	mov	x0, x20
	bl	_require_hvs_enabled
	mov	x0, x19
	bl	_drm_crtc_vblank_on
	mov	x0, x19
	bl	_vc4_crtc_update_dlist
	ldr	w0, [x21]
	bl	_SCALER_DISPCTRLX
	mov	x19, x0
	ldr	w0, [x23, #4]
Lloh0:
	adrp	x8, _SCALER_DISPCTRLX_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALER_DISPCTRLX_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x20, x0
	ldr	w0, [x23]
Lloh3:
	adrp	x8, _SCALER_DISPCTRLX_HEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCALER_DISPCTRLX_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w8, w0, w20
Lloh6:
	adrp	x9, _SCALER_DISPCTRLX_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCALER_DISPCTRLX_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x22]
Lloh9:
	adrp	x10, _SCALER_DISPCTRLX_ONESHOT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SCALER_DISPCTRLX_ONESHOT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
	mov	x0, x19
	bl	_HVS_WRITE
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh12:
	adrp	x8, _PV_V_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PV_V_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_CRTC_READ
Lloh15:
	adrp	x8, _PV_VCONTROL_VIDEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PV_VCONTROL_VIDEN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, 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	_CRTC_WRITE
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_DISPCTRLX_WIDTH,4,2     ; @SCALER_DISPCTRLX_WIDTH
	.comm	_SCALER_DISPCTRLX_HEIGHT,4,2    ; @SCALER_DISPCTRLX_HEIGHT
	.comm	_SCALER_DISPCTRLX_ENABLE,4,2    ; @SCALER_DISPCTRLX_ENABLE
	.comm	_SCALER_DISPCTRLX_ONESHOT,4,2   ; @SCALER_DISPCTRLX_ONESHOT
	.comm	_PV_V_CONTROL,4,2               ; @PV_V_CONTROL
	.comm	_PV_VCONTROL_VIDEN,4,2          ; @PV_VCONTROL_VIDEN
	.no_dead_strip	_vc4_crtc_atomic_enable
.subsections_via_symbols
