	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_rf_setting
_rtw8822c_dpk_rf_setting:               ## @rtw8822c_dpk_rf_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_RF_MODE_TRXAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RFREG_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	$327703, %r8d                   ## imm = 0x50017
	callq	_rtw_write_rf
	movq	_RF_TX_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rtw_read_rf
	movl	%eax, %r15d
	movq	_RF_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_BIT_DE_TX_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_rtw_write_rf
	movl	(%r12), %edx
	movq	_BIT_DE_PWR_TRIM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_rtw_write_rf
	movq	_RF_TX_GAIN_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_BIT_TX_OFFSET_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_rtw_write_rf
	movq	_RF_TX_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r8d
	callq	_rtw_write_rf
	movq	(%rbx), %rax
	movq	_RTW_BAND_2G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_BIT_RXG_GAIN@GOTPCREL(%rip), %r13
	movq	_RF_RXG_GAIN@GOTPCREL(%rip), %r15
	movq	_BIT_LB_ATT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_RF_TXA_LB_SW@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_BIT_TXA_LB_ATT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_rtw_write_rf
	movl	(%r12), %edx
	movq	_BIT_LB_ATT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$6, %r8d
	callq	_rtw_write_rf
	movq	_BIT_RXA_MIX_GAIN@GOTPCREL(%rip), %r13
	movq	_RF_RXA_MIX_GAIN@GOTPCREL(%rip), %r15
	movq	_BIT_LB_SW@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%r12), %edx
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_rtw_write_rf
	movl	(%r15), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_rtw_write_rf
	movq	_RF_MODE_TRXAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BIT_RXAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$15, %r8d
	callq	_rtw_write_rf
	movq	_RF_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BIT_DE_TRXBW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_rtw_write_rf
	movq	_RF_BW_TRXBB@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_BIT_BW_RXBB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_rtw_write_rf
	movq	8(%rbx), %rax
	movq	_DPK_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rcx
	xorl	%r8d, %r8d
	cmpq	(%rcx), %rax
	sete	%r8b
	incl	%r8d
	movl	(%r15), %edx
	movq	_BIT_BW_TXBB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rtw_write_rf
	movq	_RF_EXT_TIA_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$1, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_rtw_write_rf
	movl	$100, %edi
	movl	$110, %esi
	callq	_usleep_range
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	$31, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_MODE_TRXAGC,4,2             ## @RF_MODE_TRXAGC
	.comm	_RFREG_MASK,4,2                 ## @RFREG_MASK
	.comm	_RF_TX_GAIN,4,2                 ## @RF_TX_GAIN
	.comm	_RF_DEBUG,4,2                   ## @RF_DEBUG
	.comm	_BIT_DE_TX_GAIN,4,2             ## @BIT_DE_TX_GAIN
	.comm	_BIT_DE_PWR_TRIM,4,2            ## @BIT_DE_PWR_TRIM
	.comm	_RF_TX_GAIN_OFFSET,4,2          ## @RF_TX_GAIN_OFFSET
	.comm	_BIT_TX_OFFSET_VAL,4,2          ## @BIT_TX_OFFSET_VAL
	.comm	_RTW_BAND_2G,8,3                ## @RTW_BAND_2G
	.comm	_BIT_LB_ATT,4,2                 ## @BIT_LB_ATT
	.comm	_RF_RXG_GAIN,4,2                ## @RF_RXG_GAIN
	.comm	_BIT_RXG_GAIN,4,2               ## @BIT_RXG_GAIN
	.comm	_RF_TXA_LB_SW,4,2               ## @RF_TXA_LB_SW
	.comm	_BIT_TXA_LB_ATT,4,2             ## @BIT_TXA_LB_ATT
	.comm	_BIT_LB_SW,4,2                  ## @BIT_LB_SW
	.comm	_RF_RXA_MIX_GAIN,4,2            ## @RF_RXA_MIX_GAIN
	.comm	_BIT_RXA_MIX_GAIN,4,2           ## @BIT_RXA_MIX_GAIN
	.comm	_BIT_RXAGC,4,2                  ## @BIT_RXAGC
	.comm	_BIT_DE_TRXBW,4,2               ## @BIT_DE_TRXBW
	.comm	_RF_BW_TRXBB,4,2                ## @RF_BW_TRXBB
	.comm	_BIT_BW_RXBB,4,2                ## @BIT_BW_RXBB
	.comm	_DPK_CHANNEL_WIDTH_80,8,3       ## @DPK_CHANNEL_WIDTH_80
	.comm	_BIT_BW_TXBB,4,2                ## @BIT_BW_TXBB
	.comm	_RF_EXT_TIA_BW,4,2              ## @RF_EXT_TIA_BW
	.no_dead_strip	_rtw8822c_dpk_rf_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_rf_setting
