	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_to_u8_adt7461
_temp_to_u8_adt7461:                    ## @temp_to_u8_adt7461
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LM90_FLAG_ADT7461_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	cmpq	$-63999, %rsi                   ## imm = 0xFFFF0601
	jl	LBB0_8
## %bb.2:
	movl	$255, %eax
	cmpq	$190999, %rsi                   ## imm = 0x2EA17
	jg	LBB0_8
## %bb.3:
	addl	$64500, %esi                    ## imm = 0xFBF4
	jmp	LBB0_7
LBB0_4:
	testq	%rsi, %rsi
	jle	LBB0_9
## %bb.5:
	movl	$127, %eax
	cmpq	$126999, %rsi                   ## imm = 0x1F017
	ja	LBB0_8
## %bb.6:
	addl	$500, %esi                      ## imm = 0x1F4
LBB0_7:
	imulq	$274877907, %rsi, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ## @LM90_FLAG_ADT7461_EXT
	.no_dead_strip	_temp_to_u8_adt7461
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_to_u8_adt7461
_temp_to_u8_adt7461:                    ; @temp_to_u8_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_3
; %bb.1:
	mov	x8, #-63999
	cmp	x1, x8
	b.lt	LBB0_5
; %bb.2:
	mov	w8, #255
	mov	w9, #59927
	movk	w9, #2, lsl #16
	cmp	x1, x9
	mov	w9, #64500
	add	w9, w1, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #38
	csel	w0, w8, w9, gt
	ret
LBB0_3:
	cmp	x1, #1
	b.lt	LBB0_5
; %bb.4:
	mov	w8, #127
	mov	w9, #61463
	movk	w9, #1, lsl #16
	cmp	x1, x9
	add	w9, w1, #500
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #38
	csel	w0, w8, w9, hi
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ; @LM90_FLAG_ADT7461_EXT
	.no_dead_strip	_temp_to_u8_adt7461
.subsections_via_symbols
