	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_from_u16_adt7461
_temp_from_u16_adt7461:                 ## @temp_from_u16_adt7461
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_LM90_FLAG_ADT7461_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	leal	-16384(%rsi), %eax
	addl	$-16321, %esi                   ## imm = 0xC03F
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$6, %esi
	imull	$250, %esi, %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %edi
	popq	%rbp
	jmp	_temp_from_s16                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ## @LM90_FLAG_ADT7461_EXT
	.no_dead_strip	_temp_from_u16_adt7461
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_from_u16_adt7461
_temp_from_u16_adt7461:                 ; @temp_from_u16_adt7461
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LM90_FLAG_ADT7461_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LM90_FLAG_ADT7461_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	sub	w8, w1, #4, lsl #12             ; =16384
	mov	w9, #-16321
	add	w9, w1, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #6
	mov	w9, #250
	mul	w0, w8, w9
	ret
LBB0_2:
	mov	x0, x1
	b	_temp_from_s16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ; @LM90_FLAG_ADT7461_EXT
	.no_dead_strip	_temp_from_u16_adt7461
.subsections_via_symbols
