	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dpk_calibrate
_rtw8822c_dpk_calibrate:                ## @rtw8822c_dpk_calibrate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
	callq	_rtw_dbg
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rtw8822c_dpk_gainloss
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_rtw8822c_dpk_by_path
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_rtw8822c_dpk_check_pass
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rtw_err
LBB0_2:
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_rtw_dbg
	movq	8(%rbx), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_DBG_RFK,4,2                ## @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DPK] s%d dpk start\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to do dpk calibration\n"

L_.str.2:                               ## @.str.2
	.asciz	"[DPK] s%d dpk finish\n"

	.no_dead_strip	_rtw8822c_dpk_calibrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dpk_calibrate
_rtw8822c_dpk_calibrate:                ; @rtw8822c_dpk_calibrate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _RTW_DBG_RFK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RTW_DBG_RFK@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_rtw_dbg
	mov	x0, x20
	mov	x1, x19
	bl	_rtw8822c_dpk_gainloss
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_rtw8822c_dpk_by_path
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_rtw8822c_dpk_check_pass
	cbnz	w0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_rtw_err
LBB0_2:
	ldr	w1, [x22]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_rtw_dbg
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_bit
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_DBG_RFK,4,2                ; @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DPK] s%d dpk start\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to do dpk calibration\n"

l_.str.2:                               ; @.str.2
	.asciz	"[DPK] s%d dpk finish\n"

	.no_dead_strip	_rtw8822c_dpk_calibrate
.subsections_via_symbols
