	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vkms_crtc_init                 ## -- Begin function vkms_crtc_init
	.p2align	4, 0x90
_vkms_crtc_init:                        ## @vkms_crtc_init
	.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	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_drm_crtc_to_vkms_output
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_vkms_crtc_funcs@GOTPCREL(%rip), %r8
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	xorl	%r9d, %r9d
	callq	_drm_crtc_init_with_planes
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movl	%ebx, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	_vkms_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_crtc_helper_add
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_alloc_ordered_workqueue
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vkms_crtc_funcs,4,2            ## @vkms_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init CRTC\n"

	.comm	_vkms_crtc_helper_funcs,4,2     ## @vkms_crtc_helper_funcs
L_.str.1:                               ## @.str.1
	.asciz	"vkms_composer"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vkms_crtc_init                 ; -- Begin function vkms_crtc_init
	.p2align	2
_vkms_crtc_init:                        ; @vkms_crtc_init
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	mov	x0, x1
	bl	_drm_crtc_to_vkms_output
	mov	x19, x0
Lloh0:
	adrp	x4, _vkms_crtc_funcs@GOTPAGE
Lloh1:
	ldr	x4, [x4, _vkms_crtc_funcs@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	x5, #0
	bl	_drm_crtc_init_with_planes
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x1, _vkms_crtc_helper_funcs@GOTPAGE
Lloh5:
	ldr	x1, [x1, _vkms_crtc_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_crtc_helper_add
	add	x0, x19, #8
	bl	_spin_lock_init
	add	x0, x19, #4
	bl	_spin_lock_init
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	str	w0, [x19]
	cbnz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_vkms_crtc_funcs,4,2            ; @vkms_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init CRTC\n"

	.comm	_vkms_crtc_helper_funcs,4,2     ; @vkms_crtc_helper_funcs
l_.str.1:                               ; @.str.1
	.asciz	"vkms_composer"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
