	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dc_cursor_plane_create
_tegra_dc_cursor_plane_create:          ## @tegra_dc_cursor_plane_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_tegra_plane_get_possible_crtcs
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	$6, (%rax)
	movq	%r12, 8(%rax)
	movq	_tegra_cursor_plane_formats@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	(%r12), %r8
	movq	%rbx, %r12
	addq	$4, %r12
	movq	_DRM_PLANE_TYPE_CURSOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	_tegra_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%eax, %r9d
	pushq	$0
	pushq	%r10
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_tegra_cursor_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_plane_helper_add
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tegra_cursor_plane_formats,8,3 ## @tegra_cursor_plane_formats
	.comm	_tegra_plane_funcs,4,2          ## @tegra_plane_funcs
	.comm	_DRM_PLANE_TYPE_CURSOR,4,2      ## @DRM_PLANE_TYPE_CURSOR
	.comm	_tegra_cursor_plane_helper_funcs,4,2 ## @tegra_cursor_plane_helper_funcs
	.no_dead_strip	_tegra_dc_cursor_plane_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_dc_cursor_plane_create
_tegra_dc_cursor_plane_create:          ; @tegra_dc_cursor_plane_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	bl	_tegra_plane_get_possible_crtcs
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w8, #6
	str	w8, [x0]
	str	x22, [x0, #8]
Lloh3:
	adrp	x22, _tegra_cursor_plane_formats@GOTPAGE
Lloh4:
	ldr	x22, [x22, _tegra_cursor_plane_formats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	mov	x5, x0
	ldr	x4, [x22]
	add	x22, x19, #4
Lloh5:
	adrp	x8, _DRM_PLANE_TYPE_CURSOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_PLANE_TYPE_CURSOR@GOTPAGEOFF]
Lloh7:
	ldr	w7, [x8]
	str	xzr, [sp]
Lloh8:
	adrp	x3, _tegra_plane_funcs@GOTPAGE
Lloh9:
	ldr	x3, [x3, _tegra_plane_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x6, #0
	bl	_drm_universal_plane_init
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh10:
	adrp	x1, _tegra_cursor_plane_helper_funcs@GOTPAGE
Lloh11:
	ldr	x1, [x1, _tegra_cursor_plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_plane_helper_add
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tegra_cursor_plane_formats,8,3 ; @tegra_cursor_plane_formats
	.comm	_tegra_plane_funcs,4,2          ; @tegra_plane_funcs
	.comm	_DRM_PLANE_TYPE_CURSOR,4,2      ; @DRM_PLANE_TYPE_CURSOR
	.comm	_tegra_cursor_plane_helper_funcs,4,2 ; @tegra_cursor_plane_helper_funcs
	.no_dead_strip	_tegra_dc_cursor_plane_create
.subsections_via_symbols
