	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmg160_read_raw
_bmg160_read_raw:                       ## @bmg160_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, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_iio_priv
	addq	$-129, %r14
	cmpq	$4, %r14
	ja	LBB0_14
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.3:
	cmpl	$134, %eax
	jne	LBB0_14
## %bb.4:
	movq	_bmg160_scale_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	4(%rdi,%rbx,8), %eax
	cmpl	4(%r12), %eax
	je	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_14
LBB0_8:
	movl	$0, (%r15)
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_bmg160_get_bw
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_20
LBB0_9:
	movl	(%r13), %eax
	cmpl	$134, %eax
	je	LBB0_21
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.11:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmg160_get_temp                ## TAILCALL
LBB0_12:
	cmpl	$128, (%r13)
	jne	LBB0_14
## %bb.13:
	movq	_BMG160_TEMP_CENTER_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_15:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_16:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmg160_get_filter              ## TAILCALL
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$500, (%rax)                    ## imm = 0x1F4
LBB0_18:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%rbx, %rdi
	callq	_iio_buffer_enabled
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_23:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bmg160_get_axis                ## TAILCALL
LBB0_24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	(%rdi,%rbx,8), %eax
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BMG160_TEMP_CENTER_VAL,4,2     ## @BMG160_TEMP_CENTER_VAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_bmg160_scale_table,8,3         ## @bmg160_scale_table
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_bmg160_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmg160_read_raw
_bmg160_read_raw:                       ; @bmg160_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	x22, x1
	mov	x23, x0
	bl	_iio_priv
	sub	x8, x24, #129
	cmp	x8, #4
	b.hi	LBB0_14
; %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:
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_17
; %bb.3:
	cmp	w8, #134
	b.ne	LBB0_14
; %bb.4:
Lloh2:
	adrp	x22, _bmg160_scale_table@GOTPAGE
Lloh3:
	ldr	x22, [x22, _bmg160_scale_table@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x23, #0
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	add	x8, x0, x23
	ldr	w8, [x8, #4]
	ldr	w9, [x20, #4]
	cmp	w8, w9
	b.eq	LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #8
	cmp	x24, w0, sxtw
	b.lt	LBB0_6
	b	LBB0_14
LBB0_8:
	str	wzr, [x21]
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x19
	bl	_bmg160_get_bw
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_20
LBB0_9:
	ldr	w8, [x22]
	cmp	w8, #134
	b.eq	LBB0_21
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	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	_bmg160_get_temp
LBB0_12:
	ldr	w8, [x22]
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.13:
Lloh4:
	adrp	x8, _BMG160_TEMP_CENTER_VAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BMG160_TEMP_CENTER_VAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	b	LBB0_18
LBB0_14:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	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	_bmg160_get_filter
LBB0_17:
	mov	w8, #500
LBB0_18:
	str	w8, [x19]
Lloh9:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
LBB0_20:
	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_21:
	mov	x0, x23
	bl	_iio_buffer_enabled
	cbz	w0, LBB0_23
; %bb.22:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_15
LBB0_23:
	ldr	w1, [x22, #4]
	mov	x0, x20
	mov	x2, x19
	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	_bmg160_get_axis
LBB0_24:
	str	wzr, [x19]
	ldr	w8, [x0, x23]
	str	w8, [x21]
Lloh13:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BMG160_TEMP_CENTER_VAL,4,2     ; @BMG160_TEMP_CENTER_VAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_bmg160_scale_table,8,3         ; @bmg160_scale_table
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_bmg160_read_raw
.subsections_via_symbols
