	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_agc_gain_chk
_rtw8822c_dpk_agc_gain_chk:             ## @rtw8822c_dpk_agc_gain_chk
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_RTW_DPK_DAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rtw8822c_dpk_one_shot
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_rtw8822c_dpk_dgain_read
	movl	%eax, %ecx
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.1:
	cmpl	$1536, %ecx                     ## imm = 0x600
	jl	LBB0_3
## %bb.2:
	movq	_RTW_DPK_GAIN_LESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%edx, %edx
	movl	$0, %eax
	cmpl	$768, %ecx                      ## imm = 0x300
	jge	LBB0_5
## %bb.4:
	movq	_RTW_DPK_GAIN_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	testl	%r14d, %r14d
	cmovnel	%edx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_DPK_DAGC,4,2               ## @RTW_DPK_DAGC
	.comm	_RTW_DPK_GAIN_LESS,4,2          ## @RTW_DPK_GAIN_LESS
	.comm	_RTW_DPK_GAIN_LARGE,4,2         ## @RTW_DPK_GAIN_LARGE
	.no_dead_strip	_rtw8822c_dpk_agc_gain_chk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_agc_gain_chk
_rtw8822c_dpk_agc_gain_chk:             ; @rtw8822c_dpk_agc_gain_chk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RTW_DPK_DAGC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_DPK_DAGC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_rtw8822c_dpk_one_shot
	mov	x0, x21
	mov	x1, x20
	bl	_rtw8822c_dpk_dgain_read
	cbnz	w19, LBB0_3
; %bb.1:
	cmp	w0, #1536
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _RTW_DPK_GAIN_LESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTW_DPK_GAIN_LESS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	cmp	w0, #767
	ccmp	w19, #0, #0, le
Lloh6:
	adrp	x8, _RTW_DPK_GAIN_LARGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTW_DPK_GAIN_LARGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	csel	w0, wzr, w8, ne
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_DPK_DAGC,4,2               ; @RTW_DPK_DAGC
	.comm	_RTW_DPK_GAIN_LESS,4,2          ; @RTW_DPK_GAIN_LESS
	.comm	_RTW_DPK_GAIN_LARGE,4,2         ; @RTW_DPK_GAIN_LARGE
	.no_dead_strip	_rtw8822c_dpk_agc_gain_chk
.subsections_via_symbols
