	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_crtc_atomic_disable
_atmel_hlcdc_crtc_atomic_disable:       ## @atmel_hlcdc_crtc_atomic_disable
	.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, %r15
	movq	(%rdi), %r12
	callq	_drm_crtc_to_atmel_hlcdc_crtc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_off
	movl	(%r12), %edi
	callq	_pm_runtime_get_sync
	movq	_ATMEL_HLCDC_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATMEL_HLCDC_DISP@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_5
## %bb.1:
	movl	(%r14), %eax
	andl	-44(%rbp), %eax
	je	LBB0_5
## %bb.2:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %eax
	andl	-44(%rbp), %eax
	jne	LBB0_3
LBB0_5:
	movq	_ATMEL_HLCDC_DIS@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_10
## %bb.6:
	movl	(%r14), %eax
	andl	-44(%rbp), %eax
	je	LBB0_10
## %bb.7:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %eax
	andl	-44(%rbp), %eax
	jne	LBB0_8
LBB0_10:
	movq	_ATMEL_HLCDC_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATMEL_HLCDC_PIXEL_CLK@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_15
## %bb.11:
	movl	(%r14), %eax
	andl	-44(%rbp), %eax
	je	LBB0_15
## %bb.12:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14), %eax
	andl	-44(%rbp), %eax
	jne	LBB0_13
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_clk_disable_unprepare
	movl	(%r12), %edi
	callq	_pinctrl_pm_select_sleep_state
	movl	(%r12), %edi
	callq	_pm_runtime_allow
	movl	(%r12), %edi
	callq	_pm_runtime_put_sync
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMEL_HLCDC_DIS,4,2            ## @ATMEL_HLCDC_DIS
	.comm	_ATMEL_HLCDC_DISP,4,2           ## @ATMEL_HLCDC_DISP
	.comm	_ATMEL_HLCDC_SR,4,2             ## @ATMEL_HLCDC_SR
	.comm	_ATMEL_HLCDC_SYNC,4,2           ## @ATMEL_HLCDC_SYNC
	.comm	_ATMEL_HLCDC_PIXEL_CLK,4,2      ## @ATMEL_HLCDC_PIXEL_CLK
	.no_dead_strip	_atmel_hlcdc_crtc_atomic_disable
.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_disable
_atmel_hlcdc_crtc_atomic_disable:       ; @atmel_hlcdc_crtc_atomic_disable
	.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	x21, x0
	ldr	x22, [x0]
	bl	_drm_crtc_to_atmel_hlcdc_crtc
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8, #8]
	mov	x0, x21
	bl	_drm_crtc_vblank_off
	ldr	w0, [x22]
	bl	_pm_runtime_get_sync
Lloh0:
	adrp	x23, _ATMEL_HLCDC_DIS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATMEL_HLCDC_DIS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _ATMEL_HLCDC_DISP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ATMEL_HLCDC_DISP@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
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	and	w8, w9, w8
	cmp	w0, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	b	LBB0_1
LBB0_3:
	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_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	and	w8, w9, w8
	cmp	w0, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_cpu_relax
	b	LBB0_4
LBB0_6:
	ldr	w1, [x23]
Lloh8:
	adrp	x23, _ATMEL_HLCDC_PIXEL_CLK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ATMEL_HLCDC_PIXEL_CLK@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_regmap_write
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	and	w8, w9, w8
	cmp	w0, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_cpu_relax
	b	LBB0_7
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_clk_disable_unprepare
	ldr	w0, [x22]
	bl	_pinctrl_pm_select_sleep_state
	ldr	w0, [x22]
	bl	_pm_runtime_allow
	ldr	w0, [x22]
	bl	_pm_runtime_put_sync
	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_DIS,4,2            ; @ATMEL_HLCDC_DIS
	.comm	_ATMEL_HLCDC_DISP,4,2           ; @ATMEL_HLCDC_DISP
	.comm	_ATMEL_HLCDC_SR,4,2             ; @ATMEL_HLCDC_SR
	.comm	_ATMEL_HLCDC_SYNC,4,2           ; @ATMEL_HLCDC_SYNC
	.comm	_ATMEL_HLCDC_PIXEL_CLK,4,2      ; @ATMEL_HLCDC_PIXEL_CLK
	.no_dead_strip	_atmel_hlcdc_crtc_atomic_disable
.subsections_via_symbols
