	.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:
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	addq	$1350000, %rax                  ## imm = 0x149970
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	cqto
	idivq	%rcx
	jmp	LBB0_4
LBB0_5:
	movl	$255, %eax
	popq	%rbp
	retq
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movl	%eax, %edi
	movl	$1, %esi
	movl	$254, %edx
	popq	%rbp
	jmp	_SENSORS_LIMIT                  ## 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
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	sxtw	x8, w1
	mul	x8, x8, x0
	cmp	x8, #0
	cinc	x9, x8, lt
	mov	w10, #39280
	movk	w10, #20, lsl #16
	add	x9, x10, x9, asr #1
	sdiv	x0, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	mov	w2, #254
	b	_SENSORS_LIMIT
LBB0_2:
	mov	w0, #255
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_FAN_TO_REG
.subsections_via_symbols
