	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rm3100_get_samp_freq
_rm3100_get_samp_freq:                  ## @rm3100_get_samp_freq
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mutex_lock
	movl	4(%rbx), %edi
	movq	_RM3100_REG_TMRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	js	LBB0_2
## %bb.1:
	movq	_rm3100_samp_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-36(%rbp), %ecx
	movq	_RM3100_TMRC_OFFSET@GOTPCREL(%rip), %rdx
	movl	%ecx, %esi
	subl	(%rdx), %esi
	movq	(%rax,%rsi,8), %rsi
	movl	(%rsi), %esi
	movl	%esi, (%r15)
	subl	(%rdx), %ecx
	movq	(%rax,%rcx,8), %rax
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RM3100_REG_TMRC,4,2            ## @RM3100_REG_TMRC
	.comm	_rm3100_samp_rates,8,3          ## @rm3100_samp_rates
	.comm	_RM3100_TMRC_OFFSET,4,2         ## @RM3100_TMRC_OFFSET
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_rm3100_get_samp_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rm3100_get_samp_freq
_rm3100_get_samp_freq:                  ; @rm3100_get_samp_freq
	.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, x2
	mov	x20, x1
	mov	x22, x0
	bl	_mutex_lock
	ldr	w0, [x22, #4]
Lloh0:
	adrp	x8, _RM3100_REG_TMRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RM3100_REG_TMRC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _rm3100_samp_rates@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rm3100_samp_rates@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
Lloh6:
	adrp	x10, _RM3100_TMRC_OFFSET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RM3100_TMRC_OFFSET@GOTPAGEOFF]
	ldr	w11, [x10]
	sub	w11, w9, w11
	ldr	x11, [x8, w11, uxtw #3]
	ldr	w11, [x11]
	str	w11, [x20]
	ldr	w10, [x10]
	sub	w9, w9, w10
	ldr	x8, [x8, w9, uxtw #3]
	ldr	w8, [x8, #4]
	str	w8, [x19]
Lloh8:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
LBB0_2:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RM3100_REG_TMRC,4,2            ; @RM3100_REG_TMRC
	.comm	_rm3100_samp_rates,8,3          ; @rm3100_samp_rates
	.comm	_RM3100_TMRC_OFFSET,4,2         ; @RM3100_TMRC_OFFSET
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_rm3100_get_samp_freq
.subsections_via_symbols
