	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltdc_plane_create
_ltdc_plane_create:                     ## @ltdc_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CRTC_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_NB_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	(%r14,%r14), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_ltdc_format_modifiers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.1:
	movq	8(%r15), %r14
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r15d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movq	_NB_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r12
	jae	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %edi
	callq	_to_drm_pixelformat
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r15), %r13d
	movl	%r15d, %ecx
	movq	%rax, (%rbx,%rcx,8)
	movq	%rax, %rdi
	callq	_get_pixelformat_without_alpha
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %r15d
	movl	%r13d, %ecx
	movq	%rax, (%rbx,%rcx,8)
	jmp	LBB0_3
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, %r13
	subq	$8, %rsp
	movq	_ltdc_plane_funcs@GOTPCREL(%rip), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %r8
	movl	%r15d, %r9d
	pushq	$0
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	movq	_ltdc_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_plane_helper_add
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_16
LBB0_15:
	xorl	%r13d, %r13d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CRTC_MASK,8,3                  ## @CRTC_MASK
	.comm	_NB_PF,4,2                      ## @NB_PF
	.comm	_ltdc_format_modifiers,8,3      ## @ltdc_format_modifiers
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ltdc_plane_funcs,4,2           ## @ltdc_plane_funcs
	.comm	_ltdc_plane_helper_funcs,4,2    ## @ltdc_plane_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plane:%d created\n"

	.no_dead_strip	_ltdc_plane_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltdc_plane_create
_ltdc_plane_create:                     ; @ltdc_plane_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _CRTC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRTC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	ldr	x24, [x0]
Lloh6:
	adrp	x26, _NB_PF@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NB_PF@GOTPAGEOFF]
	ldr	w12, [x26]
	lsl	w8, w12, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x8
	mov	sp, x22
Lloh10:
	adrp	x8, _ltdc_format_modifiers@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ltdc_format_modifiers@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	cbz	w12, LBB0_9
; %bb.1:
	mov	x27, #0
	mov	w23, #0
	ldr	x28, [x20, #8]
Lloh13:
	adrp	x21, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh14:
	ldr	x21, [x21, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldr	w8, [x26]
	cmp	x27, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, #8]
	ldr	w0, [x8, x27, lsl #2]
	bl	_to_drm_pixelformat
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w23, #1
	str	x0, [x22, w23, uxtw #3]
	bl	_get_pixelformat_without_alpha
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cmp	w8, w19
	b.ne	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #2
	str	x0, [x22, w25, uxtw #3]
	b	LBB0_3
LBB0_9:
	mov	w23, #0
LBB0_10:
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x24
	mov	w1, #4
	bl	_devm_kzalloc
	mov	x24, x0
	cbz	x0, LBB0_14
; %bb.11:
	str	xzr, [sp, #-16]!
Lloh18:
	adrp	x3, _ltdc_plane_funcs@GOTPAGE
Lloh19:
	ldr	x3, [x3, _ltdc_plane_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x24
	ldp	x6, x2, [x29, #-104]            ; 16-byte Folded Reload
	mov	x4, x22
	mov	x5, x23
	mov	x7, x19
	bl	_drm_universal_plane_init
	add	sp, sp, #16
	tbnz	w0, #31, LBB0_13
; %bb.12:
Lloh20:
	adrp	x1, _ltdc_plane_helper_funcs@GOTPAGE
Lloh21:
	ldr	x1, [x1, _ltdc_plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x24
	bl	_drm_plane_helper_add
	ldr	w1, [x24]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_14
LBB0_13:
	mov	x24, #0
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x24
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CRTC_MASK,8,3                  ; @CRTC_MASK
	.comm	_NB_PF,4,2                      ; @NB_PF
	.comm	_ltdc_format_modifiers,8,3      ; @ltdc_format_modifiers
	.comm	_DRM_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ltdc_plane_funcs,4,2           ; @ltdc_plane_funcs
	.comm	_ltdc_plane_helper_funcs,4,2    ; @ltdc_plane_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plane:%d created\n"

	.no_dead_strip	_ltdc_plane_create
.subsections_via_symbols
