	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_plane_init_properties
_atmel_hlcdc_plane_init_properties:     ## @atmel_hlcdc_plane_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	(%r15), %rax
	movq	_ATMEL_HLCDC_OVERLAY_LAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ATMEL_HLCDC_CURSOR_LAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	leaq	8(%r14), %rdi
	callq	_drm_plane_create_alpha_property
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
LBB0_3:
	movq	24(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRM_MODE_ROTATE_90@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	movq	_DRM_MODE_ROTATE_180@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	8(%r14), %rdi
	movq	_DRM_MODE_ROTATE_270@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_drm_plane_create_rotation_property
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	8(%r15), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$1284505745, %edx               ## imm = 0x4C900091
	callq	_atmel_hlcdc_layer_write_cfg
	movq	8(%r15), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movl	$2053066896, %edx               ## imm = 0x7A5F5090
	callq	_atmel_hlcdc_layer_write_cfg
	movq	8(%r15), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	movl	$1074006160, %edx               ## imm = 0x40040890
	callq	_atmel_hlcdc_layer_write_cfg
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMEL_HLCDC_OVERLAY_LAYER,8,3  ## @ATMEL_HLCDC_OVERLAY_LAYER
	.comm	_ATMEL_HLCDC_CURSOR_LAYER,8,3   ## @ATMEL_HLCDC_CURSOR_LAYER
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_ROTATE_90,4,2         ## @DRM_MODE_ROTATE_90
	.comm	_DRM_MODE_ROTATE_180,4,2        ## @DRM_MODE_ROTATE_180
	.comm	_DRM_MODE_ROTATE_270,4,2        ## @DRM_MODE_ROTATE_270
	.no_dead_strip	_atmel_hlcdc_plane_init_properties
.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_init_properties
_atmel_hlcdc_plane_init_properties:     ; @atmel_hlcdc_plane_init_properties
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ATMEL_HLCDC_OVERLAY_LAYER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATMEL_HLCDC_OVERLAY_LAYER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ATMEL_HLCDC_CURSOR_LAYER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATMEL_HLCDC_CURSOR_LAYER@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	add	x0, x19, #8
	bl	_drm_plane_create_alpha_property
	cbnz	w0, LBB0_8
LBB0_2:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	add	x0, x19, #8
Lloh6:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DRM_MODE_ROTATE_90@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_ROTATE_90@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w1
Lloh12:
	adrp	x9, _DRM_MODE_ROTATE_180@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DRM_MODE_ROTATE_180@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _DRM_MODE_ROTATE_270@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DRM_MODE_ROTATE_270@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_drm_plane_create_rotation_property
	cbnz	w0, LBB0_8
LBB0_5:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w2, #145
	movk	w2, #19600, lsl #16
	bl	_atmel_hlcdc_layer_write_cfg
	ldr	x8, [x20, #8]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #20624
	movk	w2, #31327, lsl #16
	bl	_atmel_hlcdc_layer_write_cfg
	ldr	x8, [x20, #8]
	add	x1, x8, #2
	mov	x0, x19
	mov	w2, #2192
	movk	w2, #16388, lsl #16
	bl	_atmel_hlcdc_layer_write_cfg
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMEL_HLCDC_OVERLAY_LAYER,8,3  ; @ATMEL_HLCDC_OVERLAY_LAYER
	.comm	_ATMEL_HLCDC_CURSOR_LAYER,8,3   ; @ATMEL_HLCDC_CURSOR_LAYER
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_ROTATE_90,4,2         ; @DRM_MODE_ROTATE_90
	.comm	_DRM_MODE_ROTATE_180,4,2        ; @DRM_MODE_ROTATE_180
	.comm	_DRM_MODE_ROTATE_270,4,2        ; @DRM_MODE_ROTATE_270
	.no_dead_strip	_atmel_hlcdc_plane_init_properties
.subsections_via_symbols
