	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8452_read_raw
_mma8452_read_raw:                      ## @mma8452_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	$40, %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, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	addq	$-128, %r14
	cmpq	$5, %r14
	ja	LBB0_3
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_MMA8452_DATA_CFG_FS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	cltq
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_4:
	movq	%r12, %rdi
	callq	_mma8452_get_odr_index
	movq	_mma8452_samp_freq@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
LBB0_5:
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_7:
	movq	%r13, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	movq	%r12, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	-60(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mma8452_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	js	LBB0_20
## %bb.9:
	movq	(%r15), %rax
	movl	-60(%rbp,%rax,4), %edi
	callq	_be16_to_cpu
	movb	8(%r15), %cl
	sarl	%cl, %eax
	movl	12(%r15), %esi
	decl	%esi
	movl	%eax, %edi
	jmp	LBB0_17
LBB0_10:
	movq	%r12, %rdi
	callq	_mma8452_get_power_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_20
## %bb.11:
	movq	%r12, %rdi
	callq	_mma8452_get_odr_index
	movq	_mma8452_os_ratio@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	movq	(%rcx,%rdx,8), %rcx
	cltq
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_18
LBB0_12:
	movq	_MMA8452_DATA_CFG_HPF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_22
## %bb.13:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mma8452_read_hp_filter
	testl	%eax, %eax
	jns	LBB0_6
## %bb.14:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_15:
	movl	4(%r12), %edi
	movq	_MMA8452_OFF_X@GOTPCREL(%rip), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_20
## %bb.16:
	movl	%ebx, %edi
	movl	$7, %esi
LBB0_17:
	callq	_sign_extend32
LBB0_18:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$0, (%rbx)
	jmp	LBB0_6
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MMA8452_DATA_CFG_FS_MASK,4,2   ## @MMA8452_DATA_CFG_FS_MASK
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_mma8452_samp_freq,8,3          ## @mma8452_samp_freq
	.comm	_MMA8452_OFF_X,8,3              ## @MMA8452_OFF_X
	.comm	_MMA8452_DATA_CFG_HPF_MASK,4,2  ## @MMA8452_DATA_CFG_HPF_MASK
	.comm	_mma8452_os_ratio,8,3           ## @mma8452_os_ratio
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mma8452_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma8452_read_raw
_mma8452_read_raw:                      ; @mma8452_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_iio_priv
	sub	x8, x24, #128
	cmp	x8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _MMA8452_DATA_CFG_FS_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMA8452_DATA_CFG_FS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	x9, [x22, #8]
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_20
LBB0_4:
	mov	x0, x22
	bl	_mma8452_get_odr_index
Lloh11:
	adrp	x8, _mma8452_samp_freq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mma8452_samp_freq@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
LBB0_5:
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	str	w8, [x20]
LBB0_6:
Lloh14:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_19
LBB0_7:
	mov	x0, x23
	bl	_iio_device_claim_direct_mode
	mov	x20, x0
	cbnz	w0, LBB0_20
; %bb.8:
	add	x24, x22, #16
	mov	x0, x24
	bl	_mutex_lock
	add	x25, sp, #12
	add	x1, sp, #12
	mov	x0, x22
	bl	_mma8452_read
	mov	x20, x0
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x23
	bl	_iio_device_release_direct_mode
	tbnz	w20, #31, LBB0_20
; %bb.9:
	ldr	x8, [x21]
	ldr	w0, [x25, x8, lsl #2]
	bl	_be16_to_cpu
	ldp	w8, w9, [x21, #8]
	asr	w0, w0, w8
	sub	w1, w9, #1
	b	LBB0_17
LBB0_10:
	mov	x0, x22
	bl	_mma8452_get_power_mode
	mov	x20, x0
	tbnz	w0, #31, LBB0_20
; %bb.11:
	mov	x0, x22
	bl	_mma8452_get_odr_index
Lloh16:
	adrp	x8, _mma8452_os_ratio@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mma8452_os_ratio@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, uxtw #3]
	ldr	w8, [x8, w0, sxtw #2]
	str	w8, [x19]
	b	LBB0_18
LBB0_12:
	ldr	w8, [x22]
Lloh19:
	adrp	x9, _MMA8452_DATA_CFG_HPF_MASK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MMA8452_DATA_CFG_HPF_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.13:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_mma8452_read_hp_filter
	tbz	w0, #31, LBB0_6
; %bb.14:
	mov	x20, x0
	b	LBB0_20
LBB0_15:
	ldr	w0, [x22, #4]
Lloh22:
	adrp	x8, _MMA8452_OFF_X@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMA8452_OFF_X@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_20
; %bb.16:
	mov	x0, x20
	mov	w1, #7
LBB0_17:
	bl	_sign_extend32
	str	w0, [x19]
LBB0_18:
Lloh25:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_19:
	ldr	w20, [x8]
LBB0_20:
	ldr	x8, [sp, #24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.21:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	str	wzr, [x19]
	str	wzr, [x20]
	b	LBB0_6
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MMA8452_DATA_CFG_FS_MASK,4,2   ; @MMA8452_DATA_CFG_FS_MASK
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_mma8452_samp_freq,8,3          ; @mma8452_samp_freq
	.comm	_MMA8452_OFF_X,8,3              ; @MMA8452_OFF_X
	.comm	_MMA8452_DATA_CFG_HPF_MASK,4,2  ; @MMA8452_DATA_CFG_HPF_MASK
	.comm	_mma8452_os_ratio,8,3           ; @mma8452_os_ratio
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mma8452_read_raw
.subsections_via_symbols
