	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma220_read_raw
_bma220_read_raw:                       ## @bma220_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_4
## %bb.2:
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_bma220_read_reg
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_BMA220_DATA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movl	%eax, %edi
	movl	$5, %esi
	callq	_sign_extend32
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movl	(%rax), %edi
	movq	_BMA220_REG_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bma220_read_reg
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	_BMA220_RANGE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_bma220_scale_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	4(%rax), %eax
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BMA220_DATA_SHIFT,4,2          ## @BMA220_DATA_SHIFT
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_BMA220_REG_RANGE,4,2           ## @BMA220_REG_RANGE
	.comm	_BMA220_RANGE_MASK,4,2          ## @BMA220_RANGE_MASK
	.comm	_bma220_scale_table,8,3         ## @bma220_scale_table
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_bma220_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma220_read_raw
_bma220_read_raw:                       ; @bma220_read_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	bl	_iio_priv
	cmp	x22, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x0]
	ldr	w1, [x21]
	bl	_bma220_read_reg
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _BMA220_DATA_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMA220_DATA_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w0, w0, w8
	mov	w1, #5
	bl	_sign_extend32
	str	w0, [x19]
Lloh3:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	ldr	w0, [x0]
Lloh8:
	adrp	x8, _BMA220_REG_RANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMA220_REG_RANGE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_bma220_read_reg
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _BMA220_RANGE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BMA220_RANGE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	w9, w0
	and	x8, x8, x9
Lloh14:
	adrp	x9, _bma220_scale_table@GOTPAGE
Lloh15:
	ldr	x9, [x9, _bma220_scale_table@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	str	w8, [x20]
Lloh17:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BMA220_DATA_SHIFT,4,2          ; @BMA220_DATA_SHIFT
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_BMA220_REG_RANGE,4,2           ; @BMA220_REG_RANGE
	.comm	_BMA220_RANGE_MASK,4,2          ; @BMA220_RANGE_MASK
	.comm	_bma220_scale_table,8,3         ; @bma220_scale_table
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_bma220_read_raw
.subsections_via_symbols
