	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_pre_setting
_rtw8822c_dpk_pre_setting:              ## @rtw8822c_dpk_pre_setting
	.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
	cmpl	$0, 8(%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	movq	_REG_IQK_CTL1@GOTPCREL(%rip), %r12
	movq	_BIT_TX_CFIR@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RF_RXAGC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RFREG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	callq	_rtw_write_rf
	movq	_REG_NCTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	orl	$8, %edx
	movq	%r14, %rdi
	callq	_rtw_write32
	movq	(%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_LUT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_GLOSS_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_rtw_write32_mask
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$3, %ecx
	callq	_rtw_write32_mask
	incl	%ebx
	addl	$2, %r15d
	cmpl	8(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_REG_NCTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_SUBPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$12, %ecx
	callq	_rtw_write32_mask
	movq	_REG_DPD_CTL11@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$992155403, %edx                ## imm = 0x3B23170B
	callq	_rtw_write32
	movq	_REG_DPD_CTL12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2002735943, %edx               ## imm = 0x775F5347
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_write32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_RXAGC_OFFSET,4,2            ## @RF_RXAGC_OFFSET
	.comm	_RFREG_MASK,4,2                 ## @RFREG_MASK
	.comm	_REG_NCTL0,4,2                  ## @REG_NCTL0
	.comm	_RTW_BAND_2G,8,3                ## @RTW_BAND_2G
	.comm	_REG_DPD_LUT3,4,2               ## @REG_DPD_LUT3
	.comm	_REG_DPD_LUT0,4,2               ## @REG_DPD_LUT0
	.comm	_BIT_GLOSS_DB,4,2               ## @BIT_GLOSS_DB
	.comm	_REG_IQK_CTL1,4,2               ## @REG_IQK_CTL1
	.comm	_BIT_TX_CFIR,4,2                ## @BIT_TX_CFIR
	.comm	_BIT_SUBPAGE,4,2                ## @BIT_SUBPAGE
	.comm	_REG_DPD_CTL11,4,2              ## @REG_DPD_CTL11
	.comm	_REG_DPD_CTL12,4,2              ## @REG_DPD_CTL12
	.no_dead_strip	_rtw8822c_dpk_pre_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_pre_setting
_rtw8822c_dpk_pre_setting:              ; @rtw8822c_dpk_pre_setting
	.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
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
	mov	w20, #0
Lloh0:
	adrp	x26, _REG_DPD_LUT3@GOTPAGE
Lloh1:
	ldr	x26, [x26, _REG_DPD_LUT3@GOTPAGEOFF]
	mov	w27, #520945664
	mov	w28, #521142272
Lloh2:
	adrp	x21, _REG_DPD_LUT0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _REG_DPD_LUT0@GOTPAGEOFF]
Lloh4:
	adrp	x23, _BIT_GLOSS_DB@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BIT_GLOSS_DB@GOTPAGEOFF]
Lloh6:
	adrp	x24, _REG_IQK_CTL1@GOTPAGE
Lloh7:
	ldr	x24, [x24, _REG_IQK_CTL1@GOTPAGEOFF]
Lloh8:
	adrp	x25, _BIT_TX_CFIR@GOTPAGE
Lloh9:
	ldr	x25, [x25, _BIT_TX_CFIR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh10:
	adrp	x8, _RF_RXAGC_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RF_RXAGC_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _RFREG_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RFREG_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	bl	_rtw_write_rf
Lloh16:
	adrp	x8, _REG_NCTL0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_NCTL0@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	orr	w2, w22, #0x8
	mov	x0, x19
	bl	_rtw_write32
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _RTW_BAND_2G@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RTW_BAND_2G@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w1, [x26]
	cmp	x8, x9
	csel	w2, w28, w27, eq
	mov	x0, x19
	bl	_rtw_write32
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #4
	bl	_rtw_write32_mask
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w3, #3
	bl	_rtw_write32_mask
	add	w20, w20, #1
	ldr	w8, [x19, #8]
	add	w22, w22, #2
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
Lloh22:
	adrp	x8, _REG_NCTL0@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REG_NCTL0@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _BIT_SUBPAGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BIT_SUBPAGE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #12
	bl	_rtw_write32_mask
Lloh28:
	adrp	x8, _REG_DPD_CTL11@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REG_DPD_CTL11@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5899
	movk	w2, #15139, lsl #16
	bl	_rtw_write32
Lloh31:
	adrp	x8, _REG_DPD_CTL12@GOTPAGE
Lloh32:
	ldr	x8, [x8, _REG_DPD_CTL12@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #21319
	movk	w2, #30559, lsl #16
	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	_rtw_write32
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_RXAGC_OFFSET,4,2            ; @RF_RXAGC_OFFSET
	.comm	_RFREG_MASK,4,2                 ; @RFREG_MASK
	.comm	_REG_NCTL0,4,2                  ; @REG_NCTL0
	.comm	_RTW_BAND_2G,8,3                ; @RTW_BAND_2G
	.comm	_REG_DPD_LUT3,4,2               ; @REG_DPD_LUT3
	.comm	_REG_DPD_LUT0,4,2               ; @REG_DPD_LUT0
	.comm	_BIT_GLOSS_DB,4,2               ; @BIT_GLOSS_DB
	.comm	_REG_IQK_CTL1,4,2               ; @REG_IQK_CTL1
	.comm	_BIT_TX_CFIR,4,2                ; @BIT_TX_CFIR
	.comm	_BIT_SUBPAGE,4,2                ; @BIT_SUBPAGE
	.comm	_REG_DPD_CTL11,4,2              ; @REG_DPD_CTL11
	.comm	_REG_DPD_CTL12,4,2              ; @REG_DPD_CTL12
	.no_dead_strip	_rtw8822c_dpk_pre_setting
.subsections_via_symbols
