	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpr0521_read_samp_freq
_rpr0521_read_samp_freq:                ## @rpr0521_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	%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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r13d
	movl	(%rdi), %edi
	movq	_RPR0521_REG_MODE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_RPR0521_MODE_MEAS_TIME_MASK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx
	andl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movq	_rpr0521_samp_freq_i@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.2:
	cmpl	$128, %r13d
	je	LBB0_6
## %bb.3:
	cmpl	$129, %r13d
	jne	LBB0_7
## %bb.4:
	movq	(%r12), %rax
	movslq	-44(%rbp), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movl	%edx, (%r15)
	movl	4(%rax,%rcx), %eax
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	(%r12), %rax
	movslq	-44(%rbp), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edx
	movl	%edx, (%r15)
	movl	12(%rax,%rcx), %eax
LBB0_5:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RPR0521_REG_MODE_CTRL,4,2      ## @RPR0521_REG_MODE_CTRL
	.comm	_RPR0521_MODE_MEAS_TIME_MASK,4,2 ## @RPR0521_MODE_MEAS_TIME_MASK
	.comm	_rpr0521_samp_freq_i,8,3        ## @rpr0521_samp_freq_i
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rpr0521_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 rpr0521_read_samp_freq
_rpr0521_read_samp_freq:                ; @rpr0521_read_samp_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _RPR0521_REG_MODE_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPR0521_REG_MODE_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _RPR0521_MODE_MEAS_TIME_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPR0521_MODE_MEAS_TIME_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	and	w23, w9, w8
	str	w23, [sp, #12]
Lloh6:
	adrp	x22, _rpr0521_samp_freq_i@GOTPAGE
Lloh7:
	ldr	x22, [x22, _rpr0521_samp_freq_i@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ge	LBB0_5
; %bb.2:
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldr	x8, [x22]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8]
	str	w9, [x20]
	ldr	w8, [x8, #4]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	ldr	x8, [x22]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8, #8]
	str	w9, [x20]
	ldr	w8, [x8, #12]
LBB0_7:
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RPR0521_REG_MODE_CTRL,4,2      ; @RPR0521_REG_MODE_CTRL
	.comm	_RPR0521_MODE_MEAS_TIME_MASK,4,2 ; @RPR0521_MODE_MEAS_TIME_MASK
	.comm	_rpr0521_samp_freq_i,8,3        ; @rpr0521_samp_freq_i
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rpr0521_read_samp_freq
.subsections_via_symbols
