	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FAN_TO_REG
_FAN_TO_REG:                            ## @FAN_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
	testq	%rdi, %rdi
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %rax
	shrq	%rax
	addq	$1350000, %rax                  ## imm = 0x149970
	movq	%rax, %rcx
	orq	%rdi, %rcx
	shrq	$32, %rcx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_4
LBB0_5:
	movl	$4095, %eax                     ## imm = 0xFFF
	popq	%rbp
	retq
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movl	%eax, %edi
	movl	$1, %esi
	movl	$4094, %edx                     ## imm = 0xFFE
	popq	%rbp
	jmp	_clamp_val                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_FAN_TO_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FAN_TO_REG
_FAN_TO_REG:                            ; @FAN_TO_REG
	.cfi_startproc
; %bb.0:
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w8, #39280
	movk	w8, #20, lsl #16
	add	x8, x8, x0, lsr #1
	udiv	x0, x8, x0
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	mov	w2, #4094
	b	_clamp_val
LBB0_2:
	mov	w0, #4095
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_FAN_TO_REG
.subsections_via_symbols
