	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_plane_init                ## -- Begin function mdp5_plane_init
	.p2align	4, 0x90
_mdp5_plane_init:                       ## @mdp5_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	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rbx
	addq	$8, %r12
	movl	4(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mdp_get_formats
	movl	%eax, (%rbx)
	movl	4(%rbx), %r8d
	subq	$8, %rsp
	movq	_mdp5_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$255, %edx
	movl	%eax, %r9d
	pushq	$0
	pushq	%r14
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mdp5_plane_destroy
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	_mdp5_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_plane_helper_add
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_mdp5_plane_install_properties
	movq	%r12, %rdi
	callq	_drm_plane_enable_fb_damage_clips
	movq	%r12, %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	_mdp5_plane_funcs,4,2           ## @mdp5_plane_funcs
	.comm	_mdp5_plane_helper_funcs,4,2    ## @mdp5_plane_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_plane_init                ; -- Begin function mdp5_plane_init
	.p2align	2
_mdp5_plane_init:                       ; @mdp5_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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	add	x19, x0, #8
	ldr	w23, [x0, #4]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x23
	mov	w2, #0
	bl	_mdp_get_formats
	mov	x5, x0
	str	w0, [x22]
	ldr	w4, [x22, #4]
	str	xzr, [sp]
Lloh3:
	adrp	x3, _mdp5_plane_funcs@GOTPAGE
Lloh4:
	ldr	x3, [x3, _mdp5_plane_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #255
	mov	x6, #0
	mov	x7, x20
	bl	_drm_universal_plane_init
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_mdp5_plane_destroy
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	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:
Lloh8:
	adrp	x1, _mdp5_plane_helper_funcs@GOTPAGE
Lloh9:
	ldr	x1, [x1, _mdp5_plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_plane_helper_add
	mov	x0, x19
	mov	x1, x19
	bl	_mdp5_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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mdp5_plane_funcs,4,2           ; @mdp5_plane_funcs
	.comm	_mdp5_plane_helper_funcs,4,2    ; @mdp5_plane_helper_funcs
.subsections_via_symbols
