	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_plane_phiscaler_get_factor
_atmel_hlcdc_plane_phiscaler_get_factor: ## @atmel_hlcdc_plane_phiscaler_get_factor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %ecx
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	leal	(,%rdi,8), %eax
	subl	%edx, %eax
	shll	$8, %eax
	addl	$-2048, %eax                    ## imm = 0xF800
	decl	%esi
	cltd
	idivl	%esi
	imull	%eax, %esi
	shll	$8, %ecx
	leal	(%rsi,%rcx), %edx
	addl	$2047, %edx                     ## imm = 0x7FF
                                        ## kill: def $esi killed $esi killed $rsi
	addl	%ecx, %esi
	cmovnsl	%esi, %edx
	sarl	$11, %edx
	xorl	%ecx, %ecx
	cmpl	%edi, %edx
	setge	%cl
	subl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_atmel_hlcdc_plane_phiscaler_get_factor
.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_phiscaler_get_factor
_atmel_hlcdc_plane_phiscaler_get_factor: ; @atmel_hlcdc_plane_phiscaler_get_factor
	.cfi_startproc
; %bb.0:
	lsl	w8, w0, #3
	sub	w8, w8, w2
	lsl	w8, w8, #8
	sub	w8, w8, #2048
	sub	w9, w1, #1
	sdiv	w8, w8, w9
	mul	w9, w8, w9
	add	w9, w9, w2, lsl #8
	add	w10, w9, #2047
	cmp	w9, #0
	csel	w9, w10, w9, lt
	cmp	w0, w9, asr #11
	cset	w9, le
	sub	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_atmel_hlcdc_plane_phiscaler_get_factor
.subsections_via_symbols
