	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_plane_update_general_settings
_atmel_hlcdc_plane_update_general_settings: ## @atmel_hlcdc_plane_update_general_settings
	.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	_ATMEL_HLCDC_LAYER_DMA_BLEN_INCR16@GOTPCREL(%rip), %rax
	movl	(%rsi), %edx
	orl	(%rax), %edx
	movq	%rdi, %r14
	movq	32(%rsi), %rax
	movq	(%rax), %r13
	movq	(%r13), %rcx
	movq	_DRM_FORMAT_RGB888@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_ATMEL_HLCDC_LAYER_DMA_ROTDIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %edx
	movq	(%r14), %r12
	movq	_ATMEL_HLCDC_LAYER_DMA_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atmel_hlcdc_layer_write_cfg
	movq	_ATMEL_HLCDC_LAYER_DMA@GOTPCREL(%rip), %rax
	movq	_ATMEL_HLCDC_LAYER_REP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	8(%r14), %rax
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_ATMEL_HLCDC_LAYER_OVR@GOTPCREL(%rip), %rax
	movq	_ATMEL_HLCDC_LAYER_ITER2BL@GOTPCREL(%rip), %rcx
	movq	_ATMEL_HLCDC_LAYER_ITER@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	cmpq	$0, 8(%r13)
	je	LBB0_5
## %bb.4:
	movq	_ATMEL_HLCDC_LAYER_LAEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_6:
	cmpq	$0, 16(%r15)
	je	LBB0_9
LBB0_7:
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.8:
	movq	_ATMEL_HLCDC_LAYER_DISCEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_9:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atmel_hlcdc_layer_write_cfg    ## TAILCALL
LBB0_5:
	movq	_ATMEL_HLCDC_LAYER_GAEN@GOTPCREL(%rip), %rax
	movl	24(%r15), %edi
	orl	(%rax), %ebx
	callq	_ATMEL_HLCDC_LAYER_GA
	orl	%eax, %ebx
	cmpq	$0, 16(%r15)
	jne	LBB0_7
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMEL_HLCDC_LAYER_DMA_BLEN_INCR16,4,2 ## @ATMEL_HLCDC_LAYER_DMA_BLEN_INCR16
	.comm	_DRM_FORMAT_RGB888,8,3          ## @DRM_FORMAT_RGB888
	.comm	_ATMEL_HLCDC_LAYER_DMA_ROTDIS,4,2 ## @ATMEL_HLCDC_LAYER_DMA_ROTDIS
	.comm	_ATMEL_HLCDC_LAYER_DMA_CFG,4,2  ## @ATMEL_HLCDC_LAYER_DMA_CFG
	.comm	_ATMEL_HLCDC_LAYER_DMA,4,2      ## @ATMEL_HLCDC_LAYER_DMA
	.comm	_ATMEL_HLCDC_LAYER_REP,4,2      ## @ATMEL_HLCDC_LAYER_REP
	.comm	_DRM_PLANE_TYPE_PRIMARY,8,3     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_ATMEL_HLCDC_LAYER_OVR,4,2      ## @ATMEL_HLCDC_LAYER_OVR
	.comm	_ATMEL_HLCDC_LAYER_ITER2BL,4,2  ## @ATMEL_HLCDC_LAYER_ITER2BL
	.comm	_ATMEL_HLCDC_LAYER_ITER,4,2     ## @ATMEL_HLCDC_LAYER_ITER
	.comm	_ATMEL_HLCDC_LAYER_LAEN,4,2     ## @ATMEL_HLCDC_LAYER_LAEN
	.comm	_ATMEL_HLCDC_LAYER_GAEN,4,2     ## @ATMEL_HLCDC_LAYER_GAEN
	.comm	_ATMEL_HLCDC_LAYER_DISCEN,4,2   ## @ATMEL_HLCDC_LAYER_DISCEN
	.no_dead_strip	_atmel_hlcdc_plane_update_general_settings
