	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp007_read_raw
_tmp007_read_raw:                       ## @tmp007_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	$130, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$131, %rbx
	je	LBB0_7
## %bb.2:
	cmpq	$132, %rbx
	jne	LBB0_6
## %bb.3:
	movl	(%r12), %ecx
	cmpl	$128, %ecx
	je	LBB0_12
## %bb.4:
	cmpl	$129, %ecx
	jne	LBB0_6
## %bb.5:
	movl	4(%rax), %edi
	movq	_TMP007_TDIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_swapped
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_11
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_7:
	movq	_TMP007_CONFIG_CR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	movq	_TMP007_CONFIG_CR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_tmp007_avgs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	4(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_8:
	movl	$31, (%r14)
	movl	$250000, (%r15)                 ## imm = 0x3D090
LBB0_9:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_TMP007_TOBJECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_tmp007_read_temperature
	testl	%eax, %eax
	js	LBB0_11
LBB0_13:
	movl	%eax, %edi
	movl	$15, %esi
	callq	_sign_extend32
	movq	_TMP007_TEMP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TMP007_TDIE,4,2                ## @TMP007_TDIE
	.comm	_TMP007_TOBJECT,4,2             ## @TMP007_TOBJECT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TMP007_TEMP_SHIFT,4,2          ## @TMP007_TEMP_SHIFT
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_TMP007_CONFIG_CR_MASK,4,2      ## @TMP007_CONFIG_CR_MASK
	.comm	_TMP007_CONFIG_CR_SHIFT,4,2     ## @TMP007_CONFIG_CR_SHIFT
	.comm	_tmp007_avgs,8,3                ## @tmp007_avgs
	.no_dead_strip	_tmp007_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp007_read_raw
_tmp007_read_raw:                       ; @tmp007_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, #130
	b.eq	LBB0_8
; %bb.1:
	cmp	x22, #131
	b.eq	LBB0_7
; %bb.2:
	cmp	x22, #132
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _TMP007_TDIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMP007_TDIE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_swapped
	tbz	w0, #31, LBB0_13
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _TMP007_CONFIG_CR_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TMP007_CONFIG_CR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _TMP007_CONFIG_CR_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TMP007_CONFIG_CR_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh12:
	adrp	x9, _tmp007_avgs@GOTPAGE
Lloh13:
	ldr	x9, [x9, _tmp007_avgs@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	b	LBB0_9
LBB0_8:
	mov	w8, #31
	str	w8, [x19]
	mov	w8, #53392
	movk	w8, #3, lsl #16
LBB0_9:
	str	w8, [x20]
Lloh15:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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
LBB0_12:
Lloh17:
	adrp	x8, _TMP007_TOBJECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TMP007_TOBJECT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_tmp007_read_temperature
	tbnz	w0, #31, LBB0_11
LBB0_13:
	mov	w1, #15
	bl	_sign_extend32
Lloh20:
	adrp	x8, _TMP007_TEMP_SHIFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TMP007_TEMP_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	asr	w8, w0, w8
	str	w8, [x19]
Lloh23:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TMP007_TDIE,4,2                ; @TMP007_TDIE
	.comm	_TMP007_TOBJECT,4,2             ; @TMP007_TOBJECT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TMP007_TEMP_SHIFT,4,2          ; @TMP007_TEMP_SHIFT
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_TMP007_CONFIG_CR_MASK,4,2      ; @TMP007_CONFIG_CR_MASK
	.comm	_TMP007_CONFIG_CR_SHIFT,4,2     ; @TMP007_CONFIG_CR_SHIFT
	.comm	_tmp007_avgs,8,3                ; @tmp007_avgs
	.no_dead_strip	_tmp007_read_raw
.subsections_via_symbols
