	.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:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	movl	$960000, %edx                   ## imm = 0xEA600
	callq	_SENSORS_LIMIT
	movl	%eax, %ecx
	imull	%ebx, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	$480000, %eax                   ## imm = 0x75300
	cltd
	idivl	%ecx
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_SENSORS_LIMIT                  ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	retq
	.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:
	cbz	x0, LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	mov	w2, #42496
	movk	w2, #14, lsl #16
	bl	_SENSORS_LIMIT
	mul	w8, w0, w19
	cmp	w8, #0
	cinc	w9, w8, lt
	mov	w10, #21248
	movk	w10, #7, lsl #16
	add	w9, w10, w9, asr #1
	sdiv	w0, w9, w8
	mov	w1, #1
	mov	w2, #255
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SENSORS_LIMIT
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_FAN_TO_REG
.subsections_via_symbols
