	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_crtc_init                  ## -- Begin function sti_crtc_init
	.p2align	4, 0x90
_sti_crtc_init:                         ## @sti_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_sti_crtc_funcs@GOTPCREL(%rip), %r8
	xorl	%r14d, %r14d
	xorl	%r9d, %r9d
	callq	_drm_crtc_init_with_planes
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_sti_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_crtc_helper_add
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_sti_mixer_to_str
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_DRIVER
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sti_crtc_funcs,4,2             ## @sti_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't initialize CRTC\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sti_crtc_helper_funcs,4,2      ## @sti_crtc_helper_funcs
L_.str.1:                               ## @.str.1
	.asciz	"drm CRTC:%d mapped to %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_crtc_init                  ; -- Begin function sti_crtc_init
	.p2align	2
_sti_crtc_init:                         ; @sti_crtc_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x4, _sti_crtc_funcs@GOTPAGE
Lloh1:
	ldr	x4, [x4, _sti_crtc_funcs@GOTPAGEOFF]
	mov	x5, #0
	bl	_drm_crtc_init_with_planes
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x1, _sti_crtc_helper_funcs@GOTPAGE
Lloh8:
	ldr	x1, [x1, _sti_crtc_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_crtc_helper_add
	ldr	w20, [x19]
	mov	x0, x19
	bl	_sti_mixer_to_str
	mov	x2, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_DRIVER
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sti_crtc_funcs,4,2             ; @sti_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't initialize CRTC\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sti_crtc_helper_funcs,4,2      ; @sti_crtc_helper_funcs
l_.str.1:                               ; @.str.1
	.asciz	"drm CRTC:%d mapped to %s\n"

.subsections_via_symbols
