	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp421_read
_tmp421_read:                           ## @tmp421_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %ebx
	callq	_tmp421_update_device
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.2:
	movq	_TMP421_CONFIG_RANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	movslq	%r15d, %rsi
	movl	(%rdx,%rsi,4), %edi
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	callq	_temp_from_u16
	jmp	LBB0_5
LBB0_6:
	movq	8(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %eax
	andl	$1, %eax
	jmp	LBB0_5
LBB0_7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	callq	_temp_from_s16
LBB0_5:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMP421_CONFIG_RANGE,4,2        ## @TMP421_CONFIG_RANGE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_tmp421_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp421_read
_tmp421_read:                           ; @tmp421_read
	.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, x4
	mov	x20, x3
	mov	x21, x2
	bl	_tmp421_update_device
	mov	x8, x0
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _TMP421_CONFIG_RANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TMP421_CONFIG_RANGE@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh2:
	ldr	w9, [x9]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, w20, sxtw #2]
	tst	w9, w10
	b.eq	LBB0_6
; %bb.3:
	bl	_temp_from_u16
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	ldr	x8, [x8, #8]
	ldr	w8, [x8, w20, sxtw #2]
	and	x8, x8, #0x1
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	bl	_temp_from_s16
LBB0_7:
	mov	x8, x0
	mov	w0, #0
LBB0_8:
	str	x8, [x19]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TMP421_CONFIG_RANGE,4,2        ; @TMP421_CONFIG_RANGE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_tmp421_read
.subsections_via_symbols
