	.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
	leaq	-1310721(%rdi), %rax
	cmpq	$-1310720, %rax                 ## imm = 0xFFEC0000
	jae	LBB0_1
## %bb.5:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	movq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movl	$1310720, %eax                  ## imm = 0x140000
	xorl	%edx, %edx
	idivq	%rcx
	jmp	LBB0_4
LBB0_2:
	movl	$1310720, %eax                  ## imm = 0x140000
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	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:
                                        ; kill: def $w1 killed $w1 def $x1
	sub	x8, x0, #320, lsl #12           ; =1310720
	sub	x8, x8, #1
	cmn	x8, #320, lsl #12               ; =1310720
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	sxtw	x8, w1
	mul	x8, x8, x0
	mov	w9, #1310720
	sdiv	x0, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	mov	w2, #255
	b	_clamp_val
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_FAN_TO_REG
.subsections_via_symbols
