	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_g12a_crtc_atomic_enable
_meson_g12a_crtc_atomic_enable:         ## @meson_g12a_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, %r14
	callq	_to_meson_crtc
	movq	(%r14), %r12
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movl	$11, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %edi
	movl	$2303, %esi                     ## imm = 0x8FF
	callq	_FIELD_PREP
	movl	%eax, %r15d
	movq	(%r13), %rbx
	movq	_VPP_PREBLEND_VD1_V_START_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__REG
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	4(%r12), %ebx
	shll	$16, %ebx
	orl	(%r12), %ebx
	movq	(%r13), %r15
	movq	_VPP_POSTBLEND_H_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__REG
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_writel
	movl	(%r12), %r15d
	decl	%r15d
	movq	(%r13), %rbx
	movq	_VPP_OSD1_BLD_H_SCOPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__REG
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movl	4(%r12), %r15d
	decl	%r15d
	movq	(%r13), %rbx
	movq	_VPP_OSD1_BLD_V_SCOPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__REG
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movl	(%r12), %ebx
	shll	$16, %ebx
	orl	4(%r12), %ebx
	movq	(%r13), %r15
	movq	_VPP_OUT_H_V_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__REG
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_writel_relaxed
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_crtc_vblank_on             ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid crtc_state\n"

	.comm	_VPP_PREBLEND_VD1_V_START_END,4,2 ## @VPP_PREBLEND_VD1_V_START_END
	.comm	_VPP_POSTBLEND_H_SIZE,4,2       ## @VPP_POSTBLEND_H_SIZE
	.comm	_VPP_OSD1_BLD_H_SCOPE,4,2       ## @VPP_OSD1_BLD_H_SCOPE
	.comm	_VPP_OSD1_BLD_V_SCOPE,4,2       ## @VPP_OSD1_BLD_V_SCOPE
	.comm	_VPP_OUT_H_V_SIZE,4,2           ## @VPP_OUT_H_V_SIZE
	.no_dead_strip	_meson_g12a_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 meson_g12a_crtc_atomic_enable
_meson_g12a_crtc_atomic_enable:         ; @meson_g12a_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
	bl	_to_meson_crtc
	ldr	x22, [x19]
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	cbz	x22, LBB0_2
; %bb.1:
	mov	w0, #11
	mov	w1, #0
	bl	_GENMASK
	mov	w1, #2303
	bl	_FIELD_PREP
	mov	x20, x0
	ldr	x23, [x21]
Lloh2:
	adrp	x8, _VPP_PREBLEND_VD1_V_START_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VPP_PREBLEND_VD1_V_START_END@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	__REG
	add	x1, x0, x23
	mov	x0, x20
	bl	_writel
	ldp	w8, w9, [x22]
	orr	w20, w8, w9, lsl #16
	ldr	x23, [x21]
Lloh5:
	adrp	x8, _VPP_POSTBLEND_H_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VPP_POSTBLEND_H_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	__REG
	add	x1, x0, x23
	mov	x0, x20
	bl	_writel
	ldr	w8, [x22]
	sub	w20, w8, #1
	ldr	x23, [x21]
Lloh8:
	adrp	x8, _VPP_OSD1_BLD_H_SCOPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VPP_OSD1_BLD_H_SCOPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	__REG
	add	x1, x0, x23
	mov	x0, x20
	bl	_writel_relaxed
	ldr	w8, [x22, #4]
	sub	w20, w8, #1
	ldr	x23, [x21]
Lloh11:
	adrp	x8, _VPP_OSD1_BLD_V_SCOPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VPP_OSD1_BLD_V_SCOPE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	__REG
	add	x1, x0, x23
	mov	x0, x20
	bl	_writel_relaxed
	ldp	w8, w9, [x22]
	orr	w20, w9, w8, lsl #16
	ldr	x21, [x21]
Lloh14:
	adrp	x8, _VPP_OUT_H_V_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VPP_OUT_H_V_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	__REG
	add	x1, x0, x21
	mov	x0, x20
	bl	_writel_relaxed
	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	_drm_crtc_vblank_on
LBB0_2:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_DRM_ERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid crtc_state\n"

	.comm	_VPP_PREBLEND_VD1_V_START_END,4,2 ; @VPP_PREBLEND_VD1_V_START_END
	.comm	_VPP_POSTBLEND_H_SIZE,4,2       ; @VPP_POSTBLEND_H_SIZE
	.comm	_VPP_OSD1_BLD_H_SCOPE,4,2       ; @VPP_OSD1_BLD_H_SCOPE
	.comm	_VPP_OSD1_BLD_V_SCOPE,4,2       ; @VPP_OSD1_BLD_V_SCOPE
	.comm	_VPP_OUT_H_V_SIZE,4,2           ; @VPP_OUT_H_V_SIZE
	.no_dead_strip	_meson_g12a_crtc_atomic_enable
.subsections_via_symbols
