	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma7455_read_raw
_mma7455_read_raw:                      ## @mma7455_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	cmpq	$129, %rbx
	je	LBB0_9
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_12
## %bb.3:
	movq	%r13, %rdi
	callq	_iio_buffer_enabled
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_MMA7455_10BIT_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_9:
	movl	(%r12), %edi
	movq	_MMA7455_REG_CTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	_MMA7455_CTL1_DFBW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-56(%rbp), %eax
	movl	$125, %eax
	movl	$250, %ecx
	cmovel	%eax, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
LBB0_11:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_13:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	callq	_mma7455_drdy
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	(%r12), %edi
	movl	(%r15), %esi
	leaq	-52(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %edi
	movl	$9, %esi
	callq	_sign_extend32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MMA7455_10BIT_SCALE,4,2        ## @MMA7455_10BIT_SCALE
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_MMA7455_REG_CTL1,4,2           ## @MMA7455_REG_CTL1
	.comm	_MMA7455_CTL1_DFBW_MASK,4,2     ## @MMA7455_CTL1_DFBW_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mma7455_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma7455_read_raw
_mma7455_read_raw:                      ; @mma7455_read_raw
	.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	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_iio_priv
	cmp	x23, #128
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
	cmp	x23, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	x23, #130
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x22
	bl	_iio_buffer_enabled
	cbz	w0, LBB0_12
; %bb.4:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _MMA7455_10BIT_SCALE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMA7455_10BIT_SCALE@GOTPAGEOFF]
	str	wzr, [x19]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x24]
Lloh5:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_6:
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _MMA7455_REG_CTL1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMA7455_REG_CTL1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _MMA7455_CTL1_DFBW_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MMA7455_CTL1_DFBW_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #250
	mov	w9, #125
	csel	w8, w9, w8, eq
	str	w8, [x19]
LBB0_8:
Lloh14:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	mov	x0, x21
	bl	_mma7455_drdy
	cbnz	w0, LBB0_11
; %bb.13:
	ldr	w0, [x21]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	w3, #4
	bl	_regmap_bulk_read
	cbnz	w0, LBB0_11
; %bb.14:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	w1, #9
	bl	_sign_extend32
	str	w0, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MMA7455_10BIT_SCALE,4,2        ; @MMA7455_10BIT_SCALE
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_MMA7455_REG_CTL1,4,2           ; @MMA7455_REG_CTL1
	.comm	_MMA7455_CTL1_DFBW_MASK,4,2     ; @MMA7455_CTL1_DFBW_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mma7455_read_raw
.subsections_via_symbols
