	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_overlay_create_properties
_armada_overlay_create_properties:      ## @armada_overlay_create_properties
	.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	(%rdi), %r12
	xorl	%r14d, %r14d
	cmpq	$0, (%r12)
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$16777215, %r8d                 ## imm = 0xFFFFFF
	callq	_drm_property_create_range
	movq	%rax, (%r12)
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$16777215, %r8d                 ## imm = 0xFFFFFF
	callq	_drm_property_create_range
	movq	%rax, 64(%r12)
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$16777215, %r8d                 ## imm = 0xFFFFFF
	callq	_drm_property_create_range
	movq	%rax, 56(%r12)
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$16777215, %r8d                 ## imm = 0xFFFFFF
	callq	_drm_property_create_range
	movq	%rax, 48(%r12)
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$16777215, %r8d                 ## imm = 0xFFFFFF
	callq	_drm_property_create_range
	movq	%rax, 40(%r12)
	movq	_armada_drm_colorkey_enum_list@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_drm_property_create_enum
	movl	%eax, 32(%r12)
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$511, %r8d                      ## imm = 0x1FF
	callq	_drm_property_create_range
	movq	%rax, 24(%r12)
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$32767, %r8d                    ## imm = 0x7FFF
	callq	_drm_property_create_range
	movq	%rax, 16(%r12)
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$32767, %r8d                    ## imm = 0x7FFF
	callq	_drm_property_create_range
	movq	%rax, 8(%r12)
	cmpq	$0, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"colorkey"

L_.str.1:                               ## @.str.1
	.asciz	"colorkey_min"

L_.str.2:                               ## @.str.2
	.asciz	"colorkey_max"

L_.str.3:                               ## @.str.3
	.asciz	"colorkey_val"

L_.str.4:                               ## @.str.4
	.asciz	"colorkey_alpha"

L_.str.5:                               ## @.str.5
	.asciz	"colorkey_mode"

	.comm	_armada_drm_colorkey_enum_list,4,2 ## @armada_drm_colorkey_enum_list
L_.str.6:                               ## @.str.6
	.asciz	"brightness"

L_.str.7:                               ## @.str.7
	.asciz	"contrast"

L_.str.8:                               ## @.str.8
	.asciz	"saturation"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_armada_overlay_create_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_overlay_create_properties
_armada_overlay_create_properties:      ; @armada_overlay_create_properties
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	mov	w3, #0
	mov	w4, #16777215
	bl	_drm_property_create_range
	str	x0, [x21]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #16777215
	bl	_drm_property_create_range
	str	x0, [x21, #64]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #16777215
	bl	_drm_property_create_range
	str	x0, [x21, #56]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #16777215
	bl	_drm_property_create_range
	str	x0, [x21, #48]
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #16777215
	bl	_drm_property_create_range
	str	x0, [x21, #40]
Lloh10:
	adrp	x8, _armada_drm_colorkey_enum_list@GOTPAGE
Lloh11:
	ldr	x8, [x8, _armada_drm_colorkey_enum_list@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x4, x0
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	bl	_drm_property_create_enum
	str	w0, [x21, #32]
Lloh15:
	adrp	x2, l_.str.6@PAGE
Lloh16:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #511
	bl	_drm_property_create_range
	str	x0, [x21, #24]
Lloh17:
	adrp	x2, l_.str.7@PAGE
Lloh18:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #32767
	bl	_drm_property_create_range
	str	x0, [x21, #16]
Lloh19:
	adrp	x2, l_.str.8@PAGE
Lloh20:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #32767
	bl	_drm_property_create_range
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21, #8]
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"colorkey"

l_.str.1:                               ; @.str.1
	.asciz	"colorkey_min"

l_.str.2:                               ; @.str.2
	.asciz	"colorkey_max"

l_.str.3:                               ; @.str.3
	.asciz	"colorkey_val"

l_.str.4:                               ; @.str.4
	.asciz	"colorkey_alpha"

l_.str.5:                               ; @.str.5
	.asciz	"colorkey_mode"

	.comm	_armada_drm_colorkey_enum_list,4,2 ; @armada_drm_colorkey_enum_list
l_.str.6:                               ; @.str.6
	.asciz	"brightness"

l_.str.7:                               ; @.str.7
	.asciz	"contrast"

l_.str.8:                               ; @.str.8
	.asciz	"saturation"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_armada_overlay_create_properties
.subsections_via_symbols
