	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu3050_write_raw
_mpu3050_write_raw:                     ## @mpu3050_write_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_mpu3050_fs_precision@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	imull	$2000000, (%rax), %edi          ## imm = 0x1E8480
	movq	_U16_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	imull	$2000000, 4(%rax), %edi         ## imm = 0x1E8480
	movl	(%r12), %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %r15d
	movq	(%r14), %rax
	imull	$2000000, 8(%rax), %edi         ## imm = 0x1E8480
	movl	(%r12), %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %r13d
	movq	(%r14), %rax
	imull	$2000000, 12(%rax), %edi        ## imm = 0x1E8480
	movl	(%r12), %esi
	callq	_DIV_ROUND_CLOSEST
	cmpq	$128, %rbx
	je	LBB0_10
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_5
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_23
## %bb.3:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	_IIO_ANGL_VEL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	4(%rdx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, -4(%rax,%rcx,4)
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_10:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movq	_IIO_ANGL_VEL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_23
## %bb.11:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
LBB0_12:
	movq	_FS_2000_DPS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leal	-8001(%rsi), %eax
	cmpl	$-7998, %eax                    ## imm = 0xE0C2
	ja	LBB0_6
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$1001, %esi                     ## imm = 0x3E9
	jb	LBB0_9
## %bb.7:
	movq	_LPF_256_HZ_NOLPF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 24(%rbx)
	movl	$8000, %edi                     ## imm = 0x1F40
	jmp	LBB0_8
LBB0_9:
	movq	_LPF_188_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 24(%rbx)
	movl	$1000, %edi                     ## imm = 0x3E8
LBB0_8:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DIV_ROUND_CLOSEST
	decl	%eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_14:
	cmpl	%r15d, %edi
	jae	LBB0_16
## %bb.15:
	movl	%r15d, %ecx
	movl	%esi, %edx
	addl	%esi, %edi
	shrl	%edi
	cmpl	%r15d, %edi
	jbe	LBB0_17
LBB0_16:
	movq	_FS_250_DPS@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_17:
	cmpl	%ecx, %edx
	jae	LBB0_19
## %bb.18:
	addl	%r13d, %edx
	shrl	%edx
	cmpl	%ecx, %edx
	jbe	LBB0_20
LBB0_19:
	movq	_FS_500_DPS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_20:
	cmpl	%ecx, %r13d
	jae	LBB0_22
## %bb.21:
	addl	%r13d, %eax
	shrl	%eax
	cmpl	%ecx, %eax
	jbe	LBB0_12
LBB0_22:
	movq	_FS_1000_DPS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_mpu3050_fs_precision,8,3       ## @mpu3050_fs_precision
	.comm	_U16_MAX,4,2                    ## @U16_MAX
	.comm	_IIO_ANGL_VEL,4,2               ## @IIO_ANGL_VEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LPF_256_HZ_NOLPF,4,2           ## @LPF_256_HZ_NOLPF
	.comm	_LPF_188_HZ,4,2                 ## @LPF_188_HZ
	.comm	_FS_2000_DPS,8,3                ## @FS_2000_DPS
	.comm	_FS_250_DPS,8,3                 ## @FS_250_DPS
	.comm	_FS_500_DPS,8,3                 ## @FS_500_DPS
	.comm	_FS_1000_DPS,8,3                ## @FS_1000_DPS
	.no_dead_strip	_mpu3050_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu3050_write_raw
