	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8452_read_event_config
_mma8452_read_event_config:             ## @mma8452_read_event_config
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r14
	callq	_iio_priv
	movq	%rax, %r12
	leaq	-40(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_mma8452_get_event_regs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$128, %r15d
	je	LBB0_4
## %bb.2:
	cmpl	$129, %r15d
	jne	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	callq	_mma8452_freefall_mode_enabled
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	(%r12), %edi
	movq	-40(%rbp), %rax
	movl	8(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	-40(%rbp), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	movl	%ecx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mma8452_read_event_config
.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_config
_mma8452_read_event_config:             ; @mma8452_read_event_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x19, x1
	bl	_iio_priv
	mov	x22, x0
	add	x3, sp, #8
	mov	x1, x19
	mov	x2, x21
	bl	_mma8452_get_event_regs
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #64
	ret
LBB0_2:
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x22
	bl	_mma8452_freefall_mode_enabled
	mov	x20, x0
	b	LBB0_1
LBB0_5:
	ldr	w0, [x22]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #8]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_1
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_BIT
	tst	w0, w20
	cset	w20, ne
	b	LBB0_1
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mma8452_read_event_config
.subsections_via_symbols
