	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp006_read_raw
_tmp006_read_raw:                       ## @tmp006_read_raw
	.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	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_10
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_16
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_17
## %bb.3:
	movl	(%r12), %ecx
	movq	_IIO_VOLTAGE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.4:
	movq	_TMP006_VOBJECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_tmp006_read_measurement
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	movl	%eax, %edi
	movl	$15, %esi
	callq	_sign_extend32
	jmp	LBB0_9
LBB0_10:
	movl	(%r12), %eax
	movq	_IIO_VOLTAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	movl	$156250, %eax                   ## imm = 0x2625A
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_16:
	movq	_TMP006_CONFIG_CR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	movq	_TMP006_CONFIG_CR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_tmp006_freqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	4(%rax), %eax
	jmp	LBB0_15
LBB0_6:
	movq	_IIO_TEMP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_17
## %bb.7:
	movq	_TMP006_TAMBIENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_tmp006_read_measurement
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:
	movl	%eax, %edi
	movl	$15, %esi
	callq	_sign_extend32
	movq	_TMP006_TAMBIENT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
LBB0_9:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_12:
	movq	_IIO_TEMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.13:
	movl	$250000, %eax                   ## imm = 0x3D090
	movl	$31, %ecx
LBB0_14:
	movl	%ecx, (%r14)
LBB0_15:
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VOLTAGE,4,2                ## @IIO_VOLTAGE
	.comm	_TMP006_VOBJECT,4,2             ## @TMP006_VOBJECT
	.comm	_IIO_TEMP,4,2                   ## @IIO_TEMP
	.comm	_TMP006_TAMBIENT,4,2            ## @TMP006_TAMBIENT
	.comm	_TMP006_TAMBIENT_SHIFT,4,2      ## @TMP006_TAMBIENT_SHIFT
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_TMP006_CONFIG_CR_MASK,4,2      ## @TMP006_CONFIG_CR_MASK
	.comm	_TMP006_CONFIG_CR_SHIFT,4,2     ## @TMP006_CONFIG_CR_SHIFT
	.comm	_tmp006_freqs,8,3               ## @tmp006_freqs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tmp006_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp006_read_raw
_tmp006_read_raw:                       ; @tmp006_read_raw
	.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	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	bl	_iio_priv
	cmp	x22, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	x22, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	x22, #130
	b.ne	LBB0_17
; %bb.3:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IIO_VOLTAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_VOLTAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _TMP006_VOBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TMP006_VOBJECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_tmp006_read_measurement
	tbnz	w0, #31, LBB0_18
; %bb.5:
	mov	w1, #15
	bl	_sign_extend32
	b	LBB0_12
LBB0_6:
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _IIO_VOLTAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IIO_VOLTAGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.7:
	mov	w9, #0
	mov	w8, #25178
	movk	w8, #2, lsl #16
	b	LBB0_15
LBB0_8:
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _TMP006_CONFIG_CR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TMP006_CONFIG_CR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _TMP006_CONFIG_CR_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TMP006_CONFIG_CR_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh15:
	adrp	x9, _tmp006_freqs@GOTPAGE
Lloh16:
	ldr	x9, [x9, _tmp006_freqs@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	b	LBB0_16
LBB0_9:
Lloh18:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.10:
Lloh21:
	adrp	x8, _TMP006_TAMBIENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TMP006_TAMBIENT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_tmp006_read_measurement
	tbnz	w0, #31, LBB0_18
; %bb.11:
	mov	w1, #15
	bl	_sign_extend32
Lloh24:
	adrp	x8, _TMP006_TAMBIENT_SHIFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TMP006_TAMBIENT_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	asr	w0, w0, w8
LBB0_12:
	str	w0, [x19]
Lloh27:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_13:
Lloh30:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.14:
	mov	w8, #53392
	movk	w8, #3, lsl #16
	mov	w9, #31
LBB0_15:
	str	w9, [x19]
LBB0_16:
	str	w8, [x20]
Lloh33:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_17:
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VOLTAGE,4,2                ; @IIO_VOLTAGE
	.comm	_TMP006_VOBJECT,4,2             ; @TMP006_VOBJECT
	.comm	_IIO_TEMP,4,2                   ; @IIO_TEMP
	.comm	_TMP006_TAMBIENT,4,2            ; @TMP006_TAMBIENT
	.comm	_TMP006_TAMBIENT_SHIFT,4,2      ; @TMP006_TAMBIENT_SHIFT
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_TMP006_CONFIG_CR_MASK,4,2      ; @TMP006_CONFIG_CR_MASK
	.comm	_TMP006_CONFIG_CR_SHIFT,4,2     ; @TMP006_CONFIG_CR_SHIFT
	.comm	_tmp006_freqs,8,3               ; @tmp006_freqs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tmp006_read_raw
.subsections_via_symbols