_mpu3050_write_raw:                     ; @mpu3050_write_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	bl	_iio_priv
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x27, _mpu3050_fs_precision@GOTPAGE
Lloh1:
	ldr	x27, [x27, _mpu3050_fs_precision@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	w8, [x8]
	mov	w28, #33920
	movk	w28, #30, lsl #16
	mul	w0, w8, w28
Lloh2:
	adrp	x19, _U16_MAX@GOTPAGE
Lloh3:
	ldr	x19, [x19, _U16_MAX@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_DIV_ROUND_CLOSEST
	mov	x24, x0
	ldr	x8, [x27]
	ldr	w8, [x8, #4]
	mul	w0, w8, w28
	ldr	w1, [x19]
	bl	_DIV_ROUND_CLOSEST
	mov	x25, x0
	ldr	x8, [x27]
	ldr	w8, [x8, #8]
	mul	w0, w8, w28
	ldr	w1, [x19]
	bl	_DIV_ROUND_CLOSEST
	mov	x26, x0
	ldr	x8, [x27]
	ldr	w8, [x8, #12]
	mul	w0, w8, w28
	ldr	w1, [x19]
	bl	_DIV_ROUND_CLOSEST
	cmp	x23, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x23, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	x23, #130
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _IIO_ANGL_VEL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IIO_ANGL_VEL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldrsw	x9, [x22, #4]
	add	x8, x8, x9, lsl #2
	stur	w20, [x8, #-4]
	b	LBB0_10
LBB0_5:
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _IIO_ANGL_VEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IIO_ANGL_VEL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.6:
	cbz	w20, LBB0_15
LBB0_7:
	mov	w0, #0
Lloh10:
	adrp	x8, _FS_2000_DPS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FS_2000_DPS@GOTPAGEOFF]
	b	LBB0_18
LBB0_8:
	mov	w8, #-8001
	mov	w9, #-7998
	add	w8, w20, w8
	cmp	w8, w9
	b.hi	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	cmp	w20, #1001
	b.lo	LBB0_13
; %bb.12:
Lloh15:
	adrp	x8, _LPF_256_HZ_NOLPF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LPF_256_HZ_NOLPF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	str	w8, [x19, #24]
	mov	w0, #8000
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x8, _LPF_188_HZ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LPF_188_HZ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	str	w8, [x19, #24]
	mov	w0, #1000
LBB0_14:
	mov	x1, x20
	bl	_DIV_ROUND_CLOSEST
	mov	x8, x0
	mov	w0, #0
	sub	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_10
LBB0_15:
	cmp	w24, w21
	b.hs	LBB0_17
; %bb.16:
	add	w8, w25, w24
	cmp	w21, w8, lsr #1
	b.hs	LBB0_19
LBB0_17:
	mov	w0, #0
Lloh21:
	adrp	x8, _FS_250_DPS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FS_250_DPS@GOTPAGEOFF]
LBB0_18:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9, #16]
	b	LBB0_10
LBB0_19:
	cmp	w25, w21
	b.hs	LBB0_21
; %bb.20:
	add	w8, w26, w25
	cmp	w21, w8, lsr #1
	b.hs	LBB0_22
LBB0_21:
	mov	w0, #0
Lloh23:
	adrp	x8, _FS_500_DPS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FS_500_DPS@GOTPAGEOFF]
	b	LBB0_18
LBB0_22:
	cmp	w26, w21
	b.hs	LBB0_24
; %bb.23:
	add	w8, w0, w26
	cmp	w21, w8, lsr #1
	b.hs	LBB0_7
LBB0_24:
	mov	w0, #0
Lloh25:
	adrp	x8, _FS_1000_DPS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FS_1000_DPS@GOTPAGEOFF]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_mpu3050_fs_precision,8,3       ; @mpu3050_fs_precision
	.comm	_U16_MAX,4,2                    ; @U16_MAX
	.comm	_IIO_ANGL_VEL,4,2               ; @IIO_ANGL_VEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LPF_256_HZ_NOLPF,4,2           ; @LPF_256_HZ_NOLPF
	.comm	_LPF_188_HZ,4,2                 ; @LPF_188_HZ
	.comm	_FS_2000_DPS,8,3                ; @FS_2000_DPS
	.comm	_FS_250_DPS,8,3                 ; @FS_250_DPS
	.comm	_FS_500_DPS,8,3                 ; @FS_500_DPS
	.comm	_FS_1000_DPS,8,3                ; @FS_1000_DPS
	.no_dead_strip	_mpu3050_write_raw
.subsections_via_symbols
