	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kmx61_get_odr
_kmx61_get_odr:                         ## @kmx61_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	_KMX61_ACC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_KMX61_ACC_ODR_MASK@GOTPCREL(%rip), %rax
	movq	_KMX61_ACC_ODR_SHIFT@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_KMX61_MAG@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_KMX61_MAG_ODR_MASK@GOTPCREL(%rip), %rax
	movq	_KMX61_MAG_ODR_SHIFT@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rdi), %ebx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	andl	(%rax), %ebx
	movq	_kmx61_samp_freq_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_5
## %bb.6:
	movslq	%ebx, %rax
	movq	(%r12), %rcx
	movl	(%rcx,%rax,8), %edx
	movl	%edx, (%r15)
	movl	4(%rcx,%rax,8), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KMX61_ACC,4,2                  ## @KMX61_ACC
	.comm	_KMX61_ACC_ODR_SHIFT,4,2        ## @KMX61_ACC_ODR_SHIFT
	.comm	_KMX61_ACC_ODR_MASK,4,2         ## @KMX61_ACC_ODR_MASK
	.comm	_KMX61_MAG,4,2                  ## @KMX61_MAG
	.comm	_KMX61_MAG_ODR_SHIFT,4,2        ## @KMX61_MAG_ODR_SHIFT
	.comm	_KMX61_MAG_ODR_MASK,4,2         ## @KMX61_MAG_ODR_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_kmx61_samp_freq_table,8,3      ## @kmx61_samp_freq_table
	.no_dead_strip	_kmx61_get_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kmx61_get_odr
_kmx61_get_odr:                         ; @kmx61_get_odr
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _KMX61_ACC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KMX61_ACC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _KMX61_ACC_ODR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KMX61_ACC_ODR_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _KMX61_ACC_ODR_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KMX61_ACC_ODR_SHIFT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _KMX61_MAG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KMX61_MAG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, _KMX61_MAG_ODR_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KMX61_MAG_ODR_MASK@GOTPAGEOFF]
Lloh12:
	adrp	x9, _KMX61_MAG_ODR_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KMX61_MAG_ODR_SHIFT@GOTPAGEOFF]
LBB0_4:
	ldr	w10, [x0]
	ldr	w9, [x9]
	asr	w9, w10, w9
	ldr	w8, [x8]
	and	w21, w9, w8
Lloh14:
	adrp	x22, _kmx61_samp_freq_table@GOTPAGE
Lloh15:
	ldr	x22, [x22, _kmx61_samp_freq_table@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	x8, [x22]
	add	x8, x8, w21, sxtw #3
	ldr	w9, [x8]
	str	w9, [x20]
	ldr	w8, [x8, #4]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_KMX61_ACC,4,2                  ; @KMX61_ACC
	.comm	_KMX61_ACC_ODR_SHIFT,4,2        ; @KMX61_ACC_ODR_SHIFT
	.comm	_KMX61_ACC_ODR_MASK,4,2         ; @KMX61_ACC_ODR_MASK
	.comm	_KMX61_MAG,4,2                  ; @KMX61_MAG
	.comm	_KMX61_MAG_ODR_SHIFT,4,2        ; @KMX61_MAG_ODR_SHIFT
	.comm	_KMX61_MAG_ODR_MASK,4,2         ; @KMX61_MAG_ODR_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_kmx61_samp_freq_table,8,3      ; @kmx61_samp_freq_table
	.no_dead_strip	_kmx61_get_odr
.subsections_via_symbols
