	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soctherm_convert_raw
_soctherm_convert_raw:                  ## @soctherm_convert_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_READBACK_VALUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movq	_READBACK_VALUE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	_READBACK_ADD_HALF@GOTPCREL(%rip), %rcx
	leal	500(%rax), %edx
	testl	%edi, (%rcx)
	cmovel	%eax, %edx
	movq	_READBACK_NEGATE@GOTPCREL(%rip), %rcx
	movl	%edx, %eax
	negl	%eax
	testl	%edi, (%rcx)
	cmovel	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READBACK_VALUE_MASK,4,2        ## @READBACK_VALUE_MASK
	.comm	_READBACK_VALUE_SHIFT,4,2       ## @READBACK_VALUE_SHIFT
	.comm	_READBACK_ADD_HALF,4,2          ## @READBACK_ADD_HALF
	.comm	_READBACK_NEGATE,4,2            ## @READBACK_NEGATE
	.no_dead_strip	_soctherm_convert_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soctherm_convert_raw
_soctherm_convert_raw:                  ; @soctherm_convert_raw
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _READBACK_VALUE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READBACK_VALUE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _READBACK_VALUE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _READBACK_VALUE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	mov	w9, #1000
	mul	w8, w8, w9
Lloh6:
	adrp	x9, _READBACK_ADD_HALF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _READBACK_ADD_HALF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w10, w8, #500
	tst	w9, w0
	csel	w8, w8, w10, eq
Lloh9:
	adrp	x9, _READBACK_NEGATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _READBACK_NEGATE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w0
	cneg	w0, w8, ne
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_READBACK_VALUE_MASK,4,2        ; @READBACK_VALUE_MASK
	.comm	_READBACK_VALUE_SHIFT,4,2       ; @READBACK_VALUE_SHIFT
	.comm	_READBACK_ADD_HALF,4,2          ; @READBACK_ADD_HALF
	.comm	_READBACK_NEGATE,4,2            ; @READBACK_NEGATE
	.no_dead_strip	_soctherm_convert_raw
.subsections_via_symbols
