	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp2reg
_temp2reg:                              ## @temp2reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CONFIG5_TWOSCOMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rdi
	movl	$-128000, %esi                  ## imm = 0xFFFE0C00
	movl	$127000, %edx                   ## imm = 0x1F018
	callq	_SENSORS_LIMIT
	cmpq	$-501, %rax                     ## imm = 0xFE0B
	jg	LBB0_4
## %bb.3:
	addq	$256500, %rax                   ## imm = 0x3E9F4
	jmp	LBB0_5
LBB0_1:
	movq	%rsi, %rdi
	movl	$-64000, %esi                   ## imm = 0xFFFF0600
	movl	$191000, %edx                   ## imm = 0x2EA18
	callq	_SENSORS_LIMIT
	addq	$64500, %rax                    ## imm = 0xFBF4
	jmp	LBB0_5
LBB0_4:
	addq	$500, %rax                      ## imm = 0x1F4
LBB0_5:
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$7, %rdx
	addl	%edx, %eax
	shll	$2, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG5_TWOSCOMP,4,2           ## @CONFIG5_TWOSCOMP
	.no_dead_strip	_temp2reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp2reg
_temp2reg:                              ; @temp2reg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CONFIG5_TWOSCOMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONFIG5_TWOSCOMP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x1
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #3072
	movk	w1, #65534, lsl #16
	mov	w2, #61464
	movk	w2, #1, lsl #16
	bl	_SENSORS_LIMIT
	cmn	x0, #501
	add	x8, x0, #500
	add	x9, x0, #62, lsl #12            ; =253952
	add	x9, x9, #2548
	csel	x8, x8, x9, gt
	b	LBB0_3
LBB0_2:
	mov	w1, #-64000
	mov	w2, #59928
	movk	w2, #2, lsl #16
	bl	_SENSORS_LIMIT
	mov	w8, #64500
	add	x8, x0, x8
LBB0_3:
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	smulh	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #7
	add	w8, w8, w9
	lsl	w0, w8, #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG5_TWOSCOMP,4,2           ; @CONFIG5_TWOSCOMP
	.no_dead_strip	_temp2reg
.subsections_via_symbols
