	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpl3115_read_raw
_mpl3115_read_raw:                      ## @mpl3115_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_iio_priv
	movl	$0, -44(%rbp)
	cmpq	$130, %r14
	je	LBB0_15
## %bb.1:
	cmpq	$131, %r14
	jne	LBB0_20
## %bb.2:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.5:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_mpl3115_request
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	4(%r15), %edi
	movq	_MPL3115_OUT_PRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movl	$3, %edx
	callq	_i2c_smbus_read_i2c_block_data
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_14
## %bb.8:
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	sarl	$12, %eax
	jmp	LBB0_9
LBB0_15:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_19
## %bb.16:
	cmpl	$129, %eax
	jne	LBB0_20
## %bb.17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$250, (%rbx)
	jmp	LBB0_18
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$62500, (%rbx)                  ## imm = 0xF424
LBB0_18:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_mpl3115_request
	testl	%eax, %eax
	js	LBB0_6
## %bb.11:
	movl	4(%r15), %edi
	movq	_MPL3115_OUT_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movl	$2, %edx
	callq	_i2c_smbus_read_i2c_block_data
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_14
## %bb.12:
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	sarl	$20, %eax
	movl	%eax, %edi
	movl	$11, %esi
	callq	_sign_extend32
LBB0_9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_14:
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPL3115_OUT_PRESS,4,2          ## @MPL3115_OUT_PRESS
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MPL3115_OUT_TEMP,4,2           ## @MPL3115_OUT_TEMP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_mpl3115_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpl3115_read_raw
_mpl3115_read_raw:                      ; @mpl3115_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	x24, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_iio_priv
	str	wzr, [sp, #12]
	cmp	x24, #130
	b.eq	LBB0_8
; %bb.1:
	cmp	x24, #131
	b.ne	LBB0_11
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.3:
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_18
; %bb.5:
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x21
	bl	_mpl3115_request
	tbnz	w0, #31, LBB0_19
; %bb.6:
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x8, _MPL3115_OUT_PRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPL3115_OUT_PRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #3
	bl	_i2c_smbus_read_i2c_block_data
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_20
; %bb.7:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	asr	w8, w0, #12
	str	w8, [x20]
	b	LBB0_17
LBB0_8:
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.10:
	str	wzr, [x20]
	mov	w8, #250
	b	LBB0_13
LBB0_11:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_21
LBB0_12:
	str	wzr, [x20]
	mov	w8, #62500
LBB0_13:
	str	w8, [x22]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_21
LBB0_14:
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x21
	bl	_mpl3115_request
	tbnz	w0, #31, LBB0_19
; %bb.15:
	ldr	w0, [x21, #4]
Lloh9:
	adrp	x8, _MPL3115_OUT_TEMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPL3115_OUT_TEMP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #2
	bl	_i2c_smbus_read_i2c_block_data
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_20
; %bb.16:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	asr	w0, w0, #20
	mov	w1, #11
	bl	_sign_extend32
	str	w0, [x20]
LBB0_17:
Lloh12:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	b	LBB0_20
LBB0_18:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_19:
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
LBB0_20:
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_21:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MPL3115_OUT_PRESS,4,2          ; @MPL3115_OUT_PRESS
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MPL3115_OUT_TEMP,4,2           ; @MPL3115_OUT_TEMP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_mpl3115_read_raw
.subsections_via_symbols
