	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8452_read_event_value
_mma8452_read_event_value:              ## @mma8452_read_event_value
	.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	%r9, %r14
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	callq	_iio_priv
	movq	%rax, %r12
	leaq	-48(%rbp), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mma8452_get_event_regs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	16(%rbp), %r15
	cmpl	$130, %r13d
	je	LBB0_7
## %bb.3:
	cmpl	$129, %r13d
	je	LBB0_10
## %bb.4:
	cmpl	$128, %r13d
	jne	LBB0_13
## %bb.5:
	movl	(%r12), %edi
	movq	-48(%rbp), %rax
	movl	8(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.6:
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_1
LBB0_7:
	movl	(%r12), %edi
	movq	_MMA8452_TRANSIENT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.8:
	movq	_MMA8452_TRANSIENT_CFG_HPF_BYP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.9:
	movl	$0, (%r14)
	movl	$0, (%r15)
	jmp	LBB0_15
LBB0_10:
	movl	(%r12), %edi
	movq	-48(%rbp), %rax
	movl	4(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.11:
	movq	%r12, %rdi
	callq	_mma8452_get_power_mode
	testl	%eax, %eax
	js	LBB0_17
## %bb.12:
	movq	_mma8452_time_step_us@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r13
	movq	%r12, %rdi
	callq	_mma8452_get_odr_index
	movl	(%r13,%rax,4), %ecx
	imull	%ebx, %ecx
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%eax, (%r14)
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%edx, (%r15)
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_1
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mma8452_read_hp_filter
	testl	%eax, %eax
	js	LBB0_17
LBB0_15:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_1
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_mma8452_time_step_us,8,3       ## @mma8452_time_step_us
	.comm	_USEC_PER_SEC,4,2               ## @USEC_PER_SEC
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_MMA8452_TRANSIENT_CFG,4,2      ## @MMA8452_TRANSIENT_CFG
	.comm	_MMA8452_TRANSIENT_CFG_HPF_BYP,4,2 ## @MMA8452_TRANSIENT_CFG_HPF_BYP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mma8452_read_event_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma8452_read_event_value
_mma8452_read_event_value:              ; @mma8452_read_event_value
	.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	x20, x6
	mov	x19, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x1
	bl	_iio_priv
	mov	x21, x0
	add	x3, sp, #8
	mov	x1, x24
	mov	x2, x23
	bl	_mma8452_get_event_regs
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
	cmp	w22, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w22, #129
	b.eq	LBB0_10
; %bb.4:
	cmp	w22, #128
	b.ne	LBB0_13
; %bb.5:
	ldr	w0, [x21]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #8]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_1
; %bb.6:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x19]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_1
LBB0_7:
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _MMA8452_TRANSIENT_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMA8452_TRANSIENT_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_1
; %bb.8:
Lloh6:
	adrp	x8, _MMA8452_TRANSIENT_CFG_HPF_BYP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMA8452_TRANSIENT_CFG_HPF_BYP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.9:
	str	wzr, [x19]
	str	wzr, [x20]
	b	LBB0_16
LBB0_10:
	ldr	w0, [x21]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #4]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.11:
	mov	x0, x21
	bl	_mma8452_get_power_mode
	tbnz	w0, #31, LBB0_1
; %bb.12:
Lloh9:
	adrp	x8, _mma8452_time_step_us@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mma8452_time_step_us@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x23, [x8, w0, uxtw #3]
	mov	x0, x21
	bl	_mma8452_get_odr_index
	ldr	w8, [x23, x0, lsl #2]
	mul	w8, w8, w22
Lloh12:
	adrp	x9, _USEC_PER_SEC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _USEC_PER_SEC@GOTPAGEOFF]
	ldr	w10, [x9]
	sdiv	w10, w8, w10
	str	w10, [x19]
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x20]
	b	LBB0_16
LBB0_13:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_14:
	mov	x0, x22
	b	LBB0_1
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_mma8452_read_hp_filter
	tbnz	w0, #31, LBB0_1
LBB0_16:
Lloh17:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_mma8452_time_step_us,8,3       ; @mma8452_time_step_us
	.comm	_USEC_PER_SEC,4,2               ; @USEC_PER_SEC
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_MMA8452_TRANSIENT_CFG,4,2      ; @MMA8452_TRANSIENT_CFG
	.comm	_MMA8452_TRANSIENT_CFG_HPF_BYP,4,2 ; @MMA8452_TRANSIENT_CFG_HPF_BYP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mma8452_read_event_value
.subsections_via_symbols
