	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp007_read_thresh
_tmp007_read_thresh:                    ## @tmp007_read_thresh
	.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	%r9, %r14
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	callq	_iio_priv
	movl	(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ecx
	jne	LBB0_11
## %bb.2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_TMP007_TDIE_HIGH_LIMIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_6
## %bb.7:
	movq	_TMP007_TOBJ_HIGH_LIMIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movq	_TMP007_TDIE_LOW_LIMIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_TMP007_TOBJ_LOW_LIMIT@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %esi
	movl	(%rax), %edi
	callq	_i2c_smbus_read_word_swapped
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movl	%eax, %edi
	movl	$15, %esi
	callq	_sign_extend32
	sarl	$7, %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_TMP007_TDIE_HIGH_LIMIT,4,2     ## @TMP007_TDIE_HIGH_LIMIT
	.comm	_TMP007_TDIE_LOW_LIMIT,4,2      ## @TMP007_TDIE_LOW_LIMIT
	.comm	_TMP007_TOBJ_HIGH_LIMIT,4,2     ## @TMP007_TOBJ_HIGH_LIMIT
	.comm	_TMP007_TOBJ_LOW_LIMIT,4,2      ## @TMP007_TOBJ_LOW_LIMIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_tmp007_read_thresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp007_read_thresh
_tmp007_read_thresh:                    ; @tmp007_read_thresh
	.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, x5
	mov	x20, x3
	mov	x21, x1
	bl	_iio_priv
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TMP007_TDIE_LOW_LIMIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TMP007_TDIE_LOW_LIMIT@GOTPAGEOFF]
Lloh5:
	adrp	x10, _TMP007_TDIE_HIGH_LIMIT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TMP007_TDIE_HIGH_LIMIT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _TMP007_TOBJ_LOW_LIMIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TMP007_TOBJ_LOW_LIMIT@GOTPAGEOFF]
Lloh12:
	adrp	x10, _TMP007_TOBJ_HIGH_LIMIT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TMP007_TOBJ_HIGH_LIMIT@GOTPAGEOFF]
LBB0_4:
	cmp	w8, w20
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	ldr	w0, [x0]
	bl	_i2c_smbus_read_word_swapped
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	w1, #15
	bl	_sign_extend32
	asr	w8, w0, #7
	str	w8, [x19]
Lloh14:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_TMP007_TDIE_HIGH_LIMIT,4,2     ; @TMP007_TDIE_HIGH_LIMIT
	.comm	_TMP007_TDIE_LOW_LIMIT,4,2      ; @TMP007_TDIE_LOW_LIMIT
	.comm	_TMP007_TOBJ_HIGH_LIMIT,4,2     ; @TMP007_TOBJ_HIGH_LIMIT
	.comm	_TMP007_TOBJ_LOW_LIMIT,4,2      ; @TMP007_TOBJ_LOW_LIMIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_tmp007_read_thresh
.subsections_via_symbols
