	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpr0521_write_samp_freq_common
_rpr0521_write_samp_freq_common:        ## @rpr0521_write_samp_freq_common
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$10, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.3:
	movl	$11, %eax
	cmpl	$500000, %ecx                   ## imm = 0x7A120
	je	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	$6, %eax
LBB0_6:
	movl	(%rdi), %edi
	movq	_RPR0521_REG_MODE_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_RPR0521_MODE_MEAS_TIME_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RPR0521_REG_MODE_CTRL,4,2      ## @RPR0521_REG_MODE_CTRL
	.comm	_RPR0521_MODE_MEAS_TIME_MASK,4,2 ## @RPR0521_MODE_MEAS_TIME_MASK
	.no_dead_strip	_rpr0521_write_samp_freq_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpr0521_write_samp_freq_common
_rpr0521_write_samp_freq_common:        ; @rpr0521_write_samp_freq_common
	.cfi_startproc
; %bb.0:
	mov	x8, x2
	cbz	w2, LBB0_7
; %bb.1:
	cmp	w8, #10
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.3:
	mov	w8, #41248
	movk	w8, #7, lsl #16
	cmp	w3, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #11
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	mov	w8, #6
LBB0_7:
	ldr	w0, [x0]
Lloh3:
	adrp	x9, _RPR0521_REG_MODE_CTRL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RPR0521_REG_MODE_CTRL@GOTPAGEOFF]
Lloh5:
	adrp	x10, _RPR0521_MODE_MEAS_TIME_MASK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RPR0521_MODE_MEAS_TIME_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
Lloh8:
	ldr	w2, [x10]
	mov	x3, x8
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RPR0521_REG_MODE_CTRL,4,2      ; @RPR0521_REG_MODE_CTRL
	.comm	_RPR0521_MODE_MEAS_TIME_MASK,4,2 ; @RPR0521_MODE_MEAS_TIME_MASK
	.no_dead_strip	_rpr0521_write_samp_freq_common
.subsections_via_symbols
