	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_agc_loss_chk
_rtw8822c_dpk_agc_loss_chk:             ## @rtw8822c_dpk_agc_loss_chk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_rtw8822c_dpk_pas_read
	cmpl	$67108864, %eax                 ## imm = 0x4000000
	jl	LBB0_5
## %bb.1:
	shrl	$13, %eax
	movl	%eax, %edi
	callq	_rtw8822c_psd_log2base
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	cmpl	$4870, %eax                     ## imm = 0x1306
	jle	LBB0_3
## %bb.2:
	movq	_RTW_DPK_GL_LARGE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	cmpl	$4120, %eax                     ## imm = 0x1018
	jge	LBB0_4
LBB0_5:
	movq	_RTW_DPK_GL_LESS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_RTW_DPK_AGC_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_DPK_GL_LESS,4,2            ## @RTW_DPK_GL_LESS
	.comm	_RTW_DPK_GL_LARGE,4,2           ## @RTW_DPK_GL_LARGE
	.comm	_RTW_DPK_AGC_OUT,4,2            ## @RTW_DPK_AGC_OUT
	.no_dead_strip	_rtw8822c_dpk_agc_loss_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_loss_chk
_rtw8822c_dpk_agc_loss_chk:             ; @rtw8822c_dpk_agc_loss_chk
	.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
	bl	_rtw8822c_dpk_pas_read
Lloh0:
	adrp	x19, _RTW_DPK_GL_LESS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _RTW_DPK_GL_LESS@GOTPAGEOFF]
	mov	w8, #67108864
	cmp	w0, w8
	b.lt	LBB0_2
; %bb.1:
	lsr	w0, w0, #13
	bl	_rtw8822c_psd_log2base
	add	w8, w0, w0, lsl #1
Lloh2:
	adrp	x9, _RTW_DPK_GL_LARGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RTW_DPK_GL_LARGE@GOTPAGEOFF]
Lloh4:
	adrp	x10, _RTW_DPK_AGC_OUT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _RTW_DPK_AGC_OUT@GOTPAGEOFF]
	mov	w11, #4870
	mov	w12, #4120
	cmp	w8, w12
	csel	x10, x19, x10, lt
	cmp	w8, w11
	csel	x19, x9, x10, gt
LBB0_2:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_DPK_GL_LESS,4,2            ; @RTW_DPK_GL_LESS
	.comm	_RTW_DPK_GL_LARGE,4,2           ; @RTW_DPK_GL_LARGE
	.comm	_RTW_DPK_AGC_OUT,4,2            ; @RTW_DPK_AGC_OUT
	.no_dead_strip	_rtw8822c_dpk_agc_loss_chk
.subsections_via_symbols
