	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_accel_read_raw
_bmc150_accel_read_raw:                 ## @bmc150_accel_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_iio_priv
	addq	$-129, %r14
	cmpq	$3, %r14
	ja	LBB0_19
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movl	$0, (%r15)
	movl	(%r13), %eax
	cmpl	$133, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$500000, (%rax)                 ## imm = 0x7A120
	jmp	LBB0_13
LBB0_22:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_bmc150_accel_get_bw
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_21
LBB0_2:
	movl	(%r13), %eax
	cmpl	$133, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmc150_accel_get_temp          ## TAILCALL
LBB0_8:
	cmpl	$128, (%r13)
	jne	LBB0_19
## %bb.9:
	movq	_BMC150_ACCEL_TEMP_CENTER_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
LBB0_14:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_19
## %bb.15:
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	movl	4(%r12), %edx
	movl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, 4(%rcx,%rsi,8)
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_16
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_20:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_iio_buffer_enabled
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmc150_accel_get_axis          ## TAILCALL
LBB0_17:
	movl	(%rcx,%rsi,8), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_13:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_22
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BMC150_ACCEL_TEMP_CENTER_VAL,4,2 ## @BMC150_ACCEL_TEMP_CENTER_VAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_bmc150_accel_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_accel_read_raw
_bmc150_accel_read_raw:                 ; @bmc150_accel_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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_iio_priv
	sub	x8, x24, #129
	cmp	x8, #3
	b.hi	LBB0_15
; %bb.1:
	mov	x20, 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:
	str	wzr, [x21]
	ldr	w8, [x22]
	cmp	w8, #133
	b.eq	LBB0_11
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.4:
	mov	w8, #41248
	movk	w8, #7, lsl #16
	b	LBB0_22
LBB0_5:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_bmc150_accel_get_bw
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_17
LBB0_6:
	ldr	w8, [x22]
	cmp	w8, #133
	b.eq	LBB0_18
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.8:
	mov	x0, x20
	mov	x1, 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
	b	_bmc150_accel_get_temp
LBB0_9:
	ldr	w8, [x22]
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.10:
Lloh2:
	adrp	x8, _BMC150_ACCEL_TEMP_CENTER_VAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMC150_ACCEL_TEMP_CENTER_VAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh5:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_11:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.12:
	ldr	x8, [x20, #8]
	ldr	x10, [x8]
	ldr	w8, [x20, #4]
	mov	w9, w0
	add	x10, x10, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w8
	b.eq	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_13
LBB0_15:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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_18:
	mov	x0, x23
	bl	_iio_buffer_enabled
	cbz	w0, LBB0_20
; %bb.19:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_20:
	mov	x0, x20
	mov	x1, x22
	mov	x2, 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
	b	_bmc150_accel_get_axis
LBB0_21:
	ldur	w8, [x10, #-4]
LBB0_22:
	str	w8, [x19]
Lloh12:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BMC150_ACCEL_TEMP_CENTER_VAL,4,2 ; @BMC150_ACCEL_TEMP_CENTER_VAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_bmc150_accel_read_raw
.subsections_via_symbols
