	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inv_mpu6050_write_raw
_inv_mpu6050_write_raw:                 ## @inv_mpu6050_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_inv_mpu6050_set_power_itg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$129, %rax
	je	LBB0_7
## %bb.3:
	cmpq	$128, %rax
	jne	LBB0_10
## %bb.4:
	movl	4(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_11
## %bb.5:
	cmpl	$130, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_inv_mpu6050_write_gyro_scale
	jmp	LBB0_14
LBB0_7:
	movl	4(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$130, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_10
## %bb.9:
	movq	8(%r14), %rax
	movl	4(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	jmp	LBB0_13
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_11:
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_inv_mpu6050_write_accel_scale
	jmp	LBB0_14
LBB0_12:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_13:
	callq	_inv_mpu6050_sensor_set
LBB0_14:
	movl	%eax, %r15d
LBB0_15:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_inv_mpu6050_set_power_itg
	movl	%eax, %r12d
	orl	%r15d, %r12d
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	callq	_iio_device_release_direct_mode
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_inv_mpu6050_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inv_mpu6050_write_raw
_inv_mpu6050_write_raw:                 ; @inv_mpu6050_write_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x25, x0
	cbnz	w0, LBB0_17
; %bb.1:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	mov	w1, #1
	bl	_inv_mpu6050_set_power_itg
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.2:
	cmp	x24, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	x24, #128
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [x23, #4]
	cmp	w8, #131
	b.eq	LBB0_11
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x20
	mov	x1, x22
	bl	_inv_mpu6050_write_gyro_scale
	b	LBB0_14
LBB0_7:
	ldr	w8, [x23, #4]
	cmp	w8, #131
	b.eq	LBB0_12
; %bb.8:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	b	LBB0_13
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	bl	_inv_mpu6050_write_accel_scale
	b	LBB0_14
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
LBB0_13:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x3, x21
	bl	_inv_mpu6050_sensor_set
LBB0_14:
	mov	x21, x0
LBB0_15:
	mov	x0, x20
	mov	w1, #0
	bl	_inv_mpu6050_set_power_itg
	orr	w25, w0, w21
LBB0_16:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_17:
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_inv_mpu6050_write_raw
.subsections_via_symbols
