	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_read_raw
_stmpe_read_raw:                        ## @stmpe_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, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_iio_priv
	leaq	-131(%rbx), %rcx
	cmpq	$2, %rcx
	jae	LBB0_4
## %bb.1:
	movl	(%r12), %ecx
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.3:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_stmpe_read_voltage
	testq	%rax, %rax
	jns	LBB0_8
	jmp	LBB0_10
LBB0_4:
	cmpq	$130, %rbx
	jne	LBB0_6
## %bb.5:
	movl	$3300, (%r15)                   ## imm = 0xCE4
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	setne	%cl
	leal	(%rcx,%rcx), %eax
	addl	$10, %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_stmpe_read_temp
	testq	%rax, %rax
	js	LBB0_10
LBB0_8:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.no_dead_strip	_stmpe_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_read_raw
_stmpe_read_raw:                        ; @stmpe_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	x21, x3
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
	sub	x8, x22, #131
	cmp	x8, #2
	b.hs	LBB0_4
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	mov	x1, x20
	mov	x2, x19
	bl	_stmpe_read_voltage
	tbz	x0, #63, LBB0_8
	b	LBB0_10
LBB0_4:
	cmp	x22, #130
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #3300
	str	w8, [x19]
	ldr	x8, [x0]
	ldr	w8, [x8]
	mov	w9, #12
	mov	w10, #10
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x21]
Lloh0:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	mov	x1, x20
	mov	x2, x19
	bl	_stmpe_read_temp
	tbnz	x0, #63, LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.no_dead_strip	_stmpe_read_raw
.subsections_via_symbols
