	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armada_overlay_plane_create    ## -- Begin function armada_overlay_plane_create
	.p2align	4, 0x90
_armada_overlay_plane_create:           ## @armada_overlay_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	(%rdi), %r13
	callq	_armada_overlay_create_properties
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	_armada_overlay_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_drm_plane_helper_add
	movq	_armada_ovl_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	_armada_ovl_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	pushq	$0
	pushq	%r10
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_6:
	movl	32(%r13), %esi
	movq	%r14, %rdi
	movl	$66046, %edx                    ## imm = 0x101FE
	callq	_drm_object_attach_property
	movl	28(%r13), %esi
	movq	%r14, %rdi
	movl	$66046, %edx                    ## imm = 0x101FE
	callq	_drm_object_attach_property
	movl	24(%r13), %esi
	movq	%r14, %rdi
	movl	$66046, %edx                    ## imm = 0x101FE
	callq	_drm_object_attach_property
	movl	20(%r13), %esi
	movq	%r14, %rdi
	movl	$66046, %edx                    ## imm = 0x101FE
	callq	_drm_object_attach_property
	movl	16(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	12(%r13), %esi
	movq	_CKMODE_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_drm_object_attach_property
	movl	8(%r13), %esi
	movq	_DEFAULT_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	$256, %edx                      ## imm = 0x100
	addl	(%rax), %edx
	movq	%r14, %rdi
	callq	_drm_object_attach_property
	movl	4(%r13), %esi
	movq	_DEFAULT_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_drm_object_attach_property
	movl	(%r13), %esi
	movq	_DEFAULT_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_drm_object_attach_property
	movq	_DRM_COLOR_YCBCR_BT601@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_DRM_COLOR_YCBCR_BT709@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_BIT
	movq	_DEFAULT_ENCODING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_plane_create_color_properties ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_armada_overlay_plane_helper_funcs,4,2 ## @armada_overlay_plane_helper_funcs
	.comm	_armada_ovl_plane_funcs,4,2     ## @armada_ovl_plane_funcs
	.comm	_armada_ovl_formats,4,2         ## @armada_ovl_formats
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ## @DRM_PLANE_TYPE_OVERLAY
	.comm	_CKMODE_RGB,4,2                 ## @CKMODE_RGB
	.comm	_DEFAULT_BRIGHTNESS,4,2         ## @DEFAULT_BRIGHTNESS
	.comm	_DEFAULT_CONTRAST,4,2           ## @DEFAULT_CONTRAST
	.comm	_DEFAULT_SATURATION,4,2         ## @DEFAULT_SATURATION
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ## @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ## @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ## @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_DEFAULT_ENCODING,4,2           ## @DEFAULT_ENCODING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_armada_overlay_plane_create    ; -- Begin function armada_overlay_plane_create
	.p2align	2
_armada_overlay_plane_create:           ; @armada_overlay_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	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
	bl	_armada_overlay_create_properties
	mov	x22, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x22
	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
LBB0_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
Lloh3:
	adrp	x1, _armada_overlay_plane_helper_funcs@GOTPAGE
Lloh4:
	ldr	x1, [x1, _armada_overlay_plane_helper_funcs@GOTPAGEOFF]
	bl	_drm_plane_helper_add
Lloh5:
	adrp	x8, _armada_ovl_formats@GOTPAGE
Lloh6:
	ldr	x8, [x8, _armada_ovl_formats@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x5, x0
Lloh8:
	adrp	x8, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
Lloh10:
	ldr	w7, [x8]
	str	xzr, [sp]
Lloh11:
	adrp	x3, _armada_ovl_plane_funcs@GOTPAGE
Lloh12:
	ldr	x3, [x3, _armada_ovl_plane_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x4, x22
	mov	x6, #0
	bl	_drm_universal_plane_init
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_1
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_1
LBB0_6:
	ldr	w1, [x23, #32]
	mov	x0, x19
	mov	w2, #510
	movk	w2, #1, lsl #16
	bl	_drm_object_attach_property
	ldr	w1, [x23, #28]
	mov	x0, x19
	mov	w2, #510
	movk	w2, #1, lsl #16
	bl	_drm_object_attach_property
	ldr	w1, [x23, #24]
	mov	x0, x19
	mov	w2, #510
	movk	w2, #1, lsl #16
	bl	_drm_object_attach_property
	ldr	w1, [x23, #20]
	mov	x0, x19
	mov	w2, #510
	movk	w2, #1, lsl #16
	bl	_drm_object_attach_property
	ldr	w1, [x23, #16]
	mov	x0, x19
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x23, #12]
Lloh16:
	adrp	x8, _CKMODE_RGB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CKMODE_RGB@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_drm_object_attach_property
	ldr	w1, [x23, #8]
Lloh19:
	adrp	x8, _DEFAULT_BRIGHTNESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DEFAULT_BRIGHTNESS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	add	w2, w8, #256
	mov	x0, x19
	bl	_drm_object_attach_property
	ldr	w1, [x23, #4]
Lloh22:
	adrp	x8, _DEFAULT_CONTRAST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEFAULT_CONTRAST@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_drm_object_attach_property
	ldr	w1, [x23]
Lloh25:
	adrp	x8, _DEFAULT_SATURATION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DEFAULT_SATURATION@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_drm_object_attach_property
Lloh28:
	adrp	x8, _DRM_COLOR_YCBCR_BT601@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT601@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh31:
	adrp	x8, _DRM_COLOR_YCBCR_BT709@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT709@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w0, w20
Lloh34:
	adrp	x21, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGE
Lloh35:
	ldr	x21, [x21, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_BIT
	mov	x2, x0
Lloh36:
	adrp	x8, _DEFAULT_ENCODING@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DEFAULT_ENCODING@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	ldr	w4, [x21]
	mov	x0, x19
	mov	x1, x20
	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
	b	_drm_plane_create_color_properties
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_armada_overlay_plane_helper_funcs,4,2 ; @armada_overlay_plane_helper_funcs
	.comm	_armada_ovl_plane_funcs,4,2     ; @armada_ovl_plane_funcs
	.comm	_armada_ovl_formats,4,2         ; @armada_ovl_formats
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ; @DRM_PLANE_TYPE_OVERLAY
	.comm	_CKMODE_RGB,4,2                 ; @CKMODE_RGB
	.comm	_DEFAULT_BRIGHTNESS,4,2         ; @DEFAULT_BRIGHTNESS
	.comm	_DEFAULT_CONTRAST,4,2           ; @DEFAULT_CONTRAST
	.comm	_DEFAULT_SATURATION,4,2         ; @DEFAULT_SATURATION
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ; @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ; @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ; @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_DEFAULT_ENCODING,4,2           ; @DEFAULT_ENCODING
.subsections_via_symbols
