	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_enable_disable
_rtw8822c_dpk_enable_disable:           ## @rtw8822c_dpk_enable_disable
	.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, %rbx
	movl	$15, %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	$14, %edi
	callq	_BIT
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movq	_REG_NCTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_SUBPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$12, %ecx
	callq	_rtw_write32_mask
	movq	_REG_DPD_CTL1_S0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_BIT_DPD_EN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_rtw_write32_mask
	movq	_REG_DPD_CTL1_S1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_rtw_write32_mask
	movq	_RF_PATH_A@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	16(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movq	_REG_DPD_CTL0_S0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	callq	_rtw_write8
LBB0_2:
	movq	_RF_PATH_B@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movl	16(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movq	_REG_DPD_CTL0_S1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_write8                     ## TAILCALL
LBB0_3:
	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	_BIT_SUBPAGE,4,2                ## @BIT_SUBPAGE
	.comm	_REG_DPD_CTL1_S0,4,2            ## @REG_DPD_CTL1_S0
	.comm	_BIT_DPD_EN,4,2                 ## @BIT_DPD_EN
	.comm	_REG_DPD_CTL1_S1,4,2            ## @REG_DPD_CTL1_S1
	.comm	_RF_PATH_A,8,3                  ## @RF_PATH_A
	.comm	_REG_DPD_CTL0_S0,4,2            ## @REG_DPD_CTL0_S0
	.comm	_RF_PATH_B,8,3                  ## @RF_PATH_B
	.comm	_REG_DPD_CTL0_S1,4,2            ## @REG_DPD_CTL0_S1
	.no_dead_strip	_rtw8822c_dpk_enable_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_enable_disable
_rtw8822c_dpk_enable_disable:           ; @rtw8822c_dpk_enable_disable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w0, #15
	bl	_BIT
	mov	x20, x0
	mov	w0, #14
	bl	_BIT
	orr	w20, w0, w20
Lloh0:
	adrp	x8, _REG_NCTL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_NCTL0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BIT_SUBPAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIT_SUBPAGE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #12
	bl	_rtw_write32_mask
Lloh6:
	adrp	x22, _REG_DPD_CTL1_S0@GOTPAGE
Lloh7:
	ldr	x22, [x22, _REG_DPD_CTL1_S0@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh8:
	adrp	x23, _BIT_DPD_EN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _BIT_DPD_EN@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w3, [x19]
	mov	x0, x19
	bl	_rtw_write32_mask
Lloh10:
	adrp	x21, _REG_DPD_CTL1_S1@GOTPAGE
Lloh11:
	ldr	x21, [x21, _REG_DPD_CTL1_S1@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x23]
	ldr	w3, [x19]
	mov	x0, x19
	bl	_rtw_write32_mask
Lloh12:
	adrp	x23, _RF_PATH_A@GOTPAGE
Lloh13:
	ldr	x23, [x23, _RF_PATH_A@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	w1, [x19, #16]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_rtw_write32_mask
Lloh14:
	adrp	x8, _REG_DPD_CTL0_S0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_DPD_CTL0_S0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_rtw_write8
LBB0_2:
Lloh17:
	adrp	x22, _RF_PATH_B@GOTPAGE
Lloh18:
	ldr	x22, [x22, _RF_PATH_B@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	w1, [x19, #16]
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_rtw_write32_mask
Lloh19:
	adrp	x8, _REG_DPD_CTL0_S1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REG_DPD_CTL0_S1@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtw_write8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_NCTL0,4,2                  ; @REG_NCTL0
	.comm	_BIT_SUBPAGE,4,2                ; @BIT_SUBPAGE
	.comm	_REG_DPD_CTL1_S0,4,2            ; @REG_DPD_CTL1_S0
	.comm	_BIT_DPD_EN,4,2                 ; @BIT_DPD_EN
	.comm	_REG_DPD_CTL1_S1,4,2            ; @REG_DPD_CTL1_S1
	.comm	_RF_PATH_A,8,3                  ; @RF_PATH_A
	.comm	_REG_DPD_CTL0_S0,4,2            ; @REG_DPD_CTL0_S0
	.comm	_RF_PATH_B,8,3                  ; @RF_PATH_B
	.comm	_REG_DPD_CTL0_S1,4,2            ; @REG_DPD_CTL0_S1
	.no_dead_strip	_rtw8822c_dpk_enable_disable
.subsections_via_symbols
