	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_get_temp8
_lm90_get_temp8:                        ## @lm90_get_temp8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movslq	%esi, %rdx
	movl	(%rcx,%rdx,4), %esi
	movq	_adt7461@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_tmp451@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_max6646@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	%esi, %edi
	callq	_temp_from_u8
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_temp_from_u8_adt7461
	jmp	LBB0_6
LBB0_5:
	movl	%esi, %edi
	callq	_temp_from_s8
LBB0_6:
                                        ## kill: def $eax killed $eax def $rax
	movq	(%rbx), %rdx
	movq	_lm99@GOTPCREL(%rip), %rsi
	leal	16000(%rax), %ecx
	cmpq	(%rsi), %rdx
	cmovnel	%eax, %ecx
	cmpl	$3, %r14d
	cmovnel	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adt7461,8,3                    ## @adt7461
	.comm	_tmp451,8,3                     ## @tmp451
	.comm	_max6646,8,3                    ## @max6646
	.comm	_lm99,8,3                       ## @lm99
	.no_dead_strip	_lm90_get_temp8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_get_temp8
_lm90_get_temp8:                        ; @lm90_get_temp8
	.cfi_startproc
; %bb.0:
	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
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldr	w1, [x9, w1, sxtw #2]
Lloh0:
	adrp	x9, _adt7461@GOTPAGE
Lloh1:
	ldr	x9, [x9, _adt7461@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _tmp451@GOTPAGE
Lloh4:
	ldr	x10, [x10, _tmp451@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_temp_from_u8_adt7461
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x9, _max6646@GOTPAGE
Lloh7:
	ldr	x9, [x9, _max6646@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	x0, x1
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_temp_from_u8
	b	LBB0_5
LBB0_4:
	bl	_temp_from_s8
LBB0_5:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _lm99@GOTPAGE
Lloh10:
	ldr	x9, [x9, _lm99@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w19, #3, #0, eq
	mov	w8, #16000
	add	w8, w0, w8
	csel	w0, w8, w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_adt7461,8,3                    ; @adt7461
	.comm	_tmp451,8,3                     ; @tmp451
	.comm	_max6646,8,3                    ; @max6646
	.comm	_lm99,8,3                       ; @lm99
	.no_dead_strip	_lm90_get_temp8
.subsections_via_symbols
