	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function itg3200_read_raw
_itg3200_read_raw:                      ## @itg3200_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	addq	$-128, %r8
	cmpq	$3, %r8
	ja	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r8,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	$0, (%r14)
	movl	(%rsi), %eax
	movq	_IIO_TEMP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	movl	$3571428, %eax                  ## imm = 0x367EE4
	movl	$1214142, %edx                  ## imm = 0x1286BE
	cmovel	%eax, %edx
	movl	%edx, (%rcx)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	movq	_ITG3200_REG_DLPF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_itg3200_read_reg_8
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	_ITG3200_DLPF_CFG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movl	$8000, %eax                     ## imm = 0x1F40
	movl	$1000, %ecx                     ## imm = 0x3E8
	cmovel	%eax, %ecx
	movl	%ecx, (%r14)
	movq	_ITG3200_REG_SAMPLE_RATE_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_itg3200_read_reg_8
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	-20(%rbp), %ecx
	incl	%ecx
	movl	(%r14), %eax
	cltd
	idivl	%ecx
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_7:
	movl	4(%rsi), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_itg3200_read_reg_s16
	jmp	LBB0_9
LBB0_8:
	movl	$23000, (%r14)                  ## imm = 0x59D8
LBB0_9:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_TEMP,4,2                   ## @IIO_TEMP
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_ITG3200_REG_DLPF,4,2           ## @ITG3200_REG_DLPF
	.comm	_ITG3200_DLPF_CFG_MASK,4,2      ## @ITG3200_DLPF_CFG_MASK
	.comm	_ITG3200_REG_SAMPLE_RATE_DIV,4,2 ## @ITG3200_REG_SAMPLE_RATE_DIV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_itg3200_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function itg3200_read_raw
_itg3200_read_raw:                      ; @itg3200_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	sub	x8, x4, #128
	cmp	x8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x2
	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, [x19]
	ldr	w8, [x1]
Lloh2:
	adrp	x9, _IIO_TEMP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IIO_TEMP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mov	w10, #34494
	movk	w10, #18, lsl #16
	mov	w11, #32484
	movk	w11, #54, lsl #16
	cmp	w8, w9
	csel	w8, w11, w10, eq
	str	w8, [x3]
Lloh5:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_4:
Lloh10:
	adrp	x8, _ITG3200_REG_DLPF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ITG3200_REG_DLPF@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_itg3200_read_reg_8
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w8, [sp, #12]
Lloh13:
	adrp	x9, _ITG3200_DLPF_CFG_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ITG3200_DLPF_CFG_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #1000
	mov	w9, #8000
	csel	w8, w9, w8, eq
	str	w8, [x19]
Lloh16:
	adrp	x8, _ITG3200_REG_SAMPLE_RATE_DIV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ITG3200_REG_SAMPLE_RATE_DIV@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_itg3200_read_reg_8
	cbnz	w0, LBB0_12
; %bb.6:
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	ldr	w9, [x19]
	sdiv	w8, w9, w8
	b	LBB0_9
LBB0_7:
	ldr	w1, [x1, #4]
	mov	x0, x20
	mov	x2, x19
	bl	_itg3200_read_reg_s16
	b	LBB0_10
LBB0_8:
	mov	w8, #23000
LBB0_9:
	str	w8, [x19]
LBB0_10:
Lloh19:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_TEMP,4,2                   ; @IIO_TEMP
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_ITG3200_REG_DLPF,4,2           ; @ITG3200_REG_DLPF
	.comm	_ITG3200_DLPF_CFG_MASK,4,2      ; @ITG3200_DLPF_CFG_MASK
	.comm	_ITG3200_REG_SAMPLE_RATE_DIV,4,2 ; @ITG3200_REG_SAMPLE_RATE_DIV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_itg3200_read_raw
.subsections_via_symbols