_rtw8822c_dpk_rf_setting:               ; @rtw8822c_dpk_rf_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, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _RF_MODE_TRXAGC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RF_MODE_TRXAGC@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x26, _RFREG_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RFREG_MASK@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	w4, #23
	movk	w4, #5, lsl #16
	bl	_rtw_write_rf
Lloh4:
	adrp	x27, _RF_TX_GAIN@GOTPAGE
Lloh5:
	ldr	x27, [x27, _RF_TX_GAIN@GOTPAGEOFF]
	ldr	w2, [x27]
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x19
	bl	_rtw_read_rf
	mov	x21, x0
Lloh6:
	adrp	x24, _RF_DEBUG@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RF_DEBUG@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh8:
	adrp	x8, _BIT_DE_TX_GAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIT_DE_TX_GAIN@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	w22, #1
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_rtw_write_rf
	ldr	w2, [x24]
Lloh11:
	adrp	x8, _BIT_DE_PWR_TRIM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIT_DE_PWR_TRIM@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_rtw_write_rf
Lloh14:
	adrp	x25, _RF_TX_GAIN_OFFSET@GOTPAGE
Lloh15:
	ldr	x25, [x25, _RF_TX_GAIN_OFFSET@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh16:
	adrp	x8, _BIT_TX_OFFSET_VAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BIT_TX_OFFSET_VAL@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_rtw_write_rf
	ldr	w2, [x27]
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_rtw_write_rf
	ldr	x8, [x20]
Lloh19:
	adrp	x9, _RTW_BAND_2G@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RTW_BAND_2G@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x26, _BIT_LB_ATT@GOTPAGE
Lloh23:
	ldr	x26, [x26, _BIT_LB_ATT@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh24:
	adrp	x27, _BIT_RXG_GAIN@GOTPAGE
Lloh25:
	ldr	x27, [x27, _BIT_RXG_GAIN@GOTPAGEOFF]
Lloh26:
	adrp	x28, _RF_RXG_GAIN@GOTPAGE
Lloh27:
	ldr	x28, [x28, _RF_RXG_GAIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh28:
	adrp	x25, _RF_TXA_LB_SW@GOTPAGE
Lloh29:
	ldr	x25, [x25, _RF_TXA_LB_SW@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh30:
	adrp	x8, _BIT_TXA_LB_ATT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BIT_TXA_LB_ATT@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_rtw_write_rf
	ldr	w2, [x25]
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #6
	bl	_rtw_write_rf
Lloh33:
	adrp	x27, _BIT_RXA_MIX_GAIN@GOTPAGE
Lloh34:
	ldr	x27, [x27, _BIT_RXA_MIX_GAIN@GOTPAGEOFF]
Lloh35:
	adrp	x28, _RF_RXA_MIX_GAIN@GOTPAGE
Lloh36:
	ldr	x28, [x28, _RF_RXA_MIX_GAIN@GOTPAGEOFF]
Lloh37:
	adrp	x26, _BIT_LB_SW@GOTPAGE
Lloh38:
	ldr	x26, [x26, _BIT_LB_SW@GOTPAGEOFF]
LBB0_3:
	ldr	w2, [x25]
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_rtw_write_rf
	ldr	w2, [x28]
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_rtw_write_rf
	ldr	w2, [x23]
Lloh39:
	adrp	x8, _BIT_RXAGC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BIT_RXAGC@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #15
	bl	_rtw_write_rf
	ldr	w2, [x24]
Lloh42:
	adrp	x8, _BIT_DE_TRXBW@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BIT_DE_TRXBW@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_rtw_write_rf
Lloh45:
	adrp	x23, _RF_BW_TRXBB@GOTPAGE
Lloh46:
	ldr	x23, [x23, _RF_BW_TRXBB@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh47:
	adrp	x8, _BIT_BW_RXBB@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BIT_BW_RXBB@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_rtw_write_rf
	ldr	x8, [x20, #8]
Lloh50:
	adrp	x9, _DPK_CHANNEL_WIDTH_80@GOTPAGE
Lloh51:
	ldr	x9, [x9, _DPK_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x8, x9
	cinc	w4, w22, eq
	ldr	w2, [x23]
Lloh53:
	adrp	x8, _BIT_BW_TXBB@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BIT_BW_TXBB@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_rtw_write_rf
Lloh56:
	adrp	x8, _RF_EXT_TIA_BW@GOTPAGE
Lloh57:
	ldr	x8, [x8, _RF_EXT_TIA_BW@GOTPAGEOFF]
Lloh58:
	ldr	w22, [x8]
	mov	w0, #1
	bl	_BIT
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w4, #1
	bl	_rtw_write_rf
	mov	w0, #100
	mov	w1, #110
	bl	_usleep_range
	and	w0, w21, #0x1f
	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 AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_MODE_TRXAGC,4,2             ; @RF_MODE_TRXAGC
	.comm	_RFREG_MASK,4,2                 ; @RFREG_MASK
	.comm	_RF_TX_GAIN,4,2                 ; @RF_TX_GAIN
	.comm	_RF_DEBUG,4,2                   ; @RF_DEBUG
	.comm	_BIT_DE_TX_GAIN,4,2             ; @BIT_DE_TX_GAIN
	.comm	_BIT_DE_PWR_TRIM,4,2            ; @BIT_DE_PWR_TRIM
	.comm	_RF_TX_GAIN_OFFSET,4,2          ; @RF_TX_GAIN_OFFSET
	.comm	_BIT_TX_OFFSET_VAL,4,2          ; @BIT_TX_OFFSET_VAL
	.comm	_RTW_BAND_2G,8,3                ; @RTW_BAND_2G
	.comm	_BIT_LB_ATT,4,2                 ; @BIT_LB_ATT
	.comm	_RF_RXG_GAIN,4,2                ; @RF_RXG_GAIN
	.comm	_BIT_RXG_GAIN,4,2               ; @BIT_RXG_GAIN
	.comm	_RF_TXA_LB_SW,4,2               ; @RF_TXA_LB_SW
	.comm	_BIT_TXA_LB_ATT,4,2             ; @BIT_TXA_LB_ATT
	.comm	_BIT_LB_SW,4,2                  ; @BIT_LB_SW
	.comm	_RF_RXA_MIX_GAIN,4,2            ; @RF_RXA_MIX_GAIN
	.comm	_BIT_RXA_MIX_GAIN,4,2           ; @BIT_RXA_MIX_GAIN
	.comm	_BIT_RXAGC,4,2                  ; @BIT_RXAGC
	.comm	_BIT_DE_TRXBW,4,2               ; @BIT_DE_TRXBW
	.comm	_RF_BW_TRXBB,4,2                ; @RF_BW_TRXBB
	.comm	_BIT_BW_RXBB,4,2                ; @BIT_BW_RXBB
	.comm	_DPK_CHANNEL_WIDTH_80,8,3       ; @DPK_CHANNEL_WIDTH_80
	.comm	_BIT_BW_TXBB,4,2                ; @BIT_BW_TXBB
	.comm	_RF_EXT_TIA_BW,4,2              ; @RF_EXT_TIA_BW
	.no_dead_strip	_rtw8822c_dpk_rf_setting
.subsections_via_symbols
