	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abp060mg_read_raw
_abp060mg_read_raw:                     ## @abp060mg_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, %rbx
	movq	%rcx, %r13
	movq	%rdx, %r14
	callq	_iio_priv
	movq	%rax, %r12
	movq	%rax, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$130, %rbx
	je	LBB0_4
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_abp060mg_get_measurement
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_5:
	movl	4(%r12), %eax
	movl	%eax, (%r14)
	movq	_ABP060MG_NUM_COUNTS@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	movl	%eax, (%r13)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movl	(%r12), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_ABP060MG_NUM_COUNTS,4,2        ## @ABP060MG_NUM_COUNTS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_abp060mg_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abp060mg_read_raw
_abp060mg_read_raw:                     ; @abp060mg_read_raw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x4
	mov	x21, x3
	mov	x20, x2
	bl	_iio_priv
	mov	x23, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	cmp	x22, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x22, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	x22, #129
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x23
	mov	x1, x20
	bl	_abp060mg_get_measurement
	mov	x20, x0
	b	LBB0_7
LBB0_4:
	ldr	w8, [x23, #4]
	str	w8, [x20]
Lloh0:
	adrp	x8, _ABP060MG_NUM_COUNTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABP060MG_NUM_COUNTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x21]
Lloh3:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x23]
	str	w8, [x20]
Lloh6:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_ABP060MG_NUM_COUNTS,4,2        ; @ABP060MG_NUM_COUNTS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_abp060mg_read_raw
.subsections_via_symbols
