	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vkms_plane_init                ## -- Begin function vkms_plane_init
	.p2align	4, 0x90
_vkms_plane_init:                       ## @vkms_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, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	_DRM_PLANE_TYPE_CURSOR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_vkms_cursor_formats@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	_vkms_formats@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	$1, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	subq	$8, %rsp
	movq	_vkms_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %r8
	movl	%eax, %r9d
	pushq	$0
	pushq	%r14
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	_vkms_primary_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_plane_helper_add
	movq	%r13, %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	_DRM_PLANE_TYPE_CURSOR,4,2      ## @DRM_PLANE_TYPE_CURSOR
	.comm	_vkms_cursor_formats,8,3        ## @vkms_cursor_formats
	.comm	_vkms_primary_helper_funcs,4,2  ## @vkms_primary_helper_funcs
	.comm	_vkms_formats,8,3               ## @vkms_formats
	.comm	_vkms_plane_funcs,4,2           ## @vkms_plane_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vkms_plane_init                ; -- Begin function vkms_plane_init
	.p2align	2
_vkms_plane_init:                       ; @vkms_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	x22, x2
	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, #4
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _DRM_PLANE_TYPE_CURSOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_PLANE_TYPE_CURSOR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _vkms_formats@GOTPAGE
Lloh6:
	ldr	x9, [x9, _vkms_formats@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _vkms_cursor_formats@GOTPAGE
Lloh9:
	ldr	x10, [x10, _vkms_cursor_formats@GOTPAGEOFF]
	cmp	w8, w20
	csel	x8, x10, x9, eq
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x5, x0
	mov	w8, #1
	lsl	w2, w8, w22
	str	xzr, [sp]
Lloh10:
	adrp	x3, _vkms_plane_funcs@GOTPAGE
Lloh11:
	ldr	x3, [x3, _vkms_plane_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	x4, x23
	mov	x6, #0
	mov	x7, x20
	bl	_drm_universal_plane_init
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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, _vkms_primary_helper_funcs@GOTPAGE
Lloh16:
	ldr	x1, [x1, _vkms_primary_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_plane_helper_add
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.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	_DRM_PLANE_TYPE_CURSOR,4,2      ; @DRM_PLANE_TYPE_CURSOR
	.comm	_vkms_cursor_formats,8,3        ; @vkms_cursor_formats
	.comm	_vkms_primary_helper_funcs,4,2  ; @vkms_primary_helper_funcs
	.comm	_vkms_formats,8,3               ; @vkms_formats
	.comm	_vkms_plane_funcs,4,2           ; @vkms_plane_funcs
.subsections_via_symbols
