	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_plane_update_format
_atmel_hlcdc_plane_update_format:       ## @atmel_hlcdc_plane_update_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	leaq	-20(%rbp), %rsi
	callq	_atmel_hlcdc_format_to_plane_mode
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_DRM_FORMAT_YUV422@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_DRM_FORMAT_NV61@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_3:
	movl	(%rbx), %edi
	callq	_drm_rotation_90_or_270
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ATMEL_HLCDC_YUV422ROT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -20(%rbp)
LBB0_5:
	movq	_ATMEL_HLCDC_LAYER_FORMAT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbp), %edx
	movq	%r14, %rdi
	callq	_atmel_hlcdc_layer_write_cfg
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FORMAT_YUV422,8,3          ## @DRM_FORMAT_YUV422
	.comm	_DRM_FORMAT_NV61,8,3            ## @DRM_FORMAT_NV61
	.comm	_ATMEL_HLCDC_YUV422ROT,4,2      ## @ATMEL_HLCDC_YUV422ROT
	.comm	_ATMEL_HLCDC_LAYER_FORMAT_CFG,4,2 ## @ATMEL_HLCDC_LAYER_FORMAT_CFG
	.no_dead_strip	_atmel_hlcdc_plane_update_format
.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_update_format
_atmel_hlcdc_plane_update_format:       ; @atmel_hlcdc_plane_update_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	add	x1, sp, #12
	bl	_atmel_hlcdc_format_to_plane_mode
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DRM_FORMAT_YUV422@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_FORMAT_YUV422@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DRM_FORMAT_NV61@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_FORMAT_NV61@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_drm_rotation_90_or_270
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ATMEL_HLCDC_YUV422ROT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATMEL_HLCDC_YUV422ROT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_4:
Lloh9:
	adrp	x8, _ATMEL_HLCDC_LAYER_FORMAT_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_FORMAT_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_atmel_hlcdc_layer_write_cfg
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FORMAT_YUV422,8,3          ; @DRM_FORMAT_YUV422
	.comm	_DRM_FORMAT_NV61,8,3            ; @DRM_FORMAT_NV61
	.comm	_ATMEL_HLCDC_YUV422ROT,4,2      ; @ATMEL_HLCDC_YUV422ROT
	.comm	_ATMEL_HLCDC_LAYER_FORMAT_CFG,4,2 ; @ATMEL_HLCDC_LAYER_FORMAT_CFG
	.no_dead_strip	_atmel_hlcdc_plane_update_format
.subsections_via_symbols
