	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_crtc_mode_set_nofb
_vc4_crtc_mode_set_nofb:                ## @vc4_crtc_mode_set_nofb
	.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, %r13
	movq	8(%rdi), %rdi
	callq	_to_vc4_dev
	movq	%r13, %rdi
	callq	_to_vc4_crtc
	movq	%rax, %r14
	movq	(%r13), %rdi
	callq	_to_vc4_crtc_state
	movq	%rax, %r15
	movq	(%r13), %rax
	movl	(%rax), %r12d
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	$2, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_SCALER_DISPCTRL_DSP3_MUX@GOTPCREL(%rip), %rax
	cmpq	$1, (%r15)
	movl	(%rax), %esi
	movl	$3, %edi
	sbbl	$0, %edi
	callq	_VC4_SET_FIELD
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SCALER_DISPCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HVS_READ
	movq	_SCALER_DISPCTRL_DSP3_MUX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_SCALER_DISPCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_HVS_WRITE
LBB0_2:
	cmpq	$0, (%r15)
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_vc4_crtc_config_pv
LBB0_4:
	andl	%r12d, %ebx
	movl	(%r14), %edi
	callq	_SCALER_DISPBKGNDX
	movq	_SCALER_DISPBKGND_AUTOHS@GOTPCREL(%rip), %rcx
	movq	_SCALER_DISPBKGND_GAMMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	_SCALER_DISPBKGND_INTERLACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_6:
	orl	%ebx, %esi
	movl	%eax, %edi
	callq	_HVS_WRITE
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc4_crtc_lut_load              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_SCALER_DISPCTRL_DSP3_MUX,4,2   ## @SCALER_DISPCTRL_DSP3_MUX
	.comm	_SCALER_DISPCTRL,4,2            ## @SCALER_DISPCTRL
	.comm	_SCALER_DISPCTRL_DSP3_MUX_MASK,4,2 ## @SCALER_DISPCTRL_DSP3_MUX_MASK
	.comm	_SCALER_DISPBKGND_AUTOHS,4,2    ## @SCALER_DISPBKGND_AUTOHS
	.comm	_SCALER_DISPBKGND_GAMMA,4,2     ## @SCALER_DISPBKGND_GAMMA
	.comm	_SCALER_DISPBKGND_INTERLACE,4,2 ## @SCALER_DISPBKGND_INTERLACE
	.no_dead_strip	_vc4_crtc_mode_set_nofb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_crtc_mode_set_nofb
_vc4_crtc_mode_set_nofb:                ; @vc4_crtc_mode_set_nofb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_to_vc4_dev
	mov	x0, x19
	bl	_to_vc4_crtc
	mov	x20, x0
	ldr	x0, [x19]
	bl	_to_vc4_crtc_state
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w23, [x8]
Lloh0:
	adrp	x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w8, [x20]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _SCALER_DISPCTRL_DSP3_MUX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCALER_DISPCTRL_DSP3_MUX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	cmp	x8, #0
	mov	w8, #2
	cinc	w0, w8, ne
	bl	_VC4_SET_FIELD
	mov	x22, x0
Lloh6:
	adrp	x25, _SCALER_DISPCTRL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SCALER_DISPCTRL@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_HVS_READ
Lloh8:
	adrp	x8, _SCALER_DISPCTRL_DSP3_MUX_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCALER_DISPCTRL_DSP3_MUX_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w0, [x25]
	orr	w1, w8, w22
	bl	_HVS_WRITE
LBB0_2:
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_vc4_crtc_config_pv
LBB0_4:
	ldr	w0, [x20]
	bl	_SCALER_DISPBKGNDX
Lloh11:
	adrp	x8, _SCALER_DISPBKGND_AUTOHS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCALER_DISPBKGND_AUTOHS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _SCALER_DISPBKGND_GAMMA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SCALER_DISPBKGND_GAMMA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _SCALER_DISPBKGND_INTERLACE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SCALER_DISPBKGND_INTERLACE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w24, w23
	csel	w9, wzr, w9, eq
	orr	w1, w8, w9
	bl	_HVS_WRITE
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vc4_crtc_lut_load
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_SCALER_DISPCTRL_DSP3_MUX,4,2   ; @SCALER_DISPCTRL_DSP3_MUX
	.comm	_SCALER_DISPCTRL,4,2            ; @SCALER_DISPCTRL
	.comm	_SCALER_DISPCTRL_DSP3_MUX_MASK,4,2 ; @SCALER_DISPCTRL_DSP3_MUX_MASK
	.comm	_SCALER_DISPBKGND_AUTOHS,4,2    ; @SCALER_DISPBKGND_AUTOHS
	.comm	_SCALER_DISPBKGND_GAMMA,4,2     ; @SCALER_DISPBKGND_GAMMA
	.comm	_SCALER_DISPBKGND_INTERLACE,4,2 ; @SCALER_DISPBKGND_INTERLACE
	.no_dead_strip	_vc4_crtc_mode_set_nofb
.subsections_via_symbols
