	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_crtc_atomic_enable
_atmel_hlcdc_crtc_atomic_enable:        ## @atmel_hlcdc_crtc_atomic_enable
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_drm_crtc_to_atmel_hlcdc_crtc
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	movl	(%r12), %edi
	callq	_pm_runtime_get_sync
	movl	(%r12), %edi
	callq	_pm_runtime_forbid
	movl	(%r12), %edi
	callq	_pinctrl_pm_select_default_state
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_clk_prepare_enable
	movq	_ATMEL_HLCDC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATMEL_HLCDC_PIXEL_CLK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_regmap_write
	movq	_ATMEL_HLCDC_SR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	_ATMEL_HLCDC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATMEL_HLCDC_SYNC@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_regmap_write
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	movq	_ATMEL_HLCDC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATMEL_HLCDC_DISP@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_regmap_write
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_10
LBB0_12:
	movl	(%r12), %edi
	callq	_pm_runtime_put_sync
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_drm_crtc_vblank_on
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMEL_HLCDC_EN,4,2             ## @ATMEL_HLCDC_EN
	.comm	_ATMEL_HLCDC_PIXEL_CLK,4,2      ## @ATMEL_HLCDC_PIXEL_CLK
	.comm	_ATMEL_HLCDC_SR,4,2             ## @ATMEL_HLCDC_SR
	.comm	_ATMEL_HLCDC_SYNC,4,2           ## @ATMEL_HLCDC_SYNC
	.comm	_ATMEL_HLCDC_DISP,4,2           ## @ATMEL_HLCDC_DISP
	.no_dead_strip	_atmel_hlcdc_crtc_atomic_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_hlcdc_crtc_atomic_enable
_atmel_hlcdc_crtc_atomic_enable:        ; @atmel_hlcdc_crtc_atomic_enable
	.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	x19, x0
	ldr	x22, [x0]
	bl	_drm_crtc_to_atmel_hlcdc_crtc
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8, #8]
	ldr	w0, [x22]
	bl	_pm_runtime_get_sync
	ldr	w0, [x22]
	bl	_pm_runtime_forbid
	ldr	w0, [x22]
	bl	_pinctrl_pm_select_default_state
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_clk_prepare_enable
Lloh0:
	adrp	x23, _ATMEL_HLCDC_EN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATMEL_HLCDC_EN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _ATMEL_HLCDC_PIXEL_CLK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ATMEL_HLCDC_PIXEL_CLK@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_regmap_write
Lloh4:
	adrp	x21, _ATMEL_HLCDC_SR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ATMEL_HLCDC_SR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	cbnz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	b	LBB0_1
LBB0_4:
	ldr	w1, [x23]
Lloh6:
	adrp	x24, _ATMEL_HLCDC_SYNC@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ATMEL_HLCDC_SYNC@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_regmap_write
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
	b	LBB0_5
LBB0_8:
	ldr	w1, [x23]
Lloh8:
	adrp	x23, _ATMEL_HLCDC_DISP@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ATMEL_HLCDC_DISP@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_regmap_write
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_cpu_relax
	b	LBB0_9
LBB0_12:
	ldr	w0, [x22]
	bl	_pm_runtime_put_sync
	mov	x0, x19
	bl	_drm_crtc_vblank_on
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMEL_HLCDC_EN,4,2             ; @ATMEL_HLCDC_EN
	.comm	_ATMEL_HLCDC_PIXEL_CLK,4,2      ; @ATMEL_HLCDC_PIXEL_CLK
	.comm	_ATMEL_HLCDC_SR,4,2             ; @ATMEL_HLCDC_SR
	.comm	_ATMEL_HLCDC_SYNC,4,2           ; @ATMEL_HLCDC_SYNC
	.comm	_ATMEL_HLCDC_DISP,4,2           ; @ATMEL_HLCDC_DISP
	.no_dead_strip	_atmel_hlcdc_crtc_atomic_enable
.subsections_via_symbols
