	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma9553_write_raw
_mma9553_write_raw:                     ## @mma9553_write_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %r13
	callq	_iio_priv
	addq	$-130, %rbx
	cmpq	$5, %rbx
	ja	LBB0_21
## %bb.1:
	movq	%rax, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$128, 4(%r13)
	jne	LBB0_21
## %bb.3:
	movl	(%r13), %eax
	movq	_IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.4:
	cmpl	$1, %r15d
	jle	LBB0_21
## %bb.5:
	cmpl	$5, %r15d
	movl	$5, %ebx
	cmovll	%r15d, %ebx
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_MMA9553_REG_CONF_SPEED_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	addq	$8, %rdx
	movq	_MMA9553_MASK_CONF_SPDPRD@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	xorl	%ebx, %ebx
	cmpl	%eax, (%r14)
	je	LBB0_22
## %bb.7:
	movq	%r14, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	20(%r14), %edi
	movl	%r15d, %esi
	callq	_mma9551_set_power_state
	testl	%eax, %eax
	js	LBB0_25
## %bb.8:
	movl	%r15d, (%r14)
	jmp	LBB0_9
LBB0_10:
	cmpl	$129, 4(%r13)
	jne	LBB0_21
## %bb.11:
	cmpl	$128, %r15d
	jae	LBB0_21
## %bb.12:
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_MMA9553_REG_CONF_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	addq	$12, %rdx
	movq	_MMA9553_MASK_CONF_FILTTIME@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_13:
	cmpl	$129, 4(%r13)
	jne	LBB0_21
## %bb.14:
	testl	%r15d, %r15d
	js	LBB0_21
## %bb.15:
	cmpl	$6, %r15d
	movl	$6, %ebx
	cmovll	%r15d, %ebx
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_MMA9553_REG_CONF_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	addq	$12, %rdx
	movq	_MMA9553_MASK_CONF_FILTSTEP@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %ecx
	jmp	LBB0_24
LBB0_17:
	cmpl	$256, %r15d                     ## imm = 0x100
	jae	LBB0_21
## %bb.18:
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_MMA9553_REG_CONF_HEIGHT_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	addq	$16, %rdx
	movq	_MMA9553_MASK_CONF_WEIGHT@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_mma9553_set_config
	movl	%eax, %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_22
LBB0_20:
	imull	$100, %r15d, %eax
	movslq	%r12d, %rcx
	imulq	$1759218605, %rcx, %rbx         ## imm = 0x68DB8BAD
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$44, %rbx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	jb	LBB0_23
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_MMA9553_REG_CONF_HEIGHT_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	addq	$16, %rdx
	movq	_MMA9553_MASK_CONF_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %ecx
LBB0_24:
	callq	_mma9553_set_config
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_22
LBB0_25:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r13d, %ebx
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMA9553_REG_CONF_HEIGHT_WEIGHT,4,2 ## @MMA9553_REG_CONF_HEIGHT_WEIGHT
	.comm	_MMA9553_MASK_CONF_HEIGHT,4,2   ## @MMA9553_MASK_CONF_HEIGHT
	.comm	_MMA9553_MASK_CONF_WEIGHT,4,2   ## @MMA9553_MASK_CONF_WEIGHT
	.comm	_MMA9553_REG_CONF_FILTER,4,2    ## @MMA9553_REG_CONF_FILTER
	.comm	_MMA9553_MASK_CONF_FILTSTEP,4,2 ## @MMA9553_MASK_CONF_FILTSTEP
	.comm	_MMA9553_MASK_CONF_FILTTIME,4,2 ## @MMA9553_MASK_CONF_FILTTIME
	.comm	_IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z,4,2 ## @IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z
	.comm	_MMA9553_REG_CONF_SPEED_STEP,4,2 ## @MMA9553_REG_CONF_SPEED_STEP
	.comm	_MMA9553_MASK_CONF_SPDPRD,4,2   ## @MMA9553_MASK_CONF_SPDPRD
	.no_dead_strip	_mma9553_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma9553_write_raw
_mma9553_write_raw:                     ; @mma9553_write_raw
	.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	x23, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	bl	_iio_priv
	sub	x8, x23, #130
	cmp	x8, #5
	b.hi	LBB0_17
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	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, [x21, #4]
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.3:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.4:
	cmp	w20, #1
	b.le	LBB0_17
; %bb.5:
	mov	w8, #5
	cmp	w20, #5
	csel	w20, w20, w8, lt
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh5:
	adrp	x8, _MMA9553_REG_CONF_SPEED_STEP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMA9553_REG_CONF_SPEED_STEP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, x19, #8
Lloh8:
	adrp	x8, _MMA9553_MASK_CONF_SPDPRD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMA9553_MASK_CONF_SPDPRD@GOTPAGEOFF]
	b	LBB0_22
