	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltr501_ps_read_samp_freq
_ltr501_ps_read_samp_freq:              ## @ltr501_ps_read_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
	movl	(%rdi), %edi
	leaq	-36(%rbp), %rsi
	callq	_regmap_field_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	-36(%rbp), %ebx
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.2:
	movq	_ltr501_ps_samp_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.4:
	movq	(%r12), %rax
	movslq	-36(%rbp), %rcx
	movslq	(%rax,%rcx,4), %rdx
	imulq	$1125899907, %rdx, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$50, %rdx
	addl	%esi, %edx
	movl	%edx, (%r15)
	movslq	(%rax,%rcx,4), %rax
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	subl	%ecx, %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ltr501_ps_samp_table,8,3       ## @ltr501_ps_samp_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_ltr501_ps_read_samp_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltr501_ps_read_samp_freq
_ltr501_ps_read_samp_freq:              ; @ltr501_ps_read_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
	ldr	w0, [x0]
	add	x1, sp, #12
	bl	_regmap_field_read
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w21, [sp, #12]
	tbnz	w21, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x22, _ltr501_ps_samp_table@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ltr501_ps_samp_table@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_4
; %bb.3:
	ldr	x8, [x22]
	ldrsw	x9, [sp, #12]
	lsl	x9, x9, #2
	ldrsw	x10, [x8, x9]
	mov	w11, #56963
	movk	w11, #17179, lsl #16
	mul	x10, x10, x11
	lsr	x12, x10, #63
	asr	x10, x10, #50
	add	w10, w10, w12
	str	w10, [x20]
	ldrsw	x8, [x8, x9]
	mul	x9, x8, x11
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w9, w9, w10
	mov	w10, #16960
	movk	w10, #15, lsl #16
	msub	w8, w9, w10, w8
	str	w8, [x19]
Lloh2:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	_ltr501_ps_samp_table,8,3       ; @ltr501_ps_samp_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_ltr501_ps_read_samp_freq
.subsections_via_symbols
