	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmi160_get_odr
_bmi160_get_odr:                        ## @bmi160_get_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	(%rdi), %edi
	movq	_bmi160_regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	%esi, %ebx
	movl	4(%rax,%rbx,8), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	(%r12), %rcx
	movl	-36(%rbp), %eax
	andl	(%rcx,%rbx,8), %eax
	movl	%eax, -36(%rbp)
	movq	_bmi160_odr_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rbx
	movl	(%rcx,%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.2:
	movq	8(%rcx,%rbx), %rcx
	shlq	$2, %rdx
	leaq	(%rdx,%rdx,2), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rcx,%rdx), %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_3
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	4(%rcx,%rdx), %eax
	movl	%eax, (%r15)
	movl	8(%rcx,%rdx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bmi160_regs,8,3                ## @bmi160_regs
	.comm	_bmi160_odr_table,8,3           ## @bmi160_odr_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bmi160_get_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmi160_get_odr
_bmi160_get_odr:                        ; @bmi160_get_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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x22, _bmi160_regs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _bmi160_regs@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, w1, uxtw #3
	ldr	w1, [x8, #4]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_7
; %bb.1:
	mov	w10, w21
	ldr	x8, [x22]
	lsl	x9, x10, #3
	ldr	w8, [x8, x9]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
Lloh2:
	adrp	x9, _bmi160_odr_table@GOTPAGE
Lloh3:
	ldr	x9, [x9, _bmi160_odr_table@GOTPAGEOFF]
	str	w8, [sp, #12]
Lloh4:
	ldr	x11, [x9]
	lsl	x9, x10, #4
	ldr	w9, [x11, x9]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	add	x10, x11, x10, lsl #4
	ldr	x10, [x10, #8]
	add	x10, x10, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	cmp	w8, w11
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #12
	subs	x9, x9, #1
	b.ne	LBB0_3
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	ldr	w8, [x10]
	str	w8, [x20]
	ldr	w8, [x10, #4]
	str	w8, [x19]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_bmi160_regs,8,3                ; @bmi160_regs
	.comm	_bmi160_odr_table,8,3           ; @bmi160_odr_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bmi160_get_odr
.subsections_via_symbols
