	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_freq_to_reg_627hf
_pwm_freq_to_reg_627hf:                 ## @pwm_freq_to_reg_627hf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_W83627HF_BASE_PWM_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	sarl	%edx
	leal	(%rcx,%rdx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movslq	%esi, %rsi
	xorl	%eax, %eax
	cmpq	%rdi, %rsi
	jb	LBB0_4
## %bb.1:
	movl	%ecx, %esi
	sarl	$2, %esi
	addl	%esi, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	movl	$1, %eax
	cmpq	%rdi, %rdx
	jb	LBB0_4
## %bb.2:
	movl	%ecx, %edx
	sarl	$3, %edx
	addl	%edx, %esi
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movslq	%eax, %rsi
	movl	$2, %eax
	cmpq	%rdi, %rsi
	jb	LBB0_4
## %bb.3:
	sarl	$4, %ecx
	addl	%ecx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	cmpq	%rdi, %rax
	movl	$4, %eax
	sbbl	$0, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83627HF_BASE_PWM_FREQ,4,2     ## @W83627HF_BASE_PWM_FREQ
	.no_dead_strip	_pwm_freq_to_reg_627hf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_freq_to_reg_627hf
_pwm_freq_to_reg_627hf:                 ; @pwm_freq_to_reg_627hf
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _W83627HF_BASE_PWM_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83627HF_BASE_PWM_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w9, w8, #1
	add	w10, w8, w9
	cmp	w10, #0
	cinc	w10, w10, lt
	sbfx	x10, x10, #1, #31
	cmp	x10, x0
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	asr	w10, w8, #2
	add	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	sbfx	x9, x9, #1, #31
	cmp	x9, x0
	b.hs	LBB0_4
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
	asr	w9, w8, #3
	add	w10, w10, w9
	cmp	w10, #0
	cinc	w10, w10, lt
	sbfx	x10, x10, #1, #31
	cmp	x10, x0
	b.hs	LBB0_6
; %bb.5:
	mov	w0, #2
	ret
LBB0_6:
	add	w8, w9, w8, asr #4
	cmp	w8, #0
	cinc	w8, w8, lt
	sbfx	x8, x8, #1, #31
	cmp	x8, x0
	mov	w8, #3
	cinc	w0, w8, hs
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_W83627HF_BASE_PWM_FREQ,4,2     ; @W83627HF_BASE_PWM_FREQ
	.no_dead_strip	_pwm_freq_to_reg_627hf
.subsections_via_symbols
