	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vbox_create_plane
_vbox_create_plane:                     ## @vbox_create_plane
	.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
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_vbox_primary_helper_funcs@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_vbox_primary_plane_funcs@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_vbox_primary_plane_formats@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_DRM_PLANE_TYPE_CURSOR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.5:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_vbox_cursor_helper_funcs@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_vbox_cursor_plane_funcs@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_vbox_cursor_plane_formats@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	%rax, %r14
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	%r15d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_kfree
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_drm_plane_helper_add
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_vbox_primary_plane_funcs,4,2   ## @vbox_primary_plane_funcs
	.comm	_vbox_primary_plane_formats,8,3 ## @vbox_primary_plane_formats
	.comm	_vbox_primary_helper_funcs,4,2  ## @vbox_primary_helper_funcs
	.comm	_DRM_PLANE_TYPE_CURSOR,4,2      ## @DRM_PLANE_TYPE_CURSOR
	.comm	_vbox_cursor_plane_funcs,4,2    ## @vbox_cursor_plane_funcs
	.comm	_vbox_cursor_plane_formats,8,3  ## @vbox_cursor_plane_formats
	.comm	_vbox_cursor_helper_funcs,4,2   ## @vbox_cursor_helper_funcs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vbox_create_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vbox_create_plane
_vbox_create_plane:                     ; @vbox_create_plane
	.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, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _vbox_primary_helper_funcs@GOTPAGE
Lloh4:
	ldr	x20, [x20, _vbox_primary_helper_funcs@GOTPAGEOFF]
Lloh5:
	adrp	x23, _vbox_primary_plane_funcs@GOTPAGE
Lloh6:
	ldr	x23, [x23, _vbox_primary_plane_funcs@GOTPAGEOFF]
Lloh7:
	adrp	x8, _vbox_primary_plane_formats@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vbox_primary_plane_formats@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _DRM_PLANE_TYPE_CURSOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_PLANE_TYPE_CURSOR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.3:
Lloh12:
	adrp	x20, _vbox_cursor_helper_funcs@GOTPAGE
Lloh13:
	ldr	x20, [x20, _vbox_cursor_helper_funcs@GOTPAGEOFF]
Lloh14:
	adrp	x23, _vbox_cursor_plane_funcs@GOTPAGE
Lloh15:
	ldr	x23, [x23, _vbox_cursor_plane_funcs@GOTPAGEOFF]
Lloh16:
	adrp	x8, _vbox_cursor_plane_formats@GOTPAGE
Lloh17:
	ldr	x8, [x8, _vbox_cursor_plane_formats@GOTPAGEOFF]
LBB0_4:
	ldr	x25, [x8]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x26, x0
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x24, x0
	str	xzr, [sp]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	mov	x4, x25
	mov	x5, x26
	mov	x6, #0
	mov	x7, x19
	bl	_drm_universal_plane_init
	cbz	w0, LBB0_10
; %bb.6:
	mov	x0, x24
	bl	_kfree
LBB0_7:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
LBB0_10:
	mov	x0, x24
	mov	x1, x20
	bl	_drm_plane_helper_add
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_vbox_primary_plane_funcs,4,2   ; @vbox_primary_plane_funcs
	.comm	_vbox_primary_plane_formats,8,3 ; @vbox_primary_plane_formats
	.comm	_vbox_primary_helper_funcs,4,2  ; @vbox_primary_helper_funcs
	.comm	_DRM_PLANE_TYPE_CURSOR,4,2      ; @DRM_PLANE_TYPE_CURSOR
	.comm	_vbox_cursor_plane_funcs,4,2    ; @vbox_cursor_plane_funcs
	.comm	_vbox_cursor_plane_formats,8,3  ; @vbox_cursor_plane_formats
	.comm	_vbox_cursor_helper_funcs,4,2   ; @vbox_cursor_helper_funcs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vbox_create_plane
.subsections_via_symbols
