	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_freq_to_reg
_pwm_freq_to_reg:                       ## @pwm_freq_to_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$128, %eax
	cmpq	$187499, %rdi                   ## imm = 0x2DC6B
	ja	LBB0_5
## %bb.1:
	cmpq	$1475, %rdi                     ## imm = 0x5C3
	jb	LBB0_3
## %bb.2:
	shll	$8, %edi
	movl	$48000000, %eax                 ## imm = 0x2DC6C00
	xorl	%edx, %edx
	divl	%edi
	orl	$128, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	$127, %eax
	cmpq	$31, %rdi
	jb	LBB0_5
## %bb.4:
	shll	$8, %edi
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	divl	%edi
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pwm_freq_to_reg
.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
_pwm_freq_to_reg:                       ; @pwm_freq_to_reg
	.cfi_startproc
; %bb.0:
	mov	w8, #56427
	movk	w8, #2, lsl #16
	cmp	x0, x8
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #128
	ret
LBB0_2:
	cmp	x0, #1475
	b.lo	LBB0_4
; %bb.3:
	lsl	w8, w0, #8
	mov	w9, #27648
	movk	w9, #732, lsl #16
	udiv	w8, w9, w8
	orr	w0, w8, #0x80
	ret
LBB0_4:
	cmp	x0, #31
	b.hs	LBB0_6
; %bb.5:
	mov	w0, #127
	ret
LBB0_6:
	lsl	w8, w0, #8
	mov	w9, #16960
	movk	w9, #15, lsl #16
	udiv	w0, w9, w8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pwm_freq_to_reg
.subsections_via_symbols
