	.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_rssi
_rtl92c_dm_ctrl_initgain_by_rssi:       ## @rtl92c_dm_ctrl_initgain_by_rssi
	.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	(%rax), %rdx
	cmpq	8(%rax), %rdx
	jle	LBB0_3
## %bb.1:
	movl	16(%rax), %ecx
	movl	20(%rax), %r9d
	addl	$-2, %ecx
	cmpl	%r9d, %ecx
	jge	LBB0_6
LBB0_2:
	movl	%r9d, 16(%rax)
	jmp	LBB0_8
LBB0_3:
	movl	16(%rax), %ecx
	cmpq	24(%rax), %rdx
	jge	LBB0_7
## %bb.4:
	addl	$2, %ecx
	movl	32(%rax), %r9d
	cmpl	%r9d, %ecx
	jg	LBB0_2
LBB0_6:
	movl	%ecx, 16(%rax)
LBB0_7:
	movl	%ecx, %r9d
LBB0_8:
	movl	36(%rax), %r8d
	movl	40(%rax), %edx
	movl	%r8d, %ecx
	subl	%r9d, %ecx
	addl	$10, %ecx
	cmpl	%edx, %ecx
	jg	LBB0_9
## %bb.10:
	movl	48(%rax), %edx
	cmpl	%edx, %ecx
	jge	LBB0_12
LBB0_9:
	movl	%edx, 44(%rax)
	jmp	LBB0_13
LBB0_12:
	movl	%ecx, 44(%rax)
LBB0_13:
	movq	_COMP_DIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	callq	_RT_TRACE
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtl8723e_dm_write_dig          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rssi_val_min = %x back_val %x\n"

	.no_dead_strip	_rtl92c_dm_ctrl_initgain_by_rssi
.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_rssi
_rtl92c_dm_ctrl_initgain_by_rssi:       ; @rtl92c_dm_ctrl_initgain_by_rssi
	.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
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.1:
	ldp	w8, w5, [x0, #16]
	sub	w8, w8, #2
	cmp	w8, w5
	b.ge	LBB0_5
LBB0_2:
	str	w5, [x0, #16]
	b	LBB0_6
LBB0_3:
	ldr	x9, [x0, #24]
	ldr	w5, [x0, #16]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:
	add	w8, w5, #2
	ldr	w5, [x0, #32]
	cmp	w8, w5
	b.gt	LBB0_2
LBB0_5:
	str	w8, [x0, #16]
	mov	x5, x8
LBB0_6:
	ldp	w4, w9, [x0, #36]
	sub	w8, w4, w5
	add	w8, w8, #10
	cmp	w8, w9
	b.gt	LBB0_8
; %bb.7:
	ldr	w9, [x0, #48]
	cmp	w8, w9
	b.ge	LBB0_9
LBB0_8:
	str	w9, [x0, #44]
	b	LBB0_10
LBB0_9:
	str	w8, [x0, #44]
LBB0_10:
Lloh0:
	adrp	x8, _COMP_DIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_DIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl8723e_dm_write_dig
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rssi_val_min = %x back_val %x\n"

	.no_dead_strip	_rtl92c_dm_ctrl_initgain_by_rssi
.subsections_via_symbols
