	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_magn_set_odr
_bmc150_magn_set_odr:                   ## @bmc150_magn_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_bmc150_magn_samp_freq_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpl	%r12d, (%rdi,%rbx,8)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movl	(%r14), %eax
	movq	_BMC150_MAGN_REG_OPMODE_ODR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_BMC150_MAGN_MASK_ODR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%rdi,%rbx,8), %ebx
	movq	_BMC150_MAGN_SHIFT_ODR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bmc150_magn_samp_freq_table,8,3 ## @bmc150_magn_samp_freq_table
	.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	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bmc150_magn_set_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_set_odr
_bmc150_magn_set_odr:                   ; @bmc150_magn_set_odr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _bmc150_magn_samp_freq_table@GOTPAGE
Lloh1:
	ldr	x21, [x21, _bmc150_magn_samp_freq_table@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x22]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x23, x0
	b.lo	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _BMC150_MAGN_REG_OPMODE_ODR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BMC150_MAGN_REG_OPMODE_ODR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
Lloh8:
	adrp	x9, _BMC150_MAGN_MASK_ODR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BMC150_MAGN_MASK_ODR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x9]
	add	x9, x0, x22
	ldr	w9, [x9, #4]
Lloh11:
	adrp	x10, _BMC150_MAGN_SHIFT_ODR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _BMC150_MAGN_SHIFT_ODR@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w3, w9, w10
	mov	x0, x8
	bl	_regmap_update_bits
	cmp	w0, #0
	csel	w0, w0, wzr, lt
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_bmc150_magn_samp_freq_table,8,3 ; @bmc150_magn_samp_freq_table
	.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	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bmc150_magn_set_odr
.subsections_via_symbols