LBB0_6:
	ldr	w8, [x19]
	cmp	w20, #0
	cset	w9, ne
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.7:
	mov	w21, #0
	b	LBB0_18
LBB0_8:
	ldr	w8, [x21, #4]
	cmp	w8, #129
	b.ne	LBB0_17
; %bb.9:
	cmp	w20, #128
	b.hs	LBB0_17
; %bb.10:
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh10:
	adrp	x8, _MMA9553_REG_CONF_FILTER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMA9553_REG_CONF_FILTER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, x19, #12
Lloh13:
	adrp	x8, _MMA9553_MASK_CONF_FILTTIME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MMA9553_MASK_CONF_FILTTIME@GOTPAGEOFF]
	b	LBB0_22
LBB0_11:
	ldr	w8, [x21, #4]
	cmp	w8, #129
	b.ne	LBB0_17
; %bb.12:
	tbnz	w20, #31, LBB0_17
; %bb.13:
	mov	w8, #6
	cmp	w20, #6
	csel	w20, w20, w8, lt
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh15:
	adrp	x8, _MMA9553_REG_CONF_FILTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMA9553_REG_CONF_FILTER@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, x19, #12
Lloh18:
	adrp	x8, _MMA9553_MASK_CONF_FILTSTEP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MMA9553_MASK_CONF_FILTSTEP@GOTPAGEOFF]
	b	LBB0_22
LBB0_14:
	cmp	w20, #256
	b.hs	LBB0_17
; %bb.15:
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh20:
	adrp	x8, _MMA9553_REG_CONF_HEIGHT_WEIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MMA9553_REG_CONF_HEIGHT_WEIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, x19, #16
Lloh23:
	adrp	x8, _MMA9553_MASK_CONF_WEIGHT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MMA9553_MASK_CONF_WEIGHT@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
	mov	w8, #100
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	smull	x9, w22, w9
	lsr	x10, x9, #63
	asr	x9, x9, #44
	add	w9, w9, w10
	madd	w20, w20, w8, w9
	cmp	w20, #256
	b.lo	LBB0_21
LBB0_17:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	mov	x0, x21
	b	LBB0_23
LBB0_19:
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	w0, [x19, #20]
	mov	x1, x20
	bl	_mma9551_set_power_state
	tbnz	w0, #31, LBB0_24
; %bb.20:
	str	w20, [x19]
	mov	x0, x22
	bl	_mutex_unlock
	mov	w21, #0
	b	LBB0_18
LBB0_21:
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh28:
	adrp	x8, _MMA9553_REG_CONF_HEIGHT_WEIGHT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MMA9553_REG_CONF_HEIGHT_WEIGHT@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x2, x19, #16
Lloh31:
	adrp	x8, _MMA9553_MASK_CONF_HEIGHT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MMA9553_MASK_CONF_HEIGHT@GOTPAGEOFF]
LBB0_22:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_mma9553_set_config
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
LBB0_23:
	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
LBB0_24:
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMA9553_REG_CONF_HEIGHT_WEIGHT,4,2 ; @MMA9553_REG_CONF_HEIGHT_WEIGHT
	.comm	_MMA9553_MASK_CONF_HEIGHT,4,2   ; @MMA9553_MASK_CONF_HEIGHT
	.comm	_MMA9553_MASK_CONF_WEIGHT,4,2   ; @MMA9553_MASK_CONF_WEIGHT
	.comm	_MMA9553_REG_CONF_FILTER,4,2    ; @MMA9553_REG_CONF_FILTER
	.comm	_MMA9553_MASK_CONF_FILTSTEP,4,2 ; @MMA9553_MASK_CONF_FILTSTEP
	.comm	_MMA9553_MASK_CONF_FILTTIME,4,2 ; @MMA9553_MASK_CONF_FILTTIME
	.comm	_IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z,4,2 ; @IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z
	.comm	_MMA9553_REG_CONF_SPEED_STEP,4,2 ; @MMA9553_REG_CONF_SPEED_STEP
	.comm	_MMA9553_MASK_CONF_SPDPRD,4,2   ; @MMA9553_MASK_CONF_SPDPRD
	.no_dead_strip	_mma9553_write_raw
.subsections_via_symbols
