	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_plane_create
_atmel_hlcdc_plane_create:              ## @atmel_hlcdc_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	%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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	8(%r13), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atmel_hlcdc_layer_init
	movq	_ATMEL_HLCDC_BASE_LAYER@GOTPCREL(%rip), %rax
	movq	_ATMEL_HLCDC_CURSOR_LAYER@GOTPCREL(%rip), %rcx
	movq	(%r15), %rdx
	cmpq	(%rcx), %rdx
	jne	LBB0_3
## %bb.4:
	movq	_DRM_PLANE_TYPE_CURSOR@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	16(%r15), %rsi
	cmpq	(%rax), %rdx
	jne	LBB0_7
## %bb.6:
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %eax
	addq	$4, %rbx
	movl	(%rsi), %r9d
	movl	4(%rsi), %r8d
	subq	$8, %rsp
	movq	_layer_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_atmel_hlcdc_layer_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_plane_helper_add
	movq	%r14, %rdi
	callq	_atmel_hlcdc_plane_init_properties
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%r13), %rax
	movq	8(%r15), %rcx
	movq	%r14, (%rax,%rcx,8)
	xorl	%eax, %eax
LBB0_10:
	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	_ATMEL_HLCDC_BASE_LAYER,8,3     ## @ATMEL_HLCDC_BASE_LAYER
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_ATMEL_HLCDC_CURSOR_LAYER,8,3   ## @ATMEL_HLCDC_CURSOR_LAYER
	.comm	_DRM_PLANE_TYPE_CURSOR,4,2      ## @DRM_PLANE_TYPE_CURSOR
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ## @DRM_PLANE_TYPE_OVERLAY
	.comm	_layer_plane_funcs,4,2          ## @layer_plane_funcs
	.comm	_atmel_hlcdc_layer_plane_helper_funcs,4,2 ## @atmel_hlcdc_layer_plane_helper_funcs
	.no_dead_strip	_atmel_hlcdc_plane_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_hlcdc_plane_create
_atmel_hlcdc_plane_create:              ; @atmel_hlcdc_plane_create
	.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	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x23, #8]
	ldr	w2, [x8]
	mov	x1, x19
	bl	_atmel_hlcdc_layer_init
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ATMEL_HLCDC_BASE_LAYER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATMEL_HLCDC_BASE_LAYER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ATMEL_HLCDC_CURSOR_LAYER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ATMEL_HLCDC_CURSOR_LAYER@GOTPAGEOFF]
Lloh8:
	adrp	x11, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh10:
	adrp	x12, _DRM_PLANE_TYPE_CURSOR@GOTPAGE
Lloh11:
	ldr	x12, [x12, _DRM_PLANE_TYPE_CURSOR@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x13, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh14:
	ldr	x13, [x13, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
	cmp	x8, x10
	csel	x10, x12, x13, eq
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w7, [x8]
	add	x22, x20, #4
	ldr	x8, [x19, #16]
	ldp	w5, w4, [x8]
	str	xzr, [sp]
Lloh15:
	adrp	x3, _layer_plane_funcs@GOTPAGE
Lloh16:
	ldr	x3, [x3, _layer_plane_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x6, #0
	bl	_drm_universal_plane_init
	cbnz	w0, LBB0_5
; %bb.2:
Lloh17:
	adrp	x1, _atmel_hlcdc_layer_plane_helper_funcs@GOTPAGE
Lloh18:
	ldr	x1, [x1, _atmel_hlcdc_layer_plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_plane_helper_add
	mov	x0, x20
	bl	_atmel_hlcdc_plane_init_properties
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x23]
	ldr	x9, [x19, #8]
	str	x20, [x8, x9, lsl #3]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATMEL_HLCDC_BASE_LAYER,8,3     ; @ATMEL_HLCDC_BASE_LAYER
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_ATMEL_HLCDC_CURSOR_LAYER,8,3   ; @ATMEL_HLCDC_CURSOR_LAYER
	.comm	_DRM_PLANE_TYPE_CURSOR,4,2      ; @DRM_PLANE_TYPE_CURSOR
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ; @DRM_PLANE_TYPE_OVERLAY
	.comm	_layer_plane_funcs,4,2          ; @layer_plane_funcs
	.comm	_atmel_hlcdc_layer_plane_helper_funcs,4,2 ; @atmel_hlcdc_layer_plane_helper_funcs
	.no_dead_strip	_atmel_hlcdc_plane_create
.subsections_via_symbols
