	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_update_fifo         ## -- Begin function st_lsm6dsx_update_fifo
	.p2align	4, 0x90
_st_lsm6dsx_update_fifo:                ## @st_lsm6dsx_update_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	16(%rdi), %r15
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_ST_LSM6DSX_FIFO_BYPASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_st_lsm6dsx_flush_fifo
	testl	%eax, %eax
	js	LBB0_14
LBB0_2:
	movq	(%r12), %rax
	movq	_ST_LSM6DSX_ID_EXT0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_ST_LSM6DSX_ID_EXT1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_ST_LSM6DSX_ID_EXT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_st_lsm6dsx_sensor_set_enable
	testl	%eax, %eax
	js	LBB0_14
## %bb.7:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_st_lsm6dsx_set_fifo_odr
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_14
LBB0_5:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_st_lsm6dsx_shub_set_enable
	testl	%eax, %eax
	js	LBB0_14
LBB0_9:
	movq	%r15, %rdi
	callq	_st_lsm6dsx_update_decimators
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	callq	_st_lsm6dsx_update_watermark
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	cmpq	$0, 16(%r15)
	je	LBB0_15
## %bb.12:
	movq	%r15, %rdi
	callq	_st_lsm6dsx_reset_hw_ts
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movq	_ST_LSM6DSX_FIFO_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_st_lsm6dsx_set_fifo_mode
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_LSM6DSX_FIFO_BYPASS,8,3     ## @ST_LSM6DSX_FIFO_BYPASS
	.comm	_ST_LSM6DSX_ID_EXT0,8,3         ## @ST_LSM6DSX_ID_EXT0
	.comm	_ST_LSM6DSX_ID_EXT1,8,3         ## @ST_LSM6DSX_ID_EXT1
	.comm	_ST_LSM6DSX_ID_EXT2,8,3         ## @ST_LSM6DSX_ID_EXT2
	.comm	_ST_LSM6DSX_FIFO_CONT,4,2       ## @ST_LSM6DSX_FIFO_CONT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_update_fifo         ; -- Begin function st_lsm6dsx_update_fifo
	.p2align	2
_st_lsm6dsx_update_fifo:                ; @st_lsm6dsx_update_fifo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ST_LSM6DSX_FIFO_BYPASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ST_LSM6DSX_FIFO_BYPASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_st_lsm6dsx_flush_fifo
	tbnz	w0, #31, LBB0_11
LBB0_2:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _ST_LSM6DSX_ID_EXT0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ST_LSM6DSX_ID_EXT0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ST_LSM6DSX_ID_EXT1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ST_LSM6DSX_ID_EXT1@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _ST_LSM6DSX_ID_EXT2@GOTPAGE
Lloh10:
	ldr	x11, [x11, _ST_LSM6DSX_ID_EXT2@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	mov	x0, x21
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x1, x23
	bl	_st_lsm6dsx_shub_set_enable
	tbz	w0, #31, LBB0_6
	b	LBB0_11
LBB0_4:
	mov	x1, x23
	bl	_st_lsm6dsx_sensor_set_enable
	tbnz	w0, #31, LBB0_11
; %bb.5:
	mov	x0, x21
	mov	x1, x23
	bl	_st_lsm6dsx_set_fifo_odr
	tbnz	w0, #31, LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_st_lsm6dsx_update_decimators
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldr	w1, [x21, #8]
	mov	x0, x21
	bl	_st_lsm6dsx_update_watermark
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.8:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_12
; %bb.9:
	mov	x0, x20
	bl	_st_lsm6dsx_reset_hw_ts
	tbnz	w0, #31, LBB0_11
; %bb.10:
Lloh12:
	adrp	x8, _ST_LSM6DSX_FIFO_CONT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ST_LSM6DSX_FIFO_CONT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_st_lsm6dsx_set_fifo_mode
LBB0_11:
	mov	x22, x0
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_LSM6DSX_FIFO_BYPASS,8,3     ; @ST_LSM6DSX_FIFO_BYPASS
	.comm	_ST_LSM6DSX_ID_EXT0,8,3         ; @ST_LSM6DSX_ID_EXT0
	.comm	_ST_LSM6DSX_ID_EXT1,8,3         ; @ST_LSM6DSX_ID_EXT1
	.comm	_ST_LSM6DSX_ID_EXT2,8,3         ; @ST_LSM6DSX_ID_EXT2
	.comm	_ST_LSM6DSX_FIFO_CONT,4,2       ; @ST_LSM6DSX_FIFO_CONT
.subsections_via_symbols
