	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_lsm6dsx_set_odr
_st_lsm6dsx_set_odr:                    ## @st_lsm6dsx_set_odr
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movl	$0, -44(%rbp)
	movl	(%rdi), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.1:
	movq	8(%r13), %rax
	movl	524(%rax), %edi
	callq	_iio_priv
	movq	_ST_LSM6DSX_ID_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpl	$132, %edx
	jl	LBB0_2
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$131, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%edx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %ecx
	cmpq	%rcx, %rbx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_st_lsm6dsx_check_odr_dependency
	cmpl	%r15d, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edx
	jmp	LBB0_9
LBB0_2:
	movq	%rax, %r14
LBB0_11:
	testl	%r15d, %r15d
	jle	LBB0_12
LBB0_13:
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_st_lsm6dsx_check_odr
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movl	-44(%rbp), %edi
	jmp	LBB0_15
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%r15d, %r15d
	jg	LBB0_13
LBB0_12:
	xorl	%edi, %edi
LBB0_15:
	movq	(%r13), %rax
	movq	(%rax), %r15
	movslq	(%r14), %rbx
	movl	(%r15,%rbx,8), %esi
	callq	_ST_LSM6DSX_SHIFT_VAL
	movl	(%r15,%rbx,8), %edx
	movl	4(%r15,%rbx,8), %esi
	movq	%r13, %rdi
	movl	%eax, %ecx
	callq	_st_lsm6dsx_update_bits_locked
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_LSM6DSX_ID_MAX,4,2          ## @ST_LSM6DSX_ID_MAX
	.no_dead_strip	_st_lsm6dsx_set_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_lsm6dsx_set_odr
_st_lsm6dsx_set_odr:                    ; @st_lsm6dsx_set_odr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	str	wzr, [sp, #12]
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #524]
	bl	_iio_priv
	mov	x22, x0
Lloh0:
	adrp	x24, _ST_LSM6DSX_ID_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ST_LSM6DSX_ID_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #132
	b.lt	LBB0_8
; %bb.2:
	mov	w23, #131
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	w9, [x9, x23, lsl #2]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
	cmp	x23, x9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_st_lsm6dsx_check_odr_dependency
	cmp	w0, w21
	b.ne	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	b	LBB0_3
LBB0_8:
	mov	x20, x22
LBB0_9:
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.10:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_st_lsm6dsx_check_odr
	tbnz	w0, #31, LBB0_14
; %bb.11:
	ldr	w0, [sp, #12]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	add	x20, x8, x9, lsl #3
	ldr	w1, [x20]
	bl	_ST_LSM6DSX_SHIFT_VAL
	mov	x3, x0
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_st_lsm6dsx_update_bits_locked
LBB0_14:
	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
	add	sp, sp, #80
	ret
LBB0_15:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_LSM6DSX_ID_MAX,4,2          ; @ST_LSM6DSX_ID_MAX
	.no_dead_strip	_st_lsm6dsx_set_odr
.subsections_via_symbols
