	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_plane_init                ## -- Begin function mdp4_plane_init
	.p2align	4, 0x90
_mdp4_plane_init:                       ## @mdp4_plane_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
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	addq	$20, %r15
	movl	%r13d, (%rax)
	movq	_pipe_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 16(%rbx)
	movl	%r13d, %edi
	callq	_mdp4_pipe_caps
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	callq	_pipe_supports_yuv
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_mdp_get_formats
	movl	%eax, 4(%rbx)
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.4:
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rcx), %r10d
	movl	8(%rbx), %r8d
	subq	$8, %rsp
	movq	_mdp4_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r15, %rsi
	movl	$255, %edx
	movl	%eax, %r9d
	pushq	$0
	pushq	%r10
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mdp4_plane_destroy
LBB0_7:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	_mdp4_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_plane_helper_add
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_mdp4_plane_install_properties
	movq	%r15, %rdi
	callq	_drm_plane_enable_fb_damage_clips
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pipe_names,8,3                 ## @pipe_names
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ## @DRM_PLANE_TYPE_OVERLAY
	.comm	_mdp4_plane_funcs,4,2           ## @mdp4_plane_funcs
	.comm	_mdp4_plane_helper_funcs,4,2    ## @mdp4_plane_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_plane_init                ; -- Begin function mdp4_plane_init
	.p2align	2
_mdp4_plane_init:                       ; @mdp4_plane_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	add	x19, x0, #20
	str	w23, [x0]
Lloh3:
	adrp	x8, _pipe_names@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pipe_names@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, w23, uxtw #2]
	str	w8, [x0, #16]
	mov	x0, x23
	bl	_mdp4_pipe_caps
	str	w0, [x22, #12]
	ldr	w23, [x22, #8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x24, x0
	ldr	w0, [x22, #12]
	bl	_pipe_supports_yuv
	cmp	w0, #0
	cset	w2, eq
	mov	x0, x23
	mov	x1, x24
	bl	_mdp_get_formats
	mov	x5, x0
	str	w0, [x22, #4]
Lloh6:
	adrp	x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w7, [x8]
	ldr	w4, [x22, #8]
	str	xzr, [sp]
Lloh10:
	adrp	x3, _mdp4_plane_funcs@GOTPAGE
Lloh11:
	ldr	x3, [x3, _mdp4_plane_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #255
	mov	x6, #0
	bl	_drm_universal_plane_init
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_mdp4_plane_destroy
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_5:
Lloh15:
	adrp	x1, _mdp4_plane_helper_funcs@GOTPAGE
Lloh16:
	ldr	x1, [x1, _mdp4_plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_plane_helper_add
	mov	x0, x19
	mov	x1, x19
	bl	_mdp4_plane_install_properties
	mov	x0, x19
	bl	_drm_plane_enable_fb_damage_clips
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pipe_names,8,3                 ; @pipe_names
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ; @DRM_PLANE_TYPE_OVERLAY
	.comm	_mdp4_plane_funcs,4,2           ; @mdp4_plane_funcs
	.comm	_mdp4_plane_helper_funcs,4,2    ; @mdp4_plane_helper_funcs
.subsections_via_symbols
