	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inv_reset_fifo                 ## -- Begin function inv_reset_fifo
	.p2align	4, 0x90
_inv_reset_fifo:                        ## @inv_reset_fifo
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_iio_priv
	movq	%rax, %rbx
	movq	$0, 40(%rax)
	movl	8(%rax), %edi
	movq	(%rax), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	8(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	callq	_regmap_get_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_dev_err
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	16(%rbx), %edx
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	_INV_MPU6050_BIT_FIFO_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	16(%rbx), %edx
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_15:
	movl	8(%rbx), %edi
	callq	_regmap_get_device
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_dev_err
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_INV_MPU6050_BIT_DATA_RDY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_5:
	cmpq	$0, 24(%rbx)
	jne	LBB0_7
## %bb.6:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
LBB0_7:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_INV_MPU6050_BIT_DATA_RDY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_8:
	movq	_INV_MPU6050_BIT_FIFO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	16(%rbx), %edx
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rbx)
	movl	$0, %eax
	je	LBB0_11
## %bb.10:
	movq	_INV_MPU6050_BITS_GYRO_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	cmpq	$0, 24(%rbx)
	movl	$0, %edx
	je	LBB0_13
## %bb.12:
	movq	_INV_MPU6050_BIT_ACCEL_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_13:
	orl	%eax, %edx
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"int_enable failed %d\n"

	.comm	_INV_MPU6050_BIT_FIFO_RST,4,2   ## @INV_MPU6050_BIT_FIFO_RST
	.comm	_INV_MPU6050_BIT_DATA_RDY_EN,4,2 ## @INV_MPU6050_BIT_DATA_RDY_EN
	.comm	_INV_MPU6050_BIT_FIFO_EN,4,2    ## @INV_MPU6050_BIT_FIFO_EN
	.comm	_INV_MPU6050_BITS_GYRO_OUT,4,2  ## @INV_MPU6050_BITS_GYRO_OUT
	.comm	_INV_MPU6050_BIT_ACCEL_OUT,4,2  ## @INV_MPU6050_BIT_ACCEL_OUT
L_.str.1:                               ## @.str.1
	.asciz	"reset fifo failed %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inv_reset_fifo                 ; -- Begin function inv_reset_fifo
	.p2align	2
_inv_reset_fifo:                        ; @inv_reset_fifo
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_iio_priv
	mov	x19, x0
	str	xzr, [x0, #40]
	ldr	w0, [x0, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	mov	x20, x0
	ldr	w0, [x19, #8]
	cbz	w20, LBB0_3
; %bb.1:
	bl	_regmap_get_device
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	mov	w2, #0
	bl	_regmap_write
	mov	x20, x0
Lloh2:
	adrp	x21, _INV_MPU6050_BIT_DATA_RDY_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _INV_MPU6050_BIT_DATA_RDY_EN@GOTPAGEOFF]
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	ldr	w2, [x19, #16]
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _INV_MPU6050_BIT_FIFO_RST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INV_MPU6050_BIT_FIFO_RST@GOTPAGEOFF]
	ldr	w9, [x19, #16]
Lloh6:
	ldr	w8, [x8]
	orr	w2, w8, w9
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	bl	_regmap_write
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_regmap_get_device
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	w2, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_write
LBB0_7:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
LBB0_9:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_2
LBB0_10:
Lloh9:
	adrp	x8, _INV_MPU6050_BIT_FIFO_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INV_MPU6050_BIT_FIFO_EN@GOTPAGEOFF]
	ldr	w9, [x19, #16]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, w9
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.11:
Lloh12:
	adrp	x8, _INV_MPU6050_BITS_GYRO_OUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INV_MPU6050_BITS_GYRO_OUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldp	x10, x9, [x19, #24]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh15:
	adrp	x9, _INV_MPU6050_BIT_ACCEL_OUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INV_MPU6050_BIT_ACCEL_OUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_6
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"int_enable failed %d\n"

	.comm	_INV_MPU6050_BIT_FIFO_RST,4,2   ; @INV_MPU6050_BIT_FIFO_RST
	.comm	_INV_MPU6050_BIT_DATA_RDY_EN,4,2 ; @INV_MPU6050_BIT_DATA_RDY_EN
	.comm	_INV_MPU6050_BIT_FIFO_EN,4,2    ; @INV_MPU6050_BIT_FIFO_EN
	.comm	_INV_MPU6050_BITS_GYRO_OUT,4,2  ; @INV_MPU6050_BITS_GYRO_OUT
	.comm	_INV_MPU6050_BIT_ACCEL_OUT,4,2  ; @INV_MPU6050_BIT_ACCEL_OUT
l_.str.1:                               ; @.str.1
	.asciz	"reset fifo failed %d\n"

.subsections_via_symbols
