	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inv_mpu6050_fifo_rate_store
_inv_mpu6050_fifo_rate_store:           ## @inv_mpu6050_fifo_rate_store
	.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	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_to_iio_dev
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoint
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-44(%rbp), %eax
	movq	_INV_MPU6050_MIN_FIFO_RATE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_1
## %bb.3:
	movq	_INV_MPU6050_MAX_FIFO_RATE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_1
## %bb.4:
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	-44(%rbp), %edi
	callq	_INV_MPU6050_FIFO_RATE_TO_DIVIDER
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_INV_MPU6050_DIVIDER_TO_FIFO_RATE
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	callq	_mutex_lock
	xorl	%r13d, %r13d
	cmpq	8(%r15), %rbx
	je	LBB0_10
## %bb.6:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_inv_mpu6050_set_power_itg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movl	24(%r15), %edi
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, 8(%r15)
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_inv_mpu6050_set_lpf
LBB0_9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %ebx
	callq	_inv_mpu6050_set_power_itg
	movl	%eax, %r13d
	orl	%ebx, %r13d
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
	testl	%r13d, %r13d
	cmovnel	%r13d, %r14d
	movl	%r14d, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INV_MPU6050_MIN_FIFO_RATE,4,2  ## @INV_MPU6050_MIN_FIFO_RATE
	.comm	_INV_MPU6050_MAX_FIFO_RATE,4,2  ## @INV_MPU6050_MAX_FIFO_RATE
	.no_dead_strip	_inv_mpu6050_fifo_rate_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inv_mpu6050_fifo_rate_store
_inv_mpu6050_fifo_rate_store:           ; @inv_mpu6050_fifo_rate_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x22, x2
	bl	_dev_to_iio_dev
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoint
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _INV_MPU6050_MIN_FIFO_RATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INV_MPU6050_MIN_FIFO_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _INV_MPU6050_MAX_FIFO_RATE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INV_MPU6050_MAX_FIFO_RATE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x20
	bl	_iio_device_claim_direct_mode
	cbnz	w0, LBB0_3
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_INV_MPU6050_FIFO_RATE_TO_DIVIDER
	mov	x22, x0
	bl	_INV_MPU6050_DIVIDER_TO_FIFO_RATE
	str	w0, [sp, #12]
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w23, #0
	b	LBB0_11
LBB0_7:
	mov	x0, x21
	mov	w1, #1
	bl	_inv_mpu6050_set_power_itg
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	w0, [x21, #24]
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
	mov	x2, x22
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.9:
	str	x22, [x21, #8]
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_inv_mpu6050_set_lpf
	mov	x23, x0
LBB0_10:
	mov	x0, x21
	mov	w1, #0
	bl	_inv_mpu6050_set_power_itg
	orr	w23, w0, w23
LBB0_11:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	bl	_iio_device_release_direct_mode
	cmp	w23, #0
	csel	w0, w19, w23, eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INV_MPU6050_MIN_FIFO_RATE,4,2  ; @INV_MPU6050_MIN_FIFO_RATE
	.comm	_INV_MPU6050_MAX_FIFO_RATE,4,2  ; @INV_MPU6050_MAX_FIFO_RATE
	.no_dead_strip	_inv_mpu6050_fifo_rate_store
.subsections_via_symbols
