	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpr0521_get_gain
_rpr0521_get_gain:                      ## @rpr0521_get_gain
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	(%rdi), %edi
	movq	_rpr0521_gain@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	16(%rax,%rbx,8), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movl	-36(%rbp), %edx
	andl	(%rax,%rbx,8), %edx
	movb	4(%rax,%rbx,8), %cl
	sarl	%cl, %edx
	movq	8(%rax,%rbx,8), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,8), %edx
	movl	%edx, (%r15)
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rpr0521_gain,8,3               ## @rpr0521_gain
	.no_dead_strip	_rpr0521_get_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpr0521_get_gain
_rpr0521_get_gain:                      ; @rpr0521_get_gain
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x22, _rpr0521_gain@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rpr0521_gain@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w9, #24
	smaddl	x8, w1, w9, x8
	ldr	w1, [x8, #16]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #0
	sxtw	x8, w21
	ldr	x9, [x22]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	w9, [sp, #12]
	ldp	w10, w11, [x8]
	and	w9, w9, w10
	asr	w9, w9, w11
	ldr	x8, [x8, #8]
	add	x8, x8, w9, sxtw #3
	ldr	w9, [x8]
	str	w9, [x20]
	ldr	w8, [x8, #4]
	str	w8, [x19]
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_rpr0521_gain,8,3               ; @rpr0521_gain
	.no_dead_strip	_rpr0521_get_gain
.subsections_via_symbols
