	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_read_fifo           ## -- Begin function st_lsm6dsx_read_fifo
	.p2align	4, 0x90
_st_lsm6dsx_read_fifo:                  ## @st_lsm6dsx_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ST_LSM6DSX_SAMPLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rdi), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	32(%rdi), %r12
	movl	(%r12), %r15d
	movq	_ST_LSM6DSX_IIO_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shlq	$2, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movl	4(%r12), %esi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %ecx
	callq	_st_lsm6dsx_read_locked
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %ebx
	movq	_ST_LSM6DSX_FIFO_EMPTY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	xorl	%r13d, %r13d
	testl	%ebx, %eax
	jne	LBB0_30
## %bb.4:
	movl	-72(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	andl	%r15d, %r14d
	movq	_ST_LSM6DSX_CHAN_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	movl	%r14d, %eax
	cltd
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	idivl	%r15d
	subl	%edx, %r14d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rax
	movq	_ST_LSM6DSX_ID_ACC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_iio_priv
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%r13), %rax
	movq	_ST_LSM6DSX_ID_GYRO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_iio_priv
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.6:
	xorl	%r12d, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %r13
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	addl	%r15d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	cmpl	-84(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_26
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	_ST_LSM6DSX_REG_FIFO_OUTL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r13), %rdx
	movq	_ST_LSM6DSX_MAX_WORD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rbx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_st_lsm6dsx_read_block
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx), %r15d
	testl	%eax, %eax
	setg	%dl
	testl	%r15d, %r15d
	setg	-49(%rbp)                       ## 1-byte Folded Spill
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	jle	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %r13
	movl	4(%rbx), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
                                        ## kill: def $eax killed $eax def $rax
	testb	$1, %dl
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movb	%dl, -50(%rbp)                  ## 1-byte Spill
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	testb	$1, -49(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rsp, %r13
	movq	_ST_LSM6DSX_SAMPLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movslq	%r14d, %r14
	leaq	(,%r14,4), %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	24(%rax), %rsi
	leal	(,%r12,4), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movl	(%rbx), %r12d
	movl	4(%rbx), %eax
	shll	$16, %eax
	shll	$8, %r12d
	orl	%eax, %r12d
	orl	12(%rbx), %r12d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$16711680, %r12d                ## imm = 0xFF0000
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %eax
	movl	$1, %esi
	cmovgel	%esi, %eax
	testl	%edx, %edx
	cmovel	%eax, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	_ST_LSM6DSX_TS_SENSITIVITY@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movq	_ST_LSM6DSX_SAMPLE_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movq	%r13, %rsp
	movq	%rcx, %r13
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	testb	$1, -50(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	16(%r13), %rax
	movq	_ST_LSM6DSX_ID_GYRO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	%r12d, %rdx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rdx
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_iio_push_to_buffers_with_timestamp
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=2
	testb	$1, -49(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	16(%r13), %rax
	movq	_ST_LSM6DSX_ID_ACC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	%r12d, %rdx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	8(%rax), %rdx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_iio_push_to_buffers_with_timestamp
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=2
	cmpl	$2, %r15d
	setge	-49(%rbp)                       ## 1-byte Folded Spill
	cmpl	$2, %ebx
	setge	%dl
	leal	-1(%r15), %ecx
	leal	-1(%rbx), %eax
	decl	-68(%rbp)                       ## 4-byte Folded Spill
	cmpl	$1, %r15d
	movl	%ecx, %r15d
	jg	LBB0_13
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%ecx, %r15d
	cmpl	$1, %ebx
	jg	LBB0_13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=2
	movslq	%r14d, %r14
	leaq	(,%r14,4), %rsi
	addq	24(%r13), %rsi
	movq	_ST_LSM6DSX_SAMPLE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_memcpy
	addl	(%rbx), %r14d
	testb	$1, -49(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	movslq	%r14d, %r14
	leaq	(,%r14,4), %rsi
	addq	24(%r13), %rsi
	movq	_ST_LSM6DSX_SAMPLE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_memcpy
	addl	(%rbx), %r14d
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_18
	jmp	LBB0_19
LBB0_1:
	movl	%eax, %r13d
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movl	%r13d, %edx
	callq	_dev_err
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
LBB0_26:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	movq	%r13, %rdi
	callq	_st_lsm6dsx_reset_hw_ts
	testl	%eax, %eax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	jns	LBB0_30
## %bb.29:
	movl	%eax, %r14d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movl	%r14d, %r13d
	jmp	LBB0_30
LBB0_8:
	movl	%eax, %r13d
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_27:
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_30
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_LSM6DSX_SAMPLE_SIZE,4,2     ## @ST_LSM6DSX_SAMPLE_SIZE
	.comm	_ST_LSM6DSX_IIO_BUFF_SIZE,4,2   ## @ST_LSM6DSX_IIO_BUFF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read fifo status (err=%d)\n"

	.comm	_ST_LSM6DSX_FIFO_EMPTY_MASK,4,2 ## @ST_LSM6DSX_FIFO_EMPTY_MASK
	.comm	_ST_LSM6DSX_CHAN_SIZE,4,2       ## @ST_LSM6DSX_CHAN_SIZE
	.comm	_ST_LSM6DSX_ID_ACC,8,3          ## @ST_LSM6DSX_ID_ACC
	.comm	_ST_LSM6DSX_ID_GYRO,8,3         ## @ST_LSM6DSX_ID_GYRO
	.comm	_ST_LSM6DSX_REG_FIFO_OUTL_ADDR,4,2 ## @ST_LSM6DSX_REG_FIFO_OUTL_ADDR
	.comm	_ST_LSM6DSX_MAX_WORD_LEN,4,2    ## @ST_LSM6DSX_MAX_WORD_LEN
L_.str.1:                               ## @.str.1
	.asciz	"failed to read pattern from fifo (err=%d)\n"

	.comm	_ST_LSM6DSX_TS_SENSITIVITY,4,2  ## @ST_LSM6DSX_TS_SENSITIVITY
L_.str.2:                               ## @.str.2
	.asciz	"failed to reset hw ts (err=%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_read_fifo           ; -- Begin function st_lsm6dsx_read_fifo
	.p2align	2
_st_lsm6dsx_read_fifo:                  ; @st_lsm6dsx_read_fifo
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w21, [x0]
Lloh3:
	adrp	x8, _ST_LSM6DSX_SAMPLE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST_LSM6DSX_SAMPLE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x12, [x0, #32]
	ldr	w20, [x12]
Lloh6:
	adrp	x8, _ST_LSM6DSX_IIO_BUFF_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_LSM6DSX_IIO_BUFF_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x9, x9, x13
	stur	x9, [x29, #-104]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x13
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	mov	sp, x8
	ldr	w1, [x12, #4]
	sub	x2, x29, #92
	mov	w3, #4
	bl	_st_lsm6dsx_read_locked
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldur	w23, [x29, #-92]
Lloh13:
	adrp	x8, _ST_LSM6DSX_FIFO_EMPTY_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ST_LSM6DSX_FIFO_EMPTY_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	tst	w0, w23
	b.eq	LBB0_6
; %bb.2:
	mov	w24, #0
	b	LBB0_4
LBB0_3:
	mov	x24, x0
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_err
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.5:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mul	w21, w22, w21
	ldur	w0, [x29, #-92]
	bl	_le16_to_cpu
	and	w8, w0, w20
Lloh21:
	adrp	x9, _ST_LSM6DSX_CHAN_SIZE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ST_LSM6DSX_CHAN_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	mul	w8, w8, w9
	sdiv	w8, w8, w21
	mul	w20, w8, w21
	ldr	x8, [x19, #16]
Lloh24:
	adrp	x9, _ST_LSM6DSX_ID_ACC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ST_LSM6DSX_ID_ACC@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_iio_priv
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _ST_LSM6DSX_ID_GYRO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ST_LSM6DSX_ID_GYRO@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_iio_priv
	stur	x0, [x29, #-128]                ; 8-byte Folded Spill
	stur	w20, [x29, #-136]               ; 4-byte Folded Spill
	cmp	w20, #1
	b.lt	LBB0_24
; %bb.7:
	mov	w23, #0
	stur	wzr, [x29, #-96]                ; 4-byte Folded Spill
	mov	w24, #0
	stur	w21, [x29, #-140]               ; 4-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldp	w8, w24, [x29, #-136]           ; 8-byte Folded Reload
	ldur	w21, [x29, #-140]               ; 4-byte Folded Reload
	add	w24, w24, w21
	cmp	w24, w8
	b.ge	LBB0_25
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
Lloh30:
	adrp	x8, _ST_LSM6DSX_REG_FIFO_OUTL_ADDR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ST_LSM6DSX_REG_FIFO_OUTL_ADDR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
Lloh33:
	adrp	x8, _ST_LSM6DSX_MAX_WORD_LEN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ST_LSM6DSX_MAX_WORD_LEN@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_st_lsm6dsx_read_block
	tbnz	w0, #31, LBB0_28
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	stur	w24, [x29, #-132]               ; 4-byte Folded Spill
	ldp	x8, x9, [x29, #-128]            ; 16-byte Folded Reload
	ldr	w8, [x8]
	ldr	w22, [x9]
	cmp	w8, #0
	cset	w21, gt
	cmp	w22, #0
	cset	w20, gt
	ccmp	w8, #1, #0, le
Lloh36:
	adrp	x27, _ST_LSM6DSX_SAMPLE_SIZE@GOTPAGE
Lloh37:
	ldr	x27, [x27, _ST_LSM6DSX_SAMPLE_SIZE@GOTPAGEOFF]
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w24, #0
	ldr	w26, [x19, #4]
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x28, x8
	tbnz	w21, #0, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	tbnz	w20, #0, LBB0_23
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=2
	subs	w26, w26, #1
	b.lt	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x25, sp
	ldr	w12, [x27]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh38:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh39:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	ldr	x8, [x19, #24]
	add	x1, x8, w24, sxtw #2
	lsl	w2, w12, #2
	mov	x0, x27
	bl	_memcpy
	ldp	w9, w8, [x27]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [x27, #12]
Lloh40:
	adrp	x27, _ST_LSM6DSX_SAMPLE_SIZE@GOTPAGE
Lloh41:
	ldr	x27, [x27, _ST_LSM6DSX_SAMPLE_SIZE@GOTPAGEOFF]
	orr	w8, w8, w9
	mov	w9, #16711679
	cmp	w8, w9
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	ccmp	w9, #0, #0, gt
	csinc	w9, w9, wzr, ne
	stur	w9, [x29, #-96]                 ; 4-byte Folded Spill
Lloh42:
	adrp	x9, _ST_LSM6DSX_TS_SENSITIVITY@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ST_LSM6DSX_TS_SENSITIVITY@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	mul	w23, w8, w9
	ldr	w8, [x27]
	add	w24, w8, w24
	mov	sp, x25
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=2
	tbz	w21, #0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19, #16]
Lloh45:
	adrp	x9, _ST_LSM6DSX_ID_GYRO@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ST_LSM6DSX_ID_GYRO@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x2, x8, w23, sxtw
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	bl	_iio_push_to_buffers_with_timestamp
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=2
	tbz	w20, #0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19, #16]
Lloh48:
	adrp	x9, _ST_LSM6DSX_ID_ACC@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ST_LSM6DSX_ID_ACC@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	ldp	x8, x1, [x29, #-120]            ; 16-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x2, x8, w23, sxtw
	bl	_iio_push_to_buffers_with_timestamp
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=2
	subs	w8, w28, #1
	cset	w21, gt
	subs	w22, w22, #1
	cset	w20, gt
	b.gt	LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=2
	cmp	w28, #1
	b.gt	LBB0_12
	b	LBB0_8
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19, #24]
	add	x1, x8, w24, sxtw #2
	ldr	w2, [x27]
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	bl	_memcpy
	ldr	w8, [x27]
	add	w24, w8, w24
	tbz	w20, #0, LBB0_14
LBB0_23:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19, #24]
	add	x1, x8, w24, sxtw #2
	ldr	w2, [x27]
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	bl	_memcpy
	ldr	w8, [x27]
	add	w24, w8, w24
	subs	w26, w26, #1
	b.ge	LBB0_15
	b	LBB0_16
LBB0_24:
	mov	w24, #0
	stur	wzr, [x29, #-96]                ; 4-byte Folded Spill
LBB0_25:
	ldur	w0, [x29, #-96]                 ; 4-byte Folded Reload
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.26:
	mov	x0, x19
	bl	_st_lsm6dsx_reset_hw_ts
	tbz	w0, #31, LBB0_4
; %bb.27:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh51:
	adrp	x1, l_.str.2@PAGE
Lloh52:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	mov	x24, x20
	b	LBB0_4
LBB0_28:
	mov	x27, x0
	ldr	w0, [x19, #8]
Lloh53:
	adrp	x1, l_.str.1@PAGE
Lloh54:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x27
	bl	_dev_err
	mov	x24, x27
	b	LBB0_4
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_LSM6DSX_SAMPLE_SIZE,4,2     ; @ST_LSM6DSX_SAMPLE_SIZE
	.comm	_ST_LSM6DSX_IIO_BUFF_SIZE,4,2   ; @ST_LSM6DSX_IIO_BUFF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read fifo status (err=%d)\n"

	.comm	_ST_LSM6DSX_FIFO_EMPTY_MASK,4,2 ; @ST_LSM6DSX_FIFO_EMPTY_MASK
	.comm	_ST_LSM6DSX_CHAN_SIZE,4,2       ; @ST_LSM6DSX_CHAN_SIZE
	.comm	_ST_LSM6DSX_ID_ACC,8,3          ; @ST_LSM6DSX_ID_ACC
	.comm	_ST_LSM6DSX_ID_GYRO,8,3         ; @ST_LSM6DSX_ID_GYRO
	.comm	_ST_LSM6DSX_REG_FIFO_OUTL_ADDR,4,2 ; @ST_LSM6DSX_REG_FIFO_OUTL_ADDR
	.comm	_ST_LSM6DSX_MAX_WORD_LEN,4,2    ; @ST_LSM6DSX_MAX_WORD_LEN
l_.str.1:                               ; @.str.1
	.asciz	"failed to read pattern from fifo (err=%d)\n"

	.comm	_ST_LSM6DSX_TS_SENSITIVITY,4,2  ; @ST_LSM6DSX_TS_SENSITIVITY
l_.str.2:                               ; @.str.2
	.asciz	"failed to reset hw ts (err=%d)\n"

.subsections_via_symbols
