	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_reload_data
_rtw8822c_dpk_reload_data:              ## @rtw8822c_dpk_reload_data
	.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	_RF_PATH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_RF_PATH_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_9
LBB0_3:
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.4:
	xorl	%r12d, %r12d
	movq	_REG_NCTL0@GOTPCREL(%rip), %r13
	movq	_BIT_SUBPAGE@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %esi
	movq	_BIT_GS_PWSF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r14, %rdi
	callq	_rtw_write32_mask
	incq	%rbx
	movslq	(%r14), %rax
	addl	$2, %r12d
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r15), %edx
	movl	%r12d, %ecx
	orl	$8, %ecx
	movq	%r14, %rdi
	callq	_rtw_write32_mask
	movq	16(%r14), %rax
	movq	_RTW_BAND_2G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_REG_DPD_LUT3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$520945664, %edx                ## imm = 0x1F0D0000
	movl	$521142272, %eax                ## imm = 0x1F100000
	cmovel	%eax, %edx
	movq	%r14, %rdi
	callq	_rtw_write32
	movq	_REG_DPD_AGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_rtw_write8
	movl	32(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rtw8822c_dpk_coef_write
	movq	_RTW_DPK_DPK_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rtw8822c_dpk_one_shot
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$12, %ecx
	callq	_rtw_write32_mask
	movq	_RF_PATH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_REG_DPD_CTL0_S1@GOTPCREL(%rip), %rax
	cmpq	%rcx, %rbx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_REG_DPD_CTL0_S0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw8822c_dpk_cal_coef1         ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_PATH_A,4,2                  ## @RF_PATH_A
	.comm	_RF_PATH_B,4,2                  ## @RF_PATH_B
	.comm	_REG_NCTL0,4,2                  ## @REG_NCTL0
	.comm	_BIT_SUBPAGE,4,2                ## @BIT_SUBPAGE
	.comm	_RTW_BAND_2G,8,3                ## @RTW_BAND_2G
	.comm	_REG_DPD_LUT3,4,2               ## @REG_DPD_LUT3
	.comm	_REG_DPD_AGC,4,2                ## @REG_DPD_AGC
	.comm	_RTW_DPK_DPK_ON,4,2             ## @RTW_DPK_DPK_ON
	.comm	_REG_DPD_CTL0_S0,4,2            ## @REG_DPD_CTL0_S0
	.comm	_BIT_GS_PWSF,4,2                ## @BIT_GS_PWSF
	.comm	_REG_DPD_CTL0_S1,4,2            ## @REG_DPD_CTL0_S1
	.no_dead_strip	_rtw8822c_dpk_reload_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_reload_data
_rtw8822c_dpk_reload_data:              ; @rtw8822c_dpk_reload_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _RF_PATH_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_test_bit
	cbnz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _RF_PATH_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RF_PATH_B@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_test_bit
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w22, #0
	mov	x20, #0
Lloh6:
	adrp	x23, _REG_NCTL0@GOTPAGE
Lloh7:
	ldr	x23, [x23, _REG_NCTL0@GOTPAGEOFF]
Lloh8:
	adrp	x24, _BIT_SUBPAGE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _BIT_SUBPAGE@GOTPAGEOFF]
Lloh10:
	adrp	x25, _RTW_DPK_DPK_ON@GOTPAGE
Lloh11:
	ldr	x25, [x25, _RTW_DPK_DPK_ON@GOTPAGEOFF]
Lloh12:
	adrp	x26, _REG_DPD_CTL0_S0@GOTPAGE
Lloh13:
	ldr	x26, [x26, _REG_DPD_CTL0_S0@GOTPAGEOFF]
Lloh14:
	adrp	x27, _REG_DPD_CTL0_S1@GOTPAGE
Lloh15:
	ldr	x27, [x27, _REG_DPD_CTL0_S1@GOTPAGEOFF]
Lloh16:
	adrp	x28, _BIT_GS_PWSF@GOTPAGE
Lloh17:
	ldr	x28, [x28, _BIT_GS_PWSF@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w2, [x24]
	orr	w3, w22, #0x8
	mov	x0, x19
	bl	_rtw_write32_mask
	ldr	x8, [x19, #16]
Lloh18:
	adrp	x9, _RTW_BAND_2G@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RTW_BAND_2G@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _REG_DPD_LUT3@GOTPAGE
Lloh22:
	ldr	x10, [x10, _REG_DPD_LUT3@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x10]
	cmp	x8, x9
	mov	w8, #520945664
	mov	w9, #521142272
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_rtw_write32
Lloh24:
	adrp	x8, _REG_DPD_AGC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REG_DPD_AGC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x8, [x19, #40]
	lsl	x21, x20, #2
	ldr	w2, [x8, x21]
	mov	x0, x19
	bl	_rtw_write8
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_test_bit
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rtw8822c_dpk_coef_write
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_rtw8822c_dpk_one_shot
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w3, #12
	bl	_rtw_write32_mask
Lloh27:
	adrp	x8, _RF_PATH_A@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RF_PATH_A@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	x20, x8
	csel	x8, x26, x27, eq
	ldr	w1, [x8]
	ldr	w2, [x28]
	ldr	x8, [x19, #24]
	ldr	w3, [x8, x21]
	mov	x0, x19
	bl	_rtw_write32_mask
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	w22, w22, #2
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rtw8822c_dpk_cal_coef1
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_PATH_A,4,2                  ; @RF_PATH_A
	.comm	_RF_PATH_B,4,2                  ; @RF_PATH_B
	.comm	_REG_NCTL0,4,2                  ; @REG_NCTL0
	.comm	_BIT_SUBPAGE,4,2                ; @BIT_SUBPAGE
	.comm	_RTW_BAND_2G,8,3                ; @RTW_BAND_2G
	.comm	_REG_DPD_LUT3,4,2               ; @REG_DPD_LUT3
	.comm	_REG_DPD_AGC,4,2                ; @REG_DPD_AGC
	.comm	_RTW_DPK_DPK_ON,4,2             ; @RTW_DPK_DPK_ON
	.comm	_REG_DPD_CTL0_S0,4,2            ; @REG_DPD_CTL0_S0
	.comm	_BIT_GS_PWSF,4,2                ; @BIT_GS_PWSF
	.comm	_REG_DPD_CTL0_S1,4,2            ; @REG_DPD_CTL0_S1
	.no_dead_strip	_rtw8822c_dpk_reload_data
.subsections_via_symbols
