	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp007_write_thresh
_tmp007_write_thresh:                   ## @tmp007_write_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
	movl	%r9d, %r14d
	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_9
## %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_3:
	movq	_TMP007_TDIE_LOW_LIMIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_TMP007_TOBJ_LOW_LIMIT@GOTPCREL(%rip), %rcx
LBB0_8:
	leal	-256(%r14), %edx
	cmpl	$-513, %edx                     ## imm = 0xFDFF
	ja	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%rcx), %esi
	movl	(%rax), %edi
	shll	$7, %r14d
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_word_swapped   ## TAILCALL
	.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
	.no_dead_strip	_tmp007_write_thresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp007_write_thresh
_tmp007_write_thresh:                   ; @tmp007_write_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_5
; %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
	sub	w9, w19, #256
	cmn	w9, #513
	b.hi	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	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_6:
	ldr	w1, [x8]
	ldr	w0, [x0]
	lsl	w2, w19, #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
	b	_i2c_smbus_write_word_swapped
	.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
	.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
	.no_dead_strip	_tmp007_write_thresh
.subsections_via_symbols
