	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_crtc_mode_set_nofb
_atmel_hlcdc_crtc_mode_set_nofb:        ## @atmel_hlcdc_crtc_mode_set_nofb
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_drm_crtc_to_atmel_hlcdc_crtc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movq	8(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	(%rbx), %r14
	movq	_ATMEL_HLCDC_CLKDIV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_ATMEL_HLCDC_CLKPOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	(%r14), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %r15d
	movl	8(%r14), %r12d
	movl	12(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	subl	%eax, %r12d
	movl	16(%r14), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	28(%r14), %r13d
	movl	%r13d, %ebx
	notl	%ebx
	addl	24(%r14), %ebx
	movl	20(%r14), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_ATMEL_HLCDC_CFG
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	addl	%r13d, %ecx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	notl	%edx
	addl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	shll	$16, %edx
	orl	%ecx, %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_regmap_write
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %edi
	callq	_ATMEL_HLCDC_CFG
	notl	%r15d
	addl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	shll	$16, %r12d
	orl	%r15d, %r12d
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_regmap_write
	movl	$3, %edi
	callq	_ATMEL_HLCDC_CFG
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	addl	-72(%rbp), %ecx                 ## 4-byte Folded Reload
	shll	$16, %ebx
	orl	%ecx, %ebx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movq	%r14, %rbx
	callq	_regmap_write
	movl	$4, %edi
	callq	_ATMEL_HLCDC_CFG
	movl	4(%r14), %edx
	movl	20(%r14), %ecx
	decl	%ecx
	shll	$16, %edx
	addl	$-65536, %edx                   ## imm = 0xFFFF0000
	orl	%ecx, %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_regmap_write
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	xorl	%r14d, %r14d
	cmpl	$0, (%rcx)
	movq	_ATMEL_HLCDC_CLKSEL@GOTPCREL(%rip), %rcx
	jne	LBB0_2
## %bb.1:
	movl	(%rcx), %r14d
LBB0_2:
	movl	(%rax), %edi
	callq	_clk_get_rate
	movl	%eax, %r12d
	addl	%eax, %r12d
	movslq	%r12d, %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	32(%rbx), %rax
	imulq	$1000, %rax, %rbx               ## imm = 0x3E8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_DIV_ROUND_UP
	movl	%r14d, %r13d
	cmpl	$2, %eax
	jl	LBB0_16
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%eax, %r14d
	callq	_ATMEL_HLCDC_CLKDIV
	movq	_ATMEL_HLCDC_CLKDIV_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_5
## %bb.4:
	movq	_ATMEL_HLCDC_CLKSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	notl	%r13d
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	andl	%r14d, %r13d
	shrq	%r15
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, %rbx
	callq	_DIV_ROUND_UP
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ATMEL_HLCDC_CLKDIV
	movl	(%rbx), %edx
	movl	%edx, %ecx
	notl	%ecx
	testl	%ecx, %eax
	cmovel	%r15d, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_16
LBB0_5:
	movl	%r14d, %esi
	movq	%r15, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orq	%rcx, %rax
	shrq	$32, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.7:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_8
LBB0_6:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
LBB0_8:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%esi, %ebx
	movl	%r14d, %r13d
	cmpl	$2, %ecx
	jl	LBB0_16
## %bb.9:
	movslq	%ecx, %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rsi
	jmp	LBB0_12
LBB0_10:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
LBB0_12:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	subq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	%ebx, %edi
	movq	%r15, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_15
LBB0_13:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	%rax, %rdx
	addq	%rdx, %rdx
	leaq	(%rdx,%rdx,4), %rax
	cmpq	%rax, %rsi
	cmovbl	%ecx, %ebx
	movl	%r14d, %r13d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_16:
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	orl	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r14d, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ATMEL_HLCDC_CLKDIV
	orl	%eax, %r13d
	xorl	%edi, %edi
	callq	_ATMEL_HLCDC_CFG
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_regmap_update_bits
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_drm_crtc_state_to_atmel_hlcdc_crtc_state
	movl	(%rax), %ecx
	shll	$8, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	36(%rax), %eax
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	_ATMEL_HLCDC_VSPOL@GOTPCREL(%rip), %r14
	andl	%eax, %ebx
	je	LBB0_18
## %bb.17:
	movl	(%r14), %ebx
LBB0_18:
	orl	%ecx, %ebx
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	movq	_ATMEL_HLCDC_HSPOL@GOTPCREL(%rip), %r15
	andl	(%rcx), %eax
	je	LBB0_20
## %bb.19:
	movl	(%r15), %eax
LBB0_20:
	orl	%eax, %ebx
	movl	$5, %edi
	callq	_ATMEL_HLCDC_CFG
	movl	(%r14), %edx
	orl	(%r15), %edx
	movq	_ATMEL_HLCDC_VSPDLYS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ATMEL_HLCDC_VSPDLYE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ATMEL_HLCDC_DISPPOL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ATMEL_HLCDC_DISPDLY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ATMEL_HLCDC_VSPSU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ATMEL_HLCDC_VSPHO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ATMEL_HLCDC_GUARDTIME_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ATMEL_HLCDC_MODE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%ebx, %ecx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMEL_HLCDC_CLKDIV_MASK,4,2    ## @ATMEL_HLCDC_CLKDIV_MASK
	.comm	_ATMEL_HLCDC_CLKPOL,4,2         ## @ATMEL_HLCDC_CLKPOL
	.comm	_ATMEL_HLCDC_CLKSEL,4,2         ## @ATMEL_HLCDC_CLKSEL
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_ATMEL_HLCDC_VSPOL,4,2          ## @ATMEL_HLCDC_VSPOL
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_ATMEL_HLCDC_HSPOL,4,2          ## @ATMEL_HLCDC_HSPOL
	.comm	_ATMEL_HLCDC_VSPDLYS,4,2        ## @ATMEL_HLCDC_VSPDLYS
	.comm	_ATMEL_HLCDC_VSPDLYE,4,2        ## @ATMEL_HLCDC_VSPDLYE
	.comm	_ATMEL_HLCDC_DISPPOL,4,2        ## @ATMEL_HLCDC_DISPPOL
	.comm	_ATMEL_HLCDC_DISPDLY,4,2        ## @ATMEL_HLCDC_DISPDLY
	.comm	_ATMEL_HLCDC_VSPSU,4,2          ## @ATMEL_HLCDC_VSPSU
	.comm	_ATMEL_HLCDC_VSPHO,4,2          ## @ATMEL_HLCDC_VSPHO
	.comm	_ATMEL_HLCDC_GUARDTIME_MASK,4,2 ## @ATMEL_HLCDC_GUARDTIME_MASK
	.comm	_ATMEL_HLCDC_MODE_MASK,4,2      ## @ATMEL_HLCDC_MODE_MASK
	.no_dead_strip	_atmel_hlcdc_crtc_mode_set_nofb
.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_mode_set_nofb
_atmel_hlcdc_crtc_mode_set_nofb:        ; @atmel_hlcdc_crtc_mode_set_nofb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_drm_crtc_to_atmel_hlcdc_crtc
	stp	x19, x0, [sp, #16]              ; 16-byte Folded Spill
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x27, [x8, #8]
	ldr	x25, [x19]
Lloh0:
	adrp	x8, _ATMEL_HLCDC_CLKDIV_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATMEL_HLCDC_CLKDIV_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _ATMEL_HLCDC_CLKPOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATMEL_HLCDC_CLKPOL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldp	w23, w24, [x25]
	ldp	w8, w21, [x25, #8]
	sub	w26, w8, w21
	ldp	w28, w22, [x25, #16]
	ldp	w20, w19, [x25, #24]
	mov	w0, #1
	bl	_ATMEL_HLCDC_CFG
	mov	x1, x0
	mvn	w8, w28
	add	w8, w19, w8
	mvn	w9, w23
	add	w9, w21, w9
	orr	w2, w8, w9, lsl #16
	mov	x0, x27
	bl	_regmap_write
	mov	w21, #2
	mov	w0, #2
	bl	_ATMEL_HLCDC_CFG
	mov	x1, x0
	mvn	w8, w24
	add	w8, w23, w8
	orr	w2, w8, w26, lsl #16
	mov	x0, x27
	bl	_regmap_write
	mov	w0, #3
	bl	_ATMEL_HLCDC_CFG
	mov	x1, x0
	mvn	w8, w22
	add	w8, w28, w8
	mvn	w9, w19
	add	w9, w20, w9
	orr	w2, w8, w9, lsl #16
	mov	x0, x27
	bl	_regmap_write
	mov	w0, #4
	bl	_ATMEL_HLCDC_CFG
	mov	x1, x0
	ldr	w8, [x25, #20]
	sub	w8, w8, #1
	ldr	w9, [x25, #4]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w2, w9, w8
	mov	x0, x27
	bl	_regmap_write
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldp	x8, x9, [x8]
	ldr	w9, [x9]
Lloh6:
	adrp	x28, _ATMEL_HLCDC_CLKSEL@GOTPAGE
Lloh7:
	ldr	x28, [x28, _ATMEL_HLCDC_CLKSEL@GOTPAGEOFF]
	ldr	w10, [x28]
	cmp	w9, #0
	csel	w26, w10, wzr, eq
	ldr	w0, [x8]
	bl	_clk_get_rate
	lsl	w8, w0, #1
	sxtw	x22, w8
	ldrsw	x8, [x25, #32]
	mov	w9, #1000
	mul	x23, x8, x9
	mov	x0, x22
	mov	x1, x23
	bl	_DIV_ROUND_UP
	cmp	w0, #2
	b.ge	LBB0_2
; %bb.1:
	mov	x28, x26
	b	LBB0_4
LBB0_2:
	mov	x24, x0
	bl	_ATMEL_HLCDC_CLKDIV
Lloh8:
	adrp	x19, _ATMEL_HLCDC_CLKDIV_MASK@GOTPAGE
Lloh9:
	ldr	x19, [x19, _ATMEL_HLCDC_CLKDIV_MASK@GOTPAGEOFF]
	ldr	w8, [x19]
	bics	wzr, w0, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x28]
	bic	w28, w26, w8
	lsr	x0, x22, #1
	mov	x1, x23
	bl	_DIV_ROUND_UP
	mov	x21, x0
	bl	_ATMEL_HLCDC_CLKDIV
	ldr	w8, [x19]
	bics	wzr, w0, w8
	csel	w21, w21, w8, eq
LBB0_4:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldp	w12, w11, [sp, #8]              ; 8-byte Folded Reload
LBB0_5:
	orr	w8, w12, w11
	orr	w22, w8, w26
	mov	x0, x21
	bl	_ATMEL_HLCDC_CLKDIV
	orr	w21, w0, w28
	mov	w0, #0
	bl	_ATMEL_HLCDC_CFG
	mov	x1, x0
	mov	x0, x27
	mov	x2, x22
	mov	x3, x21
	bl	_regmap_update_bits
	ldr	x0, [x19]
	bl	_drm_crtc_state_to_atmel_hlcdc_crtc_state
	ldr	w8, [x0]
	ldr	w9, [x25, #36]
Lloh10:
	adrp	x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x19, _ATMEL_HLCDC_VSPOL@GOTPAGE
Lloh14:
	ldr	x19, [x19, _ATMEL_HLCDC_VSPOL@GOTPAGEOFF]
	ldr	w11, [x19]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8, lsl #8
Lloh15:
	adrp	x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x21, _ATMEL_HLCDC_HSPOL@GOTPAGE
Lloh19:
	ldr	x21, [x21, _ATMEL_HLCDC_HSPOL@GOTPAGEOFF]
	ldr	w11, [x21]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w20, w8, w9
	mov	w0, #5
	bl	_ATMEL_HLCDC_CFG
	mov	x1, x0
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _ATMEL_HLCDC_VSPDLYS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ATMEL_HLCDC_VSPDLYS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _ATMEL_HLCDC_VSPDLYE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ATMEL_HLCDC_VSPDLYE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _ATMEL_HLCDC_DISPPOL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATMEL_HLCDC_DISPPOL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _ATMEL_HLCDC_DISPDLY@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ATMEL_HLCDC_DISPDLY@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _ATMEL_HLCDC_VSPSU@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ATMEL_HLCDC_VSPSU@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh35:
	adrp	x9, _ATMEL_HLCDC_VSPHO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ATMEL_HLCDC_VSPHO@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh38:
	adrp	x9, _ATMEL_HLCDC_GUARDTIME_MASK@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ATMEL_HLCDC_GUARDTIME_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh41:
	adrp	x9, _ATMEL_HLCDC_MODE_MASK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ATMEL_HLCDC_MODE_MASK@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x27
	mov	x3, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_regmap_update_bits
LBB0_6:
	udiv	x8, x22, x23
	cmp	w8, #2
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldp	w12, w11, [sp, #8]              ; 8-byte Folded Reload
	b.lt	LBB0_8
; %bb.7:
	sxtw	x9, w8
	udiv	x9, x22, x9
	sub	x9, x9, x23
	mov	w10, w24
	udiv	x10, x22, x10
	sub	x10, x23, x10
	add	x10, x10, x10, lsl #2
	cmp	x9, x10, lsl #1
	csel	w21, w8, w24, lo
	mov	x28, x26
	b	LBB0_5
LBB0_8:
	mov	x28, x26
	mov	x21, x24
	b	LBB0_5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMEL_HLCDC_CLKDIV_MASK,4,2    ; @ATMEL_HLCDC_CLKDIV_MASK
	.comm	_ATMEL_HLCDC_CLKPOL,4,2         ; @ATMEL_HLCDC_CLKPOL
	.comm	_ATMEL_HLCDC_CLKSEL,4,2         ; @ATMEL_HLCDC_CLKSEL
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_ATMEL_HLCDC_VSPOL,4,2          ; @ATMEL_HLCDC_VSPOL
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_ATMEL_HLCDC_HSPOL,4,2          ; @ATMEL_HLCDC_HSPOL
	.comm	_ATMEL_HLCDC_VSPDLYS,4,2        ; @ATMEL_HLCDC_VSPDLYS
	.comm	_ATMEL_HLCDC_VSPDLYE,4,2        ; @ATMEL_HLCDC_VSPDLYE
	.comm	_ATMEL_HLCDC_DISPPOL,4,2        ; @ATMEL_HLCDC_DISPPOL
	.comm	_ATMEL_HLCDC_DISPDLY,4,2        ; @ATMEL_HLCDC_DISPDLY
	.comm	_ATMEL_HLCDC_VSPSU,4,2          ; @ATMEL_HLCDC_VSPSU
	.comm	_ATMEL_HLCDC_VSPHO,4,2          ; @ATMEL_HLCDC_VSPHO
	.comm	_ATMEL_HLCDC_GUARDTIME_MASK,4,2 ; @ATMEL_HLCDC_GUARDTIME_MASK
	.comm	_ATMEL_HLCDC_MODE_MASK,4,2      ; @ATMEL_HLCDC_MODE_MASK
	.no_dead_strip	_atmel_hlcdc_crtc_mode_set_nofb
.subsections_via_symbols
