	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_lsm6dsx_set_full_scale
_st_lsm6dsx_set_full_scale:             ## @st_lsm6dsx_set_full_scale
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r15
	leaq	(%rax,%rax,2), %r12
	movl	(%r15,%r12,8), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.5:
	movq	16(%r15,%r12,8), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdx)
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%eax, %ecx
	jne	LBB0_3
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_3:
	movq	16(%r15,%r12,8), %rax
	movl	%ecx, %ecx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edi
	movl	4(%r15,%r12,8), %esi
	callq	_ST_LSM6DSX_SHIFT_VAL
	movq	16(%r14), %rdi
	movl	4(%r15,%r12,8), %edx
	movl	8(%r15,%r12,8), %esi
	movl	%eax, %ecx
	callq	_st_lsm6dsx_update_bits_locked
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	%rbx, 8(%r14)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_st_lsm6dsx_set_full_scale
.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_full_scale
_st_lsm6dsx_set_full_scale:             ; @st_lsm6dsx_set_full_scale
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x0]
	mov	w10, #24
	mul	x10, x9, x10
	ldr	w10, [x8, x10]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x11, #0
	mov	w12, #24
	madd	x12, x9, x12, x8
	ldr	x12, [x12, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	cmp	x13, x19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #1
	add	x12, x12, #16
	cmp	x10, x11
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w11, #0
LBB0_5:
	cmp	w11, w10
	b.ne	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	w10, #24
	madd	x21, x9, x10, x8
	ldr	x8, [x21, #16]
	add	x8, x8, w11, uxtw #4
	ldr	w0, [x8, #8]
	ldr	w1, [x21, #4]
	bl	_ST_LSM6DSX_SHIFT_VAL
	mov	x3, x0
	ldr	x0, [x20, #16]
	ldp	w2, w1, [x21, #4]
	bl	_st_lsm6dsx_update_bits_locked
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w0, #0
	str	x19, [x20, #8]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_st_lsm6dsx_set_full_scale
.subsections_via_symbols
