	.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	$1, %eax
	cmpq	$93749, %rdi                    ## imm = 0x16E35
	ja	LBB0_5
## %bb.1:
	cmpq	$720, %rdi                      ## imm = 0x2D0
	jb	LBB0_3
## %bb.2:
	shll	$8, %edi
	movl	$24000000, %eax                 ## imm = 0x16E3600
	xorl	%edx, %edx
	divl	%edi
	popq	%rbp
	retq
LBB0_3:
	movl	$255, %eax
	cmpq	$6, %rdi
	jb	LBB0_5
## %bb.4:
	shll	$8, %edi
	movl	$180000, %eax                   ## imm = 0x2BF20
	xorl	%edx, %edx
	divl	%edi
	orl	$128, %eax
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, #28213
	movk	w8, #1, lsl #16
	cmp	x0, x8
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	cmp	x0, #720
	b.lo	LBB0_4
; %bb.3:
	lsl	w8, w0, #8
	mov	w9, #13824
	movk	w9, #366, lsl #16
	udiv	w0, w9, w8
	ret
LBB0_4:
	cmp	x0, #6
	b.hs	LBB0_6
; %bb.5:
	mov	w0, #255
	ret
LBB0_6:
	lsl	w8, w0, #8
	mov	w9, #48928
	movk	w9, #2, lsl #16
	udiv	w8, w9, w8
	orr	w0, w8, #0x80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pwm_freq_to_reg
.subsections_via_symbols
