	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_layer_init_one
_sun4i_layer_init_one:                  ## @sun4i_layer_init_one
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_sun4i_layer_modifiers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_sun4i_layer_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r15, 8(%rax)
	movl	(%r15), %edi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_sun4i_backend_layer_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_6:
	subq	$8, %rsp
	movq	_sun4i_backend_layer_funcs@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%rbx, %r8
	movl	%r13d, %r9d
	pushq	$0
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%ebx, %edi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	_sun4i_backend_layer_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_plane_helper_add
	movq	%r12, %rdi
	callq	_drm_plane_create_alpha_property
	movq	_SUN4I_BACKEND_NUM_LAYERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	decq	%rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_drm_plane_create_zpos_property
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sun4i_layer_modifiers,8,3      ## @sun4i_layer_modifiers
	.comm	_sun4i_layer_formats,8,3        ## @sun4i_layer_formats
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sun4i_backend_layer_formats,8,3 ## @sun4i_backend_layer_formats
	.comm	_sun4i_backend_layer_funcs,4,2  ## @sun4i_backend_layer_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't initialize layer\n"

	.comm	_sun4i_backend_layer_helper_funcs,4,2 ## @sun4i_backend_layer_helper_funcs
	.comm	_SUN4I_BACKEND_NUM_LAYERS,8,3   ## @SUN4I_BACKEND_NUM_LAYERS
	.no_dead_strip	_sun4i_layer_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_layer_init_one
_sun4i_layer_init_one:                  ; @sun4i_layer_init_one
	.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	x21, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _sun4i_layer_modifiers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sun4i_layer_modifiers@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _sun4i_layer_formats@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sun4i_layer_formats@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x24, x0
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x25, [x0, #8]
	ldr	w0, [x25]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _sun4i_backend_layer_formats@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sun4i_backend_layer_formats@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x24, x0
	mov	x23, #0
LBB0_3:
	str	xzr, [sp]
Lloh12:
	adrp	x3, _sun4i_backend_layer_funcs@GOTPAGE
Lloh13:
	ldr	x3, [x3, _sun4i_backend_layer_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	x4, x22
	mov	x5, x24
	mov	x6, x23
	mov	x7, x21
	bl	_drm_universal_plane_init
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
	ldr	w0, [x20]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x21
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
Lloh19:
	adrp	x1, _sun4i_backend_layer_helper_funcs@GOTPAGE
Lloh20:
	ldr	x1, [x1, _sun4i_backend_layer_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_plane_helper_add
	mov	x0, x19
	bl	_drm_plane_create_alpha_property
Lloh21:
	adrp	x8, _SUN4I_BACKEND_NUM_LAYERS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SUN4I_BACKEND_NUM_LAYERS@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	sub	x3, x8, #1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_drm_plane_create_zpos_property
	mov	x0, x19
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_sun4i_layer_modifiers,8,3      ; @sun4i_layer_modifiers
	.comm	_sun4i_layer_formats,8,3        ; @sun4i_layer_formats
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sun4i_backend_layer_formats,8,3 ; @sun4i_backend_layer_formats
	.comm	_sun4i_backend_layer_funcs,4,2  ; @sun4i_backend_layer_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't initialize layer\n"

	.comm	_sun4i_backend_layer_helper_funcs,4,2 ; @sun4i_backend_layer_helper_funcs
	.comm	_SUN4I_BACKEND_NUM_LAYERS,8,3   ; @SUN4I_BACKEND_NUM_LAYERS
	.no_dead_strip	_sun4i_layer_init_one
.subsections_via_symbols
