	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma180_read_raw
_bma180_read_raw:                       ## @bma180_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_iio_priv
	addq	$-129, %r14
	cmpq	$3, %r14
	ja	LBB0_5
## %bb.1:
	movq	%rax, %r13
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.3:
	cmpl	$133, %eax
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	4(%r13), %eax
	movl	%eax, (%rbx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	%r13, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	12(%r15), %esi
	movq	%r13, %rdi
	callq	_bma180_get_data_reg
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.8:
	movb	4(%r15), %cl
	shrl	%cl, %ebx
	movl	8(%r15), %esi
	decl	%esi
	movl	%ebx, %edi
	callq	_sign_extend32
	jmp	LBB0_11
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$48, (%rax)
	jmp	LBB0_13
LBB0_10:
	movl	(%r13), %eax
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$500, (%rax)                    ## imm = 0x1F4
LBB0_13:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bma180_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma180_read_raw
_bma180_read_raw:                       ; @bma180_read_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	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_iio_priv
	sub	x8, x24, #129
	cmp	x8, #3
	b.hi	LBB0_5
; %bb.1:
	mov	x23, 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, [x20]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.3:
	cmp	w8, #133
	b.ne	LBB0_5
; %bb.4:
	str	wzr, [x19]
	ldr	w8, [x23, #4]
	str	w8, [x21]
Lloh2:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_6:
	mov	x0, x22
	bl	_iio_device_claim_direct_mode
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.7:
	add	x24, x23, #8
	mov	x0, x24
	bl	_mutex_lock
	ldr	w1, [x20, #12]
	mov	x0, x23
	bl	_bma180_get_data_reg
	mov	x21, x0
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x22
	bl	_iio_device_release_direct_mode
	tbnz	w21, #31, LBB0_15
; %bb.8:
	ldp	w8, w9, [x20, #4]
	lsr	w0, w21, w8
	sub	w1, w9, #1
	bl	_sign_extend32
	str	w0, [x19]
	b	LBB0_13
LBB0_9:
	mov	w8, #48
	b	LBB0_12
LBB0_10:
	ldr	w8, [x23]
	b	LBB0_12
LBB0_11:
	mov	w8, #500
LBB0_12:
	str	w8, [x19]
LBB0_13:
Lloh7:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_14:
	ldr	w21, [x8]
LBB0_15:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bma180_read_raw
.subsections_via_symbols
