	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_dc_corr_check
_rtw8822c_dpk_dc_corr_check:            ## @rtw8822c_dpk_dc_corr_check
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_REG_RXSRAM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$590064, %edx                   ## imm = 0x900F0
	callq	_rtw_write32
	movq	_REG_STAT_RPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rax, %r15
	movl	$27, %edi
	movl	$16, %esi
	callq	_GENMASK
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rtw_read32_mask
	movq	%rax, %r12
	movl	(%r15), %r15d
	movl	$11, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rtw_read32_mask
	movq	%rax, %rbx
	movl	$11, %edi
	callq	_BIT
	movl	$4096, %r13d                    ## imm = 0x1000
	movl	$4096, %r15d                    ## imm = 0x1000
	subl	%r12d, %r15d
	testl	%r12d, %eax
	cmovel	%r12d, %r15d
	movl	$11, %edi
	callq	_BIT
	subl	%ebx, %r13d
	testl	%ebx, %eax
	cmovel	%ebx, %r13d
	movq	_REG_RXSRAM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$240, %edx
	callq	_rtw_write32
	movq	_REG_STAT_RPT@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	$7, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rtw_read32_mask
	movq	%rax, %rbx
	movl	(%r12), %r12d
	movl	$15, %edi
	movl	$8, %esi
	callq	_GENMASK
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_rtw_read32_mask
	cmpl	$201, %r15d
	setge	%al
	cmpl	$201, %r13d
	setge	%cl
	orb	%al, %cl
	cmpl	$40, %ebx
	setl	%al
	cmpl	$66, %ebx
	setge	%dl
	orb	%al, %dl
	orb	%cl, %dl
	movzbl	%dl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RXSRAM_CTL,4,2             ## @REG_RXSRAM_CTL
	.comm	_REG_STAT_RPT,4,2               ## @REG_STAT_RPT
	.no_dead_strip	_rtw8822c_dpk_dc_corr_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_dc_corr_check
_rtw8822c_dpk_dc_corr_check:            ; @rtw8822c_dpk_dc_corr_check
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _REG_RXSRAM_CTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_RXSRAM_CTL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #240
	movk	w2, #9, lsl #16
	bl	_rtw_write32
Lloh2:
	adrp	x22, _REG_STAT_RPT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REG_STAT_RPT@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	w0, #27
	mov	w1, #16
	bl	_GENMASK
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rtw_read32_mask
	mov	x20, x0
	ldr	w21, [x22]
	mov	w0, #11
	mov	w1, #0
	bl	_GENMASK
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_rtw_read32_mask
	mov	x21, x0
	mov	w0, #11
	bl	_BIT
	mov	w24, #4096
	sub	w8, w24, w20
	tst	w0, w20
	csel	w25, w20, w8, eq
	mov	w0, #11
	bl	_BIT
	sub	w8, w24, w21
	tst	w0, w21
	csel	w24, w21, w8, eq
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #240
	bl	_rtw_write32
	ldr	w20, [x22]
	mov	w0, #7
	mov	w1, #0
	bl	_GENMASK
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rtw_read32_mask
	mov	x20, x0
	ldr	w21, [x22]
	mov	w0, #15
	mov	w1, #8
	bl	_GENMASK
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_rtw_read32_mask
	cmp	w25, #200
	mov	w8, #200
	ccmp	w24, w8, #0, le
	mov	w8, #40
	ccmp	w20, w8, #8, le
	mov	w8, #65
	ccmp	w20, w8, #0, ge
	cset	w0, gt
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RXSRAM_CTL,4,2             ; @REG_RXSRAM_CTL
	.comm	_REG_STAT_RPT,4,2               ; @REG_STAT_RPT
	.no_dead_strip	_rtw8822c_dpk_dc_corr_check
.subsections_via_symbols
