	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_crtc_create              ## -- Begin function meson_crtc_create
	.p2align	4, 0x90
_meson_crtc_create:                     ## @meson_crtc_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, 16(%rax)
	movq	%rax, %r14
	addq	$12, %r14
	movq	8(%r15), %rdi
	movl	16(%r15), %edx
	movq	_meson_crtc_funcs@GOTPCREL(%rip), %r8
	leaq	L_.str(%rip), %r9
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_drm_crtc_init_with_planes
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_VPU_COMPATIBLE_G12A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_meson_vpu_is_compatible
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_meson_g12a_crtc_enable_osd1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_meson_g12a_crtc_enable_vd1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_MESON_G12A_VIU_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_meson_g12a_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	_meson_crtc_enable_osd1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_meson_crtc_enable_vd1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_meson_crtc_helper_funcs@GOTPCREL(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	callq	_drm_crtc_helper_add
	movq	%r14, (%r15)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_meson_crtc_funcs,4,2           ## @meson_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"meson_crtc"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to init CRTC\n"

	.comm	_VPU_COMPATIBLE_G12A,4,2        ## @VPU_COMPATIBLE_G12A
	.comm	_meson_g12a_crtc_enable_osd1,4,2 ## @meson_g12a_crtc_enable_osd1
	.comm	_meson_g12a_crtc_enable_vd1,4,2 ## @meson_g12a_crtc_enable_vd1
	.comm	_MESON_G12A_VIU_OFFSET,4,2      ## @MESON_G12A_VIU_OFFSET
	.comm	_meson_g12a_crtc_helper_funcs,4,2 ## @meson_g12a_crtc_helper_funcs
	.comm	_meson_crtc_enable_osd1,4,2     ## @meson_crtc_enable_osd1
	.comm	_meson_crtc_enable_vd1,4,2      ## @meson_crtc_enable_vd1
	.comm	_meson_crtc_helper_funcs,4,2    ## @meson_crtc_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_crtc_create              ; -- Begin function meson_crtc_create
	.p2align	2
_meson_crtc_create:                     ; @meson_crtc_create
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #16]
	add	x20, x0, #12
	ldr	x0, [x19, #8]
	ldr	w2, [x19, #16]
Lloh3:
	adrp	x4, _meson_crtc_funcs@GOTPAGE
Lloh4:
	ldr	x4, [x4, _meson_crtc_funcs@GOTPAGEOFF]
Lloh5:
	adrp	x5, l_.str@PAGE
Lloh6:
	add	x5, x5, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, #0
	bl	_drm_crtc_init_with_planes
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _VPU_COMPATIBLE_G12A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPU_COMPATIBLE_G12A@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_meson_vpu_is_compatible
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _meson_g12a_crtc_enable_osd1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _meson_g12a_crtc_enable_osd1@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _meson_g12a_crtc_enable_vd1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _meson_g12a_crtc_enable_vd1@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
Lloh21:
	adrp	x8, _MESON_G12A_VIU_OFFSET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MESON_G12A_VIU_OFFSET@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #8]
Lloh24:
	adrp	x1, _meson_g12a_crtc_helper_funcs@GOTPAGE
Lloh25:
	ldr	x1, [x1, _meson_g12a_crtc_helper_funcs@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh26:
	adrp	x8, _meson_crtc_enable_osd1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _meson_crtc_enable_osd1@GOTPAGEOFF]
Lloh28:
	adrp	x9, _meson_crtc_enable_vd1@GOTPAGE
Lloh29:
	ldr	x9, [x9, _meson_crtc_enable_vd1@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
Lloh32:
	adrp	x1, _meson_crtc_helper_funcs@GOTPAGE
Lloh33:
	ldr	x1, [x1, _meson_crtc_helper_funcs@GOTPAGEOFF]
LBB0_7:
	mov	x0, x20
	bl	_drm_crtc_helper_add
	mov	w22, #0
	str	x20, [x19]
LBB0_8:
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_meson_crtc_funcs,4,2           ; @meson_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"meson_crtc"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to init CRTC\n"

	.comm	_VPU_COMPATIBLE_G12A,4,2        ; @VPU_COMPATIBLE_G12A
	.comm	_meson_g12a_crtc_enable_osd1,4,2 ; @meson_g12a_crtc_enable_osd1
	.comm	_meson_g12a_crtc_enable_vd1,4,2 ; @meson_g12a_crtc_enable_vd1
	.comm	_MESON_G12A_VIU_OFFSET,4,2      ; @MESON_G12A_VIU_OFFSET
	.comm	_meson_g12a_crtc_helper_funcs,4,2 ; @meson_g12a_crtc_helper_funcs
	.comm	_meson_crtc_enable_osd1,4,2     ; @meson_crtc_enable_osd1
	.comm	_meson_crtc_enable_vd1,4,2      ; @meson_crtc_enable_vd1
	.comm	_meson_crtc_helper_funcs,4,2    ; @meson_crtc_helper_funcs
.subsections_via_symbols
