	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_simple_display_pipe_init   ## -- Begin function drm_simple_display_pipe_init
	.p2align	4, 0x90
_drm_simple_display_pipe_init:          ## @drm_simple_display_pipe_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	16(%rbp), %rax
	leaq	20(%rsi), %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rsi)
	movq	%rdx, (%rsi)
	movq	_drm_simple_kms_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_plane_helper_add
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	_drm_simple_kms_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r15, %r8
	movl	%r14d, %r9d
	pushq	$0
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	16(%r12), %r13
	movq	_drm_simple_kms_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_crtc_helper_add
	movq	_drm_simple_kms_crtc_funcs@GOTPCREL(%rip), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_drm_crtc_init_with_planes
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addq	$24, %r12
	movq	%r13, %rdi
	callq	_drm_crtc_mask
	movl	%eax, (%r12)
	movq	_DRM_MODE_ENCODER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_drm_simple_kms_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_4
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_connector_attach_encoder   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_simple_kms_plane_helper_funcs,4,2 ## @drm_simple_kms_plane_helper_funcs
	.comm	_drm_simple_kms_plane_funcs,4,2 ## @drm_simple_kms_plane_funcs
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_drm_simple_kms_crtc_helper_funcs,4,2 ## @drm_simple_kms_crtc_helper_funcs
	.comm	_drm_simple_kms_crtc_funcs,4,2  ## @drm_simple_kms_crtc_funcs
	.comm	_drm_simple_kms_encoder_funcs,4,2 ## @drm_simple_kms_encoder_funcs
	.comm	_DRM_MODE_ENCODER_NONE,4,2      ## @DRM_MODE_ENCODER_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_simple_display_pipe_init   ; -- Begin function drm_simple_display_pipe_init
	.p2align	2
_drm_simple_display_pipe_init:          ; @drm_simple_display_pipe_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x21, x1
	mov	x20, x0
	add	x22, x1, #20
	stp	x2, x6, [x1]
Lloh0:
	adrp	x1, _drm_simple_kms_plane_helper_funcs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _drm_simple_kms_plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_plane_helper_add
Lloh2:
	adrp	x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh4:
	ldr	w7, [x8]
	str	xzr, [sp]
Lloh5:
	adrp	x3, _drm_simple_kms_plane_funcs@GOTPAGE
Lloh6:
	ldr	x3, [x3, _drm_simple_kms_plane_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	mov	x4, x25
	mov	x5, x24
	mov	x6, x23
	bl	_drm_universal_plane_init
	cbnz	w0, LBB0_2
; %bb.1:
	add	x23, x21, #16
Lloh7:
	adrp	x1, _drm_simple_kms_crtc_helper_funcs@GOTPAGE
Lloh8:
	ldr	x1, [x1, _drm_simple_kms_crtc_helper_funcs@GOTPAGEOFF]
	mov	x0, x23
	bl	_drm_crtc_helper_add
Lloh9:
	adrp	x4, _drm_simple_kms_crtc_funcs@GOTPAGE
Lloh10:
	ldr	x4, [x4, _drm_simple_kms_crtc_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, #0
	mov	x5, #0
	bl	_drm_crtc_init_with_planes
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	mov	x0, x23
	bl	_drm_crtc_mask
	str	w0, [x21, #24]!
Lloh11:
	adrp	x8, _DRM_MODE_ENCODER_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRM_MODE_ENCODER_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x2, _drm_simple_kms_encoder_funcs@GOTPAGE
Lloh15:
	ldr	x2, [x2, _drm_simple_kms_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x4, #0
	bl	_drm_encoder_init
	cbz	x19, LBB0_2
; %bb.4:
	cbnz	w0, LBB0_2
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_drm_connector_attach_encoder
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_simple_kms_plane_helper_funcs,4,2 ; @drm_simple_kms_plane_helper_funcs
	.comm	_drm_simple_kms_plane_funcs,4,2 ; @drm_simple_kms_plane_funcs
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_drm_simple_kms_crtc_helper_funcs,4,2 ; @drm_simple_kms_crtc_helper_funcs
	.comm	_drm_simple_kms_crtc_funcs,4,2  ; @drm_simple_kms_crtc_funcs
	.comm	_drm_simple_kms_encoder_funcs,4,2 ; @drm_simple_kms_encoder_funcs
	.comm	_DRM_MODE_ENCODER_NONE,4,2      ; @DRM_MODE_ENCODER_NONE
.subsections_via_symbols
