	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_pas_read
_rtw8822c_dpk_pas_read:                 ## @rtw8822c_dpk_pas_read
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	movq	_REG_NCTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rsi,%rsi), %edx
	orl	$8, %edx
	movl	%eax, %esi
	callq	_rtw_write32
	movl	$14, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	$6984, %esi                     ## imm = 0x1B48
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movq	_REG_RXSRAM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$393217, %edx                   ## imm = 0x60001
	callq	_rtw_write32
	movq	%r15, %rdi
	movl	$6988, %esi                     ## imm = 0x1B4C
	xorl	%edx, %edx
	callq	_rtw_write32
	movq	%r15, %rdi
	movl	$6988, %esi                     ## imm = 0x1B4C
	movl	$524288, %edx                   ## imm = 0x80000
	callq	_rtw_write32
	movq	_REG_STAT_RPT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_MASKHWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rtw_read32_mask
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movq	_MASKLWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rtw_read32_mask
	movl	%eax, %r12d
	movl	$15, %edi
	callq	_BIT
	movl	$65536, %ebx                    ## imm = 0x10000
	movl	$65536, %r13d                   ## imm = 0x10000
	subl	%r12d, %r13d
	testl	%r12d, %eax
	cmovel	%r12d, %r13d
	movl	$15, %edi
	callq	_BIT
	subl	%r14d, %ebx
	testl	%r14d, %eax
	cmovel	%r14d, %ebx
	movq	%r15, %rdi
	movl	$6988, %esi                     ## imm = 0x1B4C
	xorl	%edx, %edx
	callq	_rtw_write32
	imull	%r13d, %r13d
	imull	%ebx, %ebx
	addl	%r13d, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_NCTL0,4,2                  ## @REG_NCTL0
	.comm	_REG_RXSRAM_CTL,4,2             ## @REG_RXSRAM_CTL
	.comm	_REG_STAT_RPT,4,2               ## @REG_STAT_RPT
	.comm	_MASKHWORD,4,2                  ## @MASKHWORD
	.comm	_MASKLWORD,4,2                  ## @MASKLWORD
	.no_dead_strip	_rtw8822c_dpk_pas_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_pas_read
_rtw8822c_dpk_pas_read:                 ; @rtw8822c_dpk_pas_read
	.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, x0
Lloh0:
	adrp	x8, _REG_NCTL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_NCTL0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w9, w1, #1
	orr	w2, w9, #0x8
	mov	x1, x8
	bl	_rtw_write32
	mov	w0, #14
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #6984
	mov	w3, #0
	bl	_rtw_write32_mask
Lloh3:
	adrp	x8, _REG_RXSRAM_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_RXSRAM_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	movk	w2, #6, lsl #16
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #6988
	mov	w2, #0
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #6988
	mov	w2, #524288
	bl	_rtw_write32
Lloh6:
	adrp	x21, _REG_STAT_RPT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _REG_STAT_RPT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _MASKHWORD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MASKHWORD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_read32_mask
	mov	x20, x0
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _MASKLWORD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MASKLWORD@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_read32_mask
	mov	x21, x0
	mov	w0, #15
	bl	_BIT
	mov	w22, #65536
	sub	w8, w22, w21
	tst	w0, w21
	csel	w21, w21, w8, eq
	mov	w0, #15
	bl	_BIT
	sub	w8, w22, w20
	tst	w0, w20
	csel	w20, w20, w8, eq
	mov	x0, x19
	mov	w1, #6988
	mov	w2, #0
	bl	_rtw_write32
	mul	w8, w21, w21
	madd	w0, w20, w20, w8
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_NCTL0,4,2                  ; @REG_NCTL0
	.comm	_REG_RXSRAM_CTL,4,2             ; @REG_RXSRAM_CTL
	.comm	_REG_STAT_RPT,4,2               ; @REG_STAT_RPT
	.comm	_MASKHWORD,4,2                  ; @MASKHWORD
	.comm	_MASKLWORD,4,2                  ; @MASKLWORD
	.no_dead_strip	_rtw8822c_dpk_pas_read
.subsections_via_symbols
