	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92c_dm_ctrl_initgain_by_fa
_rtl92c_dm_ctrl_initgain_by_fa:         ## @rtl92c_dm_ctrl_initgain_by_fa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	8(%rax), %rdx
	movl	(%rax), %ecx
	movq	_DM_DIG_FA_TH0@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jge	LBB0_2
## %bb.1:
	decq	%rdx
	jmp	LBB0_6
LBB0_2:
	movq	_DM_DIG_FA_TH1@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jl	LBB0_6
## %bb.3:
	movq	_DM_DIG_FA_TH2@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jge	LBB0_5
## %bb.4:
	incq	%rdx
	jmp	LBB0_6
LBB0_5:
	addq	$2, %rdx
LBB0_6:
	movq	_DM_DIG_FA_UPPER@GOTPCREL(%rip), %rsi
	movq	_DM_DIG_FA_LOWER@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdi, %rdx
	cmovgq	%rdx, %rdi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	cmovgq	%rsi, %rdi
	cmpl	$10001, %ecx                    ## imm = 0x2711
	cmovgeq	%rsi, %rdi
	movq	%rdi, 8(%rax)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtl92c_dm_write_dig            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_DIG_FA_TH0,4,2              ## @DM_DIG_FA_TH0
	.comm	_DM_DIG_FA_TH1,4,2              ## @DM_DIG_FA_TH1
	.comm	_DM_DIG_FA_TH2,4,2              ## @DM_DIG_FA_TH2
	.comm	_DM_DIG_FA_UPPER,8,3            ## @DM_DIG_FA_UPPER
	.comm	_DM_DIG_FA_LOWER,8,3            ## @DM_DIG_FA_LOWER
	.no_dead_strip	_rtl92c_dm_ctrl_initgain_by_fa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl92c_dm_ctrl_initgain_by_fa
_rtl92c_dm_ctrl_initgain_by_fa:         ; @rtl92c_dm_ctrl_initgain_by_fa
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rtl_priv
	ldr	x9, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x10, _DM_DIG_FA_TH0@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DM_DIG_FA_TH0@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ge	LBB0_2
; %bb.1:
	sub	x9, x9, #1
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x10, _DM_DIG_FA_TH1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DM_DIG_FA_TH1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x10, _DM_DIG_FA_TH2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DM_DIG_FA_TH2@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w10
	add	x10, x9, #2
	csinc	x9, x10, x9, ge
LBB0_4:
Lloh9:
	adrp	x10, _DM_DIG_FA_UPPER@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DM_DIG_FA_UPPER@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _DM_DIG_FA_LOWER@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DM_DIG_FA_LOWER@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x9, x11
	csel	x11, x9, x11, gt
	cmp	x9, x10
	mov	w9, #10000
	ccmp	w8, w9, #0, le
	csel	x8, x10, x11, gt
	str	x8, [x0, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl92c_dm_write_dig
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_DIG_FA_TH0,4,2              ; @DM_DIG_FA_TH0
	.comm	_DM_DIG_FA_TH1,4,2              ; @DM_DIG_FA_TH1
	.comm	_DM_DIG_FA_TH2,4,2              ; @DM_DIG_FA_TH2
	.comm	_DM_DIG_FA_UPPER,8,3            ; @DM_DIG_FA_UPPER
	.comm	_DM_DIG_FA_LOWER,8,3            ; @DM_DIG_FA_LOWER
	.no_dead_strip	_rtl92c_dm_ctrl_initgain_by_fa
.subsections_via_symbols
