	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_magn_get_odr
_bmc150_magn_get_odr:                   ## @bmc150_magn_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	%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
	movq	%rsi, %r14
	movl	(%rdi), %edi
	movq	_BMC150_MAGN_REG_OPMODE_ODR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_BMC150_MAGN_MASK_ODR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	-44(%rbp), %ebx
	movq	_BMC150_MAGN_SHIFT_ODR@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_bmc150_magn_samp_freq_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movslq	%ebx, %r12
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	%r12, -8(%rdi,%r13)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	addq	$16, %r13
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movl	(%rdi,%r13), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMC150_MAGN_REG_OPMODE_ODR,4,2 ## @BMC150_MAGN_REG_OPMODE_ODR
	.comm	_BMC150_MAGN_MASK_ODR,4,2       ## @BMC150_MAGN_MASK_ODR
	.comm	_BMC150_MAGN_SHIFT_ODR,4,2      ## @BMC150_MAGN_SHIFT_ODR
	.comm	_bmc150_magn_samp_freq_table,8,3 ## @bmc150_magn_samp_freq_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bmc150_magn_get_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_magn_get_odr
_bmc150_magn_get_odr:                   ; @bmc150_magn_get_odr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _BMC150_MAGN_REG_OPMODE_ODR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMC150_MAGN_REG_OPMODE_ODR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w23, [sp, #12]
Lloh3:
	adrp	x8, _BMC150_MAGN_MASK_ODR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMC150_MAGN_MASK_ODR@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _BMC150_MAGN_SHIFT_ODR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMC150_MAGN_SHIFT_ODR@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x20, _bmc150_magn_samp_freq_table@GOTPAGE
Lloh10:
	ldr	x20, [x20, _bmc150_magn_samp_freq_table@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	and	w8, w25, w23
	asr	w8, w8, w24
	sxtw	x23, w8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x8, x21]
	cmp	x9, x23
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x22, x0
	b.lo	LBB0_3
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	add	x8, x8, x21
	ldr	w8, [x8, #8]
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BMC150_MAGN_REG_OPMODE_ODR,4,2 ; @BMC150_MAGN_REG_OPMODE_ODR
	.comm	_BMC150_MAGN_MASK_ODR,4,2       ; @BMC150_MAGN_MASK_ODR
	.comm	_BMC150_MAGN_SHIFT_ODR,4,2      ; @BMC150_MAGN_SHIFT_ODR
	.comm	_bmc150_magn_samp_freq_table,8,3 ; @bmc150_magn_samp_freq_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bmc150_magn_get_odr
.subsections_via_symbols