.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_general_settings
_atmel_hlcdc_plane_update_general_settings: ; @atmel_hlcdc_plane_update_general_settings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _ATMEL_HLCDC_LAYER_DMA_BLEN_INCR16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_DMA_BLEN_INCR16@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1]
	orr	w8, w9, w8
	ldr	x21, [x0]
	ldr	x9, [x1, #32]
	ldr	x22, [x9]
	ldr	x9, [x22]
Lloh3:
	adrp	x10, _DRM_FORMAT_RGB888@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_FORMAT_RGB888@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _ATMEL_HLCDC_LAYER_DMA_ROTDIS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ATMEL_HLCDC_LAYER_DMA_ROTDIS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w2, w8, w9
Lloh9:
	adrp	x8, _ATMEL_HLCDC_LAYER_DMA_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_DMA_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_atmel_hlcdc_layer_write_cfg
Lloh12:
	adrp	x8, _ATMEL_HLCDC_LAYER_DMA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_DMA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ATMEL_HLCDC_LAYER_REP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATMEL_HLCDC_LAYER_REP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
Lloh21:
	adrp	x8, _ATMEL_HLCDC_LAYER_OVR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_OVR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _ATMEL_HLCDC_LAYER_ITER2BL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ATMEL_HLCDC_LAYER_ITER2BL@GOTPAGEOFF]
Lloh26:
	adrp	x10, _ATMEL_HLCDC_LAYER_ITER@GOTPAGE
Lloh27:
	ldr	x10, [x10, _ATMEL_HLCDC_LAYER_ITER@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	ldr	w10, [x10]
	orr	w8, w8, w2
	orr	w8, w8, w9
	orr	w23, w8, w10
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_7
; %bb.2:
Lloh30:
	adrp	x8, _ATMEL_HLCDC_LAYER_LAEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_LAEN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w2, w8, w23
LBB0_3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh33:
	adrp	x8, _ATMEL_HLCDC_LAYER_DISCEN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_DISCEN@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_atmel_hlcdc_layer_write_cfg
LBB0_7:
Lloh36:
	adrp	x8, _ATMEL_HLCDC_LAYER_GAEN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ATMEL_HLCDC_LAYER_GAEN@GOTPAGEOFF]
Lloh38:
	ldr	w22, [x8]
	ldr	w0, [x20, #24]
	bl	_ATMEL_HLCDC_LAYER_GA
	orr	w8, w22, w23
	orr	w2, w8, w0
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMEL_HLCDC_LAYER_DMA_BLEN_INCR16,4,2 ; @ATMEL_HLCDC_LAYER_DMA_BLEN_INCR16
	.comm	_DRM_FORMAT_RGB888,8,3          ; @DRM_FORMAT_RGB888
	.comm	_ATMEL_HLCDC_LAYER_DMA_ROTDIS,4,2 ; @ATMEL_HLCDC_LAYER_DMA_ROTDIS
	.comm	_ATMEL_HLCDC_LAYER_DMA_CFG,4,2  ; @ATMEL_HLCDC_LAYER_DMA_CFG
	.comm	_ATMEL_HLCDC_LAYER_DMA,4,2      ; @ATMEL_HLCDC_LAYER_DMA
	.comm	_ATMEL_HLCDC_LAYER_REP,4,2      ; @ATMEL_HLCDC_LAYER_REP
	.comm	_DRM_PLANE_TYPE_PRIMARY,8,3     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_ATMEL_HLCDC_LAYER_OVR,4,2      ; @ATMEL_HLCDC_LAYER_OVR
	.comm	_ATMEL_HLCDC_LAYER_ITER2BL,4,2  ; @ATMEL_HLCDC_LAYER_ITER2BL
	.comm	_ATMEL_HLCDC_LAYER_ITER,4,2     ; @ATMEL_HLCDC_LAYER_ITER
	.comm	_ATMEL_HLCDC_LAYER_LAEN,4,2     ; @ATMEL_HLCDC_LAYER_LAEN
	.comm	_ATMEL_HLCDC_LAYER_GAEN,4,2     ; @ATMEL_HLCDC_LAYER_GAEN
	.comm	_ATMEL_HLCDC_LAYER_DISCEN,4,2   ; @ATMEL_HLCDC_LAYER_DISCEN
	.no_dead_strip	_atmel_hlcdc_plane_update_general_settings
.subsections_via_symbols
