	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm95241_read_temp
_lm95241_read_temp:                     ## @lm95241_read_temp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	callq	_lm95241_update_device
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_4
## %bb.1:
	movq	%rax, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$1, %r12d
	jne	LBB0_14
## %bb.3:
	movq	_R1MS_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_5:
	cmpl	$1, %r12d
	jne	LBB0_16
## %bb.6:
	movq	_R1DF_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	cmpl	$1, %r12d
	jne	LBB0_18
## %bb.8:
	movq	_R1DF_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_9:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movl	(%r15), %ebx
	leal	-1(%r12), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_23
LBB0_11:
	movq	16(%r15), %rax
	leal	(%r12,%r12), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	leal	(%r12,%r12), %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_temp_from_reg_signed
	jmp	LBB0_24
LBB0_12:
	cmpl	$1, %r12d
	jne	LBB0_20
## %bb.13:
	movq	_R1DM@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_14:
	movq	_R2MS_MASK@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ecx
	andl	4(%r15), %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	movl	$0, %ecx
	adcq	$1, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_26
LBB0_16:
	movq	_R2DF_MASK@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ecx
	xorl	%eax, %eax
	andl	(%r15), %ecx
	movq	$-128000, %rcx                  ## imm = 0xFFFE0C00
	cmoveq	%rax, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_26
LBB0_18:
	movq	_R2DF_MASK@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	andl	(%r15), %eax
	movl	$255875, %eax                   ## imm = 0x3E783
	movl	$127875, %ecx                   ## imm = 0x1F383
	cmoveq	%rax, %rcx
	jmp	LBB0_22
LBB0_20:
	movq	_R2DM@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	8(%r15), %eax
	setne	%cl
LBB0_22:
	movq	%rcx, (%r14)
	jmp	LBB0_25
LBB0_23:
	movq	16(%r15), %rax
	leal	(%r12,%r12), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	leal	(%r12,%r12), %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_temp_from_reg_unsigned
LBB0_24:
	movq	%rax, (%r14)
LBB0_25:
	xorl	%eax, %eax
LBB0_26:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_R1DF_MASK,4,2                  ## @R1DF_MASK
	.comm	_R2DF_MASK,4,2                  ## @R2DF_MASK
	.comm	_R1MS_MASK,4,2                  ## @R1MS_MASK
	.comm	_R2MS_MASK,4,2                  ## @R2MS_MASK
	.comm	_R1DM,4,2                       ## @R1DM
	.comm	_R2DM,4,2                       ## @R2DM
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_lm95241_read_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm95241_read_temp
_lm95241_read_temp:                     ; @lm95241_read_temp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	bl	_lm95241_update_device
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #0
	ldr	w8, [x21, #4]
Lloh2:
	adrp	x9, _R1MS_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _R1MS_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x10, _R2MS_MASK@GOTPAGE
Lloh5:
	ldr	x10, [x10, _R2MS_MASK@GOTPAGEOFF]
	cmp	w20, #1
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #1
	cinc	x8, x8, eq
	b	LBB0_12
LBB0_3:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_4:
	mov	w0, #0
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _R1DF_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _R1DF_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x10, _R2DF_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _R2DF_MASK@GOTPAGEOFF]
	cmp	w20, #1
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	tst	w9, w8
	mov	x8, #-62464
	movk	x8, #65534, lsl #16
	csel	x8, xzr, x8, eq
	b	LBB0_12
LBB0_5:
	mov	w0, #0
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _R1DF_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _R1DF_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x10, _R2DF_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _R2DF_MASK@GOTPAGEOFF]
	cmp	w20, #1
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #62339
	movk	w8, #1, lsl #16
	mov	w9, #59267
	movk	w9, #3, lsl #16
	csel	x8, x9, x8, eq
	b	LBB0_12
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	ldr	w22, [x21]
	sub	w0, w20, #1
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_10
LBB0_8:
	ldr	x8, [x21, #16]
	lsl	w9, w20, #1
	ldr	w0, [x8, w9, sxtw #2]
	add	x8, x8, w20, sxtw #3
	ldr	w1, [x8, #4]
	bl	_temp_from_reg_signed
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	ldr	w8, [x21, #8]
Lloh17:
	adrp	x9, _R1DM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _R1DM@GOTPAGEOFF]
Lloh19:
	adrp	x10, _R2DM@GOTPAGE
Lloh20:
	ldr	x10, [x10, _R2DM@GOTPAGEOFF]
	cmp	w20, #1
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_12
LBB0_10:
	ldr	x8, [x21, #16]
	sbfiz	x9, x20, #3, #32
	ldr	w0, [x8, x9]
	mov	w9, #1
	bfi	w9, w20, #1, #31
	ldr	w1, [x8, w9, sxtw #2]
	bl	_temp_from_reg_unsigned
LBB0_11:
	mov	x8, x0
	mov	w0, #0
LBB0_12:
	str	x8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_R1DF_MASK,4,2                  ; @R1DF_MASK
	.comm	_R2DF_MASK,4,2                  ; @R2DF_MASK
	.comm	_R1MS_MASK,4,2                  ; @R1MS_MASK
	.comm	_R2MS_MASK,4,2                  ; @R2MS_MASK
	.comm	_R1DM,4,2                       ; @R1DM
	.comm	_R2DM,4,2                       ; @R2DM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_lm95241_read_temp
.subsections_via_symbols
