	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma9551_config_incli_event
_mma9551_config_incli_event:            ## @mma9551_config_incli_event
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_iio_priv
	movq	%rax, %r12
	leal	-1(%rbx), %r15d
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	cmpl	%r14d, (%rax,%r15,4)
	je	LBB0_12
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.2:
	addl	$-128, %ebx
	cmpl	$3, %ebx
	jae	LBB0_9
## %bb.3:
	movslq	%ebx, %rax
	leaq	l_switch.table.mma9551_config_incli_event(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ebx
	movl	8(%r12), %edi
	movl	$1, %esi
	callq	_mma9551_set_power_state
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	leal	7(,%rbx,8), %ecx
	movl	8(%r12), %edi
	movq	_MMA9551_APPID_TILT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	xorl	%r8d, %r8d
	callq	_mma9551_gpio_config
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.5:
	movl	8(%r12), %edi
	xorl	%esi, %esi
	callq	_mma9551_set_power_state
	jmp	LBB0_12
LBB0_6:
	movl	8(%r12), %edi
	movq	_MMA9551_APPID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mma9551_gpio_config
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movl	8(%r12), %edi
	xorl	%esi, %esi
	callq	_mma9551_set_power_state
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_12
LBB0_8:
	movq	(%r12), %rax
	movl	%r14d, (%rax,%r15,4)
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA9551_APPID_NONE,4,2         ## @MMA9551_APPID_NONE
	.comm	_MMA9551_TILT_YZ_ANG_REG,4,2    ## @MMA9551_TILT_YZ_ANG_REG
	.comm	_MMA9551_TILT_XZ_ANG_REG,4,2    ## @MMA9551_TILT_XZ_ANG_REG
	.comm	_MMA9551_TILT_XY_ANG_REG,4,2    ## @MMA9551_TILT_XY_ANG_REG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMA9551_APPID_TILT,4,2         ## @MMA9551_APPID_TILT
	.no_dead_strip	_mma9551_config_incli_event
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mma9551_config_incli_event
l_switch.table.mma9551_config_incli_event:
	.quad	_MMA9551_TILT_XY_ANG_REG
	.quad	_MMA9551_TILT_XZ_ANG_REG
	.quad	_MMA9551_TILT_YZ_ANG_REG

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma9551_config_incli_event
_mma9551_config_incli_event:            ; @mma9551_config_incli_event
	.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	x19, x2
	mov	x22, x1
	bl	_iio_priv
	sub	w21, w22, #1
	ldr	x8, [x0]
	ldr	w8, [x8, w21, uxtw #2]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_12
LBB0_2:
	mov	x20, x0
	cbz	w19, LBB0_7
; %bb.3:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hs	LBB0_10
; %bb.4:
Lloh0:
	adrp	x9, l_switch.table.mma9551_config_incli_event@PAGE
Lloh1:
	add	x9, x9, l_switch.table.mma9551_config_incli_event@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w23, [x8]
	ldr	w0, [x20, #8]
	mov	w1, #1
	bl	_mma9551_set_power_state
	tbnz	w0, #31, LBB0_11
; %bb.5:
	mov	w3, #7
	bfi	w3, w23, #3, #29
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _MMA9551_APPID_TILT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMA9551_APPID_TILT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x21
	mov	w4, #0
	bl	_mma9551_gpio_config
	mov	x22, x0
	tbz	w0, #31, LBB0_9
; %bb.6:
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_mma9551_set_power_state
	b	LBB0_12
LBB0_7:
	ldr	w0, [x20, #8]
Lloh5:
	adrp	x8, _MMA9551_APPID_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMA9551_APPID_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	bl	_mma9551_gpio_config
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_mma9551_set_power_state
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
LBB0_9:
	ldr	x8, [x20]
	str	w19, [x8, x21, lsl #2]
	b	LBB0_12
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_11:
	mov	x22, x0
LBB0_12:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA9551_APPID_NONE,4,2         ; @MMA9551_APPID_NONE
	.comm	_MMA9551_TILT_YZ_ANG_REG,4,2    ; @MMA9551_TILT_YZ_ANG_REG
	.comm	_MMA9551_TILT_XZ_ANG_REG,4,2    ; @MMA9551_TILT_XZ_ANG_REG
	.comm	_MMA9551_TILT_XY_ANG_REG,4,2    ; @MMA9551_TILT_XY_ANG_REG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMA9551_APPID_TILT,4,2         ; @MMA9551_APPID_TILT
	.no_dead_strip	_mma9551_config_incli_event
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mma9551_config_incli_event
l_switch.table.mma9551_config_incli_event:
	.quad	_MMA9551_TILT_XY_ANG_REG
	.quad	_MMA9551_TILT_XZ_ANG_REG
	.quad	_MMA9551_TILT_YZ_ANG_REG

.subsections_via_symbols
