	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inv_mpu6050_read_fifo          ## -- Begin function inv_mpu6050_read_fifo
	.p2align	4, 0x90
_inv_mpu6050_read_fifo:                 ## @inv_mpu6050_read_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	%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	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %r15
	movq	%r15, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	_INV_MPU6050_OUTPUT_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	32(%rbx), %edi
	movq	24(%rbx), %rax
	movl	8(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	32(%rbx), %edi
	callq	_regmap_get_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
LBB0_2:
	movq	%r15, %rdi
	callq	_inv_reset_fifo
LBB0_21:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	(%r15), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_INV_MPU6050_BIT_RAW_DATA_RDY_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -60(%rbp)
	je	LBB0_4
## %bb.5:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	48(%rbx), %ecx
	movl	52(%rbx), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	je	LBB0_21
## %bb.6:
	xorl	%esi, %esi
	testl	%ecx, %ecx
	movq	_INV_MPU6050_BYTES_PER_3AXIS_SENSOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	%r12, %rcx
	cmoveq	%rsi, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	cmoveq	%rsi, %r12
	movq	_INV_ICM20602@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rdx
	movq	24(%rbx), %rax
	cmpq	(%rcx), %rdx
	jne	LBB0_8
## %bb.7:
	movq	_INV_ICM20602_BYTES_PER_TEMP_SENSOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
LBB0_8:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %edi
	movl	4(%rax), %esi
	movq	_INV_MPU6050_FIFO_COUNT_BYTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_regmap_bulk_read
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	movq	%rax, %r12
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_unaligned_be16
	leaq	(%r12,%r12,2), %rdx
	movq	40(%rbx), %rcx
	movq	(%rcx), %rcx
	subq	%rdx, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_10
## %bb.11:
	movq	%rax, %rcx
	orq	%r12, %rcx
	shrq	$32, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.13:
	xorl	%edx, %edx
	divq	%r12
	jmp	LBB0_14
LBB0_4:
	movl	32(%rbx), %edi
	callq	_regmap_get_device
	movl	-60(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_21
LBB0_10:
	movl	32(%rbx), %edi
	callq	_regmap_get_device
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_2
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_14:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%rax, %r13
	movq	%rax, %rdx
	callq	_inv_mpu6050_update_period
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	ja	LBB0_21
## %bb.15:
	cmpq	$2, %r13
	movl	$1, %eax
	cmovaeq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	decq	%rax
	movq	%rax, 16(%rbx)
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_21
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%rbx), %edi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_regmap_bulk_read
	testl	%eax, %eax
	jne	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	callq	_inv_mpu6050_get_timestamp
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_iio_push_to_buffers_with_timestamp
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INV_MPU6050_OUTPUT_DATA_SIZE,4,2 ## @INV_MPU6050_OUTPUT_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to ack interrupt\n"

	.comm	_INV_MPU6050_BIT_RAW_DATA_RDY_INT,4,2 ## @INV_MPU6050_BIT_RAW_DATA_RDY_INT
L_.str.1:                               ## @.str.1
	.asciz	"spurious interrupt with status 0x%x\n"

	.comm	_INV_MPU6050_BYTES_PER_3AXIS_SENSOR,8,3 ## @INV_MPU6050_BYTES_PER_3AXIS_SENSOR
	.comm	_INV_ICM20602,8,3               ## @INV_ICM20602
	.comm	_INV_ICM20602_BYTES_PER_TEMP_SENSOR,8,3 ## @INV_ICM20602_BYTES_PER_TEMP_SENSOR
	.comm	_INV_MPU6050_FIFO_COUNT_BYTE,8,3 ## @INV_MPU6050_FIFO_COUNT_BYTE
L_.str.2:                               ## @.str.2
	.asciz	"fifo overflow reset\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inv_mpu6050_read_fifo          ; -- Begin function inv_mpu6050_read_fifo
	.p2align	2
_inv_mpu6050_read_fifo:                 ; @inv_mpu6050_read_fifo
	.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
	sub	sp, sp, #16
	mov	x23, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x1, #8]
	mov	x0, x19
	bl	_iio_priv
	mov	x21, x0
Lloh3:
	adrp	x8, _INV_MPU6050_OUTPUT_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INV_MPU6050_OUTPUT_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x21, #32]
	ldr	x8, [x21, #24]
	ldr	w1, [x8, #8]
	sub	x2, x29, #76
	bl	_regmap_read
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x21, #32]
	bl	_regmap_get_device
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	bl	_inv_reset_fifo
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.4:
	sub	sp, x29, #64
	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
LBB0_5:
	ldur	w8, [x29, #-76]
Lloh16:
	adrp	x9, _INV_MPU6050_BIT_RAW_DATA_RDY_INT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INV_MPU6050_BIT_RAW_DATA_RDY_INT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	ldp	w9, w8, [x21, #48]
	orr	w10, w8, w9
	cbz	w10, LBB0_3
; %bb.7:
Lloh19:
	adrp	x10, _INV_MPU6050_BYTES_PER_3AXIS_SENSOR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _INV_MPU6050_BYTES_PER_3AXIS_SENSOR@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	w9, #0
	csel	x24, xzr, x10, eq
	cmp	w8, #0
	csel	x25, xzr, x10, eq
	ldr	x8, [x21]
Lloh22:
	adrp	x9, _INV_ICM20602@GOTPAGE
Lloh23:
	ldr	x9, [x9, _INV_ICM20602@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
Lloh25:
	adrp	x10, _INV_ICM20602_BYTES_PER_TEMP_SENSOR@GOTPAGE
Lloh26:
	ldr	x10, [x10, _INV_ICM20602_BYTES_PER_TEMP_SENSOR@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x26, x10, xzr, eq
	ldr	w0, [x21, #32]
	ldr	x8, [x21, #24]
	ldr	w1, [x8, #4]
Lloh28:
	adrp	x8, _INV_MPU6050_FIFO_COUNT_BYTE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INV_MPU6050_FIFO_COUNT_BYTE@GOTPAGEOFF]
Lloh30:
	ldr	x3, [x8]
	mov	x2, x22
	bl	_regmap_bulk_read
	cbnz	w0, LBB0_3
; %bb.8:
	add	x8, x24, x25
	add	x24, x8, x26
	mov	x0, x22
	bl	_get_unaligned_be16
	sub	x8, x24, x24, lsl #2
	ldr	x9, [x21, #40]
	ldr	x9, [x9]
	add	x8, x9, x8
	cmp	x0, x8
	b.hs	LBB0_17
; %bb.9:
	mov	x25, x0
	ldr	w1, [x23]
	udiv	x23, x0, x24
	mov	x0, x21
	mov	x2, x23
	bl	_inv_mpu6050_update_period
	cmp	x24, x25
	b.hi	LBB0_3
; %bb.10:
	mov	x25, #0
	cmp	x23, #1
	csinc	x23, x23, xzr, hi
	b	LBB0_14
LBB0_11:
	ldr	w0, [x21, #32]
	bl	_regmap_get_device
	ldur	w8, [x29, #-76]
	str	x8, [sp, #-16]!
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	add	sp, sp, #16
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x8, x8, #1
	str	x8, [x21, #16]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x25, x25, #1
	cmp	x25, x23
	b.eq	LBB0_3
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #32]
	ldr	x8, [x21, #24]
	ldr	w1, [x8]
	mov	x2, x22
	mov	x3, x24
	bl	_regmap_bulk_read
	cbnz	w0, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	bl	_inv_mpu6050_get_timestamp
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_iio_push_to_buffers_with_timestamp
	b	LBB0_13
LBB0_17:
	ldr	w0, [x21, #32]
	bl	_regmap_get_device
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_2
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_INV_MPU6050_OUTPUT_DATA_SIZE,4,2 ; @INV_MPU6050_OUTPUT_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to ack interrupt\n"

	.comm	_INV_MPU6050_BIT_RAW_DATA_RDY_INT,4,2 ; @INV_MPU6050_BIT_RAW_DATA_RDY_INT
l_.str.1:                               ; @.str.1
	.asciz	"spurious interrupt with status 0x%x\n"

	.comm	_INV_MPU6050_BYTES_PER_3AXIS_SENSOR,8,3 ; @INV_MPU6050_BYTES_PER_3AXIS_SENSOR
	.comm	_INV_ICM20602,8,3               ; @INV_ICM20602
	.comm	_INV_ICM20602_BYTES_PER_TEMP_SENSOR,8,3 ; @INV_ICM20602_BYTES_PER_TEMP_SENSOR
	.comm	_INV_MPU6050_FIFO_COUNT_BYTE,8,3 ; @INV_MPU6050_FIFO_COUNT_BYTE
l_.str.2:                               ; @.str.2
	.asciz	"fifo overflow reset\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
