	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atmel_hlcdc_dc_mode_valid      ## -- Begin function atmel_hlcdc_dc_mode_valid
	.p2align	4, 0x90
_atmel_hlcdc_dc_mode_valid:             ## @atmel_hlcdc_dc_mode_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	16(%rsi), %edx
	movl	28(%rsi), %ebx
	movl	%ebx, %ecx
	movq	_MODE_HSYNC@GOTPCREL(%rip), %rax
	subl	%edx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	(%rdi), %r11
	movl	(%r11), %edi
	incl	%edi
	cmpl	%edi, %ecx
	jg	LBB0_14
## %bb.2:
	movl	(%rsi), %r9d
	movl	12(%rsi), %r8d
	movl	%r8d, %ecx
	movq	_MODE_VSYNC@GOTPCREL(%rip), %rax
	subl	%r9d, %ecx
	jle	LBB0_14
## %bb.3:
	cmpl	%edi, %ecx
	jg	LBB0_14
## %bb.4:
	movl	20(%rsi), %r10d
	subl	%r10d, %edx
	movq	_MODE_H_ILLEGAL@GOTPCREL(%rip), %rax
	testl	%edx, %edx
	jle	LBB0_14
## %bb.5:
	movl	4(%r11), %edi
	incl	%edi
	cmpl	%edi, %edx
	jg	LBB0_14
## %bb.6:
	movl	24(%rsi), %ecx
	subl	%ebx, %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.7:
	cmpl	%edi, %ecx
	jg	LBB0_14
## %bb.8:
	testl	%r10d, %r10d
	jle	LBB0_14
## %bb.9:
	movl	4(%rsi), %ecx
	subl	%ecx, %r9d
	movq	_MODE_V_ILLEGAL@GOTPCREL(%rip), %rax
	testl	%r9d, %r9d
	jle	LBB0_14
## %bb.10:
	movl	8(%r11), %edx
	leal	1(%rdx), %edi
	cmpl	%edi, %r9d
	jg	LBB0_14
## %bb.11:
	movl	8(%rsi), %esi
	subl	%r8d, %esi
	movq	_MODE_V_ILLEGAL@GOTPCREL(%rip), %rdi
	movq	%rdi, %rax
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.12:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_13:
	cmpl	%edx, %esi
	cmovgq	%rdi, %rax
	testl	%esi, %esi
	cmovsq	%rdi, %rax
LBB0_14:
	movl	(%rax), %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_HSYNC,4,2                 ## @MODE_HSYNC
	.comm	_MODE_VSYNC,4,2                 ## @MODE_VSYNC
	.comm	_MODE_H_ILLEGAL,4,2             ## @MODE_H_ILLEGAL
	.comm	_MODE_V_ILLEGAL,4,2             ## @MODE_V_ILLEGAL
	.comm	_MODE_OK,4,2                    ## @MODE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atmel_hlcdc_dc_mode_valid      ; -- Begin function atmel_hlcdc_dc_mode_valid
	.p2align	2
_atmel_hlcdc_dc_mode_valid:             ; @atmel_hlcdc_dc_mode_valid
	.cfi_startproc
; %bb.0:
	ldr	w10, [x1, #16]
	ldr	w12, [x1, #28]
	sub	w8, w12, w10
	ldr	x9, [x0]
	ldr	w11, [x9]
	add	w13, w11, #1
	cmp	w8, #1
	ccmp	w8, w13, #0, ge
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _MODE_HSYNC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MODE_HSYNC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x10]
	ret
LBB0_2:
	ldr	w8, [x1]
	ldr	w11, [x1, #12]
	sub	w14, w11, w8
	cmp	w14, #1
	ccmp	w14, w13, #0, ge
	b.le	LBB0_4
; %bb.3:
Lloh3:
	adrp	x10, _MODE_VSYNC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MODE_VSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x10]
	ret
LBB0_4:
	ldr	w13, [x1, #20]
	sub	w15, w10, w13
Lloh6:
	adrp	x10, _MODE_H_ILLEGAL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MODE_H_ILLEGAL@GOTPAGEOFF]
	cmp	w15, #1
	b.lt	LBB0_9
; %bb.5:
	ldr	w14, [x9, #4]
	add	w14, w14, #1
	cmp	w15, w14
	b.gt	LBB0_9
; %bb.6:
	ldr	w10, [x1, #24]
	sub	w12, w10, w12
Lloh8:
	adrp	x10, _MODE_H_ILLEGAL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MODE_H_ILLEGAL@GOTPAGEOFF]
	cmp	w12, #1
	b.lt	LBB0_9
; %bb.7:
	cmp	w12, w14
	ccmp	w13, #1, #8, le
	b.lt	LBB0_9
; %bb.8:
	ldp	w10, w12, [x1, #4]
	sub	w11, w12, w11
	ldr	w9, [x9, #8]
Lloh10:
	adrp	x12, _MODE_V_ILLEGAL@GOTPAGE
Lloh11:
	ldr	x12, [x12, _MODE_V_ILLEGAL@GOTPAGEOFF]
	add	w13, w9, #1
	cmp	w10, #1
	ccmp	w11, w9, #0, ge
	ccmp	w11, #0, #8, le
Lloh12:
	adrp	x9, _MODE_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MODE_OK@GOTPAGEOFF]
	csel	x9, x12, x9, lt
	sub	w8, w8, w10
	cmp	w8, w13
	csel	x9, x12, x9, gt
	cmp	w8, #1
	csel	x10, x12, x9, lt
LBB0_9:
	ldr	w0, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_HSYNC,4,2                 ; @MODE_HSYNC
	.comm	_MODE_VSYNC,4,2                 ; @MODE_VSYNC
	.comm	_MODE_H_ILLEGAL,4,2             ; @MODE_H_ILLEGAL
	.comm	_MODE_V_ILLEGAL,4,2             ; @MODE_V_ILLEGAL
	.comm	_MODE_OK,4,2                    ; @MODE_OK
.subsections_via_symbols
