	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmp91000_read_raw
_lmp91000_read_raw:                     ## @lmp91000_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_iio_priv
	movq	%rax, %r15
	leaq	-129(%r12), %rax
	cmpq	$2, %rax
	jb	LBB0_4
## %bb.1:
	cmpq	$128, %r12
	je	LBB0_14
## %bb.2:
	cmpq	$131, %r12
	jne	LBB0_15
## %bb.3:
	movl	(%r15), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_read_channel_offset        ## TAILCALL
LBB0_4:
	movl	4(%r15), %edi
	callq	_iio_channel_start_all_cb
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_lmp91000_read
	movl	%eax, %ebx
	movl	4(%r15), %edi
	callq	_iio_channel_stop_all_cb
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.6:
	cmpq	$130, %r12
	jne	LBB0_12
## %bb.7:
	movl	(%r15), %edi
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	callq	_iio_convert_raw_to_processed
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_14:
	movl	(%r15), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_read_channel_scale         ## TAILCALL
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_lmp91000_temp_lut@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_11
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,4), %eax
	cmpl	-44(%rbp), %eax
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_11:
	movq	_LMP91000_TEMP_BASE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	movl	%eax, (%r14)
LBB0_12:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_lmp91000_temp_lut,8,3          ## @lmp91000_temp_lut
	.comm	_LMP91000_TEMP_BASE,4,2         ## @LMP91000_TEMP_BASE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lmp91000_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmp91000_read_raw
_lmp91000_read_raw:                     ; @lmp91000_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	bl	_iio_priv
	mov	x20, x0
	sub	x8, x21, #129
	cmp	x8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	x21, #128
	b.eq	LBB0_9
; %bb.2:
	cmp	x21, #131
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_iio_read_channel_offset
LBB0_4:
	ldr	w0, [x20, #4]
	bl	_iio_channel_start_all_cb
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x19
	bl	_lmp91000_read
	mov	x22, x0
	ldr	w0, [x20, #4]
	bl	_iio_channel_stop_all_cb
	cbnz	w22, LBB0_11
; %bb.6:
	cmp	x21, #130
	b.ne	LBB0_18
; %bb.7:
	ldr	w0, [x20]
	ldr	w1, [x19]
	add	x2, sp, #12
	mov	w3, #1
	bl	_iio_convert_raw_to_processed
	cbz	w0, LBB0_12
; %bb.8:
	mov	x22, x0
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_iio_read_channel_scale
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh3:
	adrp	x21, _lmp91000_temp_lut@GOTPAGE
Lloh4:
	ldr	x21, [x21, _lmp91000_temp_lut@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.13:
	mov	x20, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x20, lsl #2]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.lt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_14
	b	LBB0_17
LBB0_16:
	mov	w20, #0
LBB0_17:
Lloh5:
	adrp	x8, _LMP91000_TEMP_BASE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LMP91000_TEMP_BASE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, w20
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19]
LBB0_18:
Lloh8:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_lmp91000_temp_lut,8,3          ; @lmp91000_temp_lut
	.comm	_LMP91000_TEMP_BASE,4,2         ; @LMP91000_TEMP_BASE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lmp91000_read_raw
.subsections_via_symbols
