	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lis3lv02d_set_odr
_lis3lv02d_set_odr:                     ## @lis3lv02d_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CTRL_REG1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	*24(%rdi)
	movl	(%r14), %edi
	movl	%edi, %eax
	notl	%eax
	andl	%eax, -28(%rbp)
	callq	_hweight_long
	movl	%eax, %ecx
	movl	(%r14), %eax
	bsfl	%eax, %edx
	movl	$-1, %eax
	cmovnel	%edx, %eax
	cmpl	$31, %ecx
	je	LBB0_6
## %bb.2:
	movl	$1, %edx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	8(%r14), %rcx
	cmpl	$2, %esi
	cmovll	%edx, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx,%rdx,4)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rsi
	jne	LBB0_3
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	(%r15), %esi
	orl	-28(%rbp), %edx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CTRL_REG1,4,2                  ## @CTRL_REG1
	.no_dead_strip	_lis3lv02d_set_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lis3lv02d_set_odr
_lis3lv02d_set_odr:                     ; @lis3lv02d_set_odr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	w1, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x21, _CTRL_REG1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CTRL_REG1@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	blr	x8
	ldr	w0, [x19]
	ldr	w8, [sp, #12]
	bic	w8, w8, w0
	str	w8, [sp, #12]
	bl	_hweight_long
	ldr	w8, [x19]
	rbit	w9, w8
	clz	w9, w9
	cmp	w8, #0
	csinv	w8, w9, wzr, ne
	cmp	w0, #31
	b.eq	LBB0_5
; %bb.2:
	mov	x9, #0
	mov	w10, #1
	lsl	w11, w10, w0
	ldr	x10, [x19, #8]
	cmp	w11, #1
	csinc	w11, w11, wzr, gt
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9, lsl #2]
	cmp	w12, w20
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x11, x9
	b.ne	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x10, [x19, #16]
	ldr	w1, [x21]
	ldr	w11, [sp, #12]
	lsl	w8, w9, w8
	orr	w2, w11, w8
	mov	x0, x19
	blr	x10
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CTRL_REG1,4,2                  ; @CTRL_REG1
	.no_dead_strip	_lis3lv02d_set_odr
.subsections_via_symbols
