	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_one_shot
_rtw8822c_dpk_one_shot:                 ## @rtw8822c_dpk_one_shot
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$1, %esi
	callq	_rtw8822c_dpk_set_gnt_wl
	movq	_RTW_DPK_CAL_PWR@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_REG_DPD_CTL0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movl	$12, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movl	(%rbx), %r15d
	movl	$12, %edi
	callq	_BIT
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movq	_REG_RXSRAM_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_RPT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movl	$10, %edi
	callq	_msleep
	movq	_REG_STAT_RPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$31, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_check_hw_ready
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_rtw_dbg
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_REG_NCTL0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_BIT_SUBPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	(%r12,%r12), %r15d
	orl	$8, %r15d
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_rtw_write32_mask
	movq	_REG_R_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_IQ_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$9, %ecx
	callq	_rtw_write32_mask
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%rbx, %r12
	callq	_rtw8822c_dpk_get_cmd
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_rtw_write32
	movl	(%r12), %esi
	incq	%rbx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_rtw_write32
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	movl	$11676, %esi                    ## imm = 0x2D9C
	movl	$255, %edx
	movl	$85, %ecx
	callq	_check_hw_ready
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_5:
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_rtw_dbg
	movl	$1, %r14d
LBB0_6:
	movl	(%r12), %esi
	movq	_BIT_SUBPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_rtw_write32_mask
	movq	_REG_R_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_IQ_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
LBB0_7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_rtw8822c_dpk_set_gnt_wl
	movq	%r13, %rdi
	movl	$6928, %esi                     ## imm = 0x1B10
	xorl	%edx, %edx
	callq	_rtw_write8
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_DPK_CAL_PWR,8,3            ## @RTW_DPK_CAL_PWR
	.comm	_REG_DPD_CTL0,4,2               ## @REG_DPD_CTL0
	.comm	_REG_RXSRAM_CTL,4,2             ## @REG_RXSRAM_CTL
	.comm	_BIT_RPT_SEL,4,2                ## @BIT_RPT_SEL
	.comm	_REG_STAT_RPT,4,2               ## @REG_STAT_RPT
	.comm	_RTW_DBG_RFK,4,2                ## @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DPK] one-shot over 20ms\n"

	.comm	_REG_NCTL0,4,2                  ## @REG_NCTL0
	.comm	_BIT_SUBPAGE,4,2                ## @BIT_SUBPAGE
	.comm	_REG_R_CONFIG,4,2               ## @REG_R_CONFIG
	.comm	_BIT_IQ_SWITCH,4,2              ## @BIT_IQ_SWITCH
	.no_dead_strip	_rtw8822c_dpk_one_shot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_one_shot
_rtw8822c_dpk_one_shot:                 ; @rtw8822c_dpk_one_shot
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #1
	bl	_rtw8822c_dpk_set_gnt_wl
Lloh0:
	adrp	x8, _RTW_DPK_CAL_PWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_DPK_CAL_PWR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x21, _REG_DPD_CTL0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _REG_DPD_CTL0@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	w0, #12
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_rtw_write32_mask
	ldr	w20, [x21]
	mov	w0, #12
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rtw_write32_mask
Lloh5:
	adrp	x8, _REG_RXSRAM_CTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_RXSRAM_CTL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _BIT_RPT_SEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIT_RPT_SEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtw_write32_mask
	mov	w0, #10
	bl	_msleep
Lloh11:
	adrp	x8, _REG_STAT_RPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_STAT_RPT@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	w0, #31
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_check_hw_ready
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, #0
	b	LBB0_8
LBB0_3:
Lloh14:
	adrp	x23, _REG_NCTL0@GOTPAGE
Lloh15:
	ldr	x23, [x23, _REG_NCTL0@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh16:
	adrp	x24, _BIT_SUBPAGE@GOTPAGE
Lloh17:
	ldr	x24, [x24, _BIT_SUBPAGE@GOTPAGEOFF]
	ldr	w2, [x24]
	lsl	w8, w21, #1
	orr	w20, w8, #0x8
	mov	x0, x19
	mov	x3, x20
	bl	_rtw_write32_mask
Lloh18:
	adrp	x25, _REG_R_CONFIG@GOTPAGE
Lloh19:
	ldr	x25, [x25, _REG_R_CONFIG@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh20:
	adrp	x26, _BIT_IQ_SWITCH@GOTPAGE
Lloh21:
	ldr	x26, [x26, _BIT_IQ_SWITCH@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #9
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_rtw8822c_dpk_get_cmd
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_rtw_write32
	ldr	w1, [x23]
	add	x2, x21, #1
	mov	x0, x19
	bl	_rtw_write32
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #11676
	mov	w2, #255
	mov	w3, #85
	bl	_check_hw_ready
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, #0
	b	LBB0_7
LBB0_5:
Lloh22:
	adrp	x8, _RTW_DBG_RFK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RTW_DBG_RFK@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_dbg
	mov	w21, #1
	b	LBB0_8
LBB0_6:
Lloh27:
	adrp	x8, _RTW_DBG_RFK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RTW_DBG_RFK@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_dbg
	mov	w21, #1
LBB0_7:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x3, x20
	bl	_rtw_write32_mask
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #0
	bl	_rtw_write32_mask
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_rtw8822c_dpk_set_gnt_wl
	mov	x0, x19
	mov	w1, #6928
	mov	w2, #0
	bl	_rtw_write8
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_DPK_CAL_PWR,8,3            ; @RTW_DPK_CAL_PWR
	.comm	_REG_DPD_CTL0,4,2               ; @REG_DPD_CTL0
	.comm	_REG_RXSRAM_CTL,4,2             ; @REG_RXSRAM_CTL
	.comm	_BIT_RPT_SEL,4,2                ; @BIT_RPT_SEL
	.comm	_REG_STAT_RPT,4,2               ; @REG_STAT_RPT
	.comm	_RTW_DBG_RFK,4,2                ; @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DPK] one-shot over 20ms\n"

	.comm	_REG_NCTL0,4,2                  ; @REG_NCTL0
	.comm	_BIT_SUBPAGE,4,2                ; @BIT_SUBPAGE
	.comm	_REG_R_CONFIG,4,2               ; @REG_R_CONFIG
	.comm	_BIT_IQ_SWITCH,4,2              ; @BIT_IQ_SWITCH
	.no_dead_strip	_rtw8822c_dpk_one_shot
.subsections_via_symbols
