	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_rf_dac_cal
_rtw8822c_rf_dac_cal:                   ## @rtw8822c_rf_dac_cal
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DACK_RF_8822C@GOTPCREL(%rip), %rcx
	movq	_DACK_PATH_8822C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rcx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_DACK_REG_8822C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -84(%rbp)
	movl	$0, -80(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_restore
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%r14, %rdx
	callq	_rtw8822c_dac_backup_reg
	movq	%r13, %rdi
	callq	_rtw8822c_dac_bb_setting
	movq	_RF_PATH_A@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-72(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_adc
	movl	$9, %ebx
	leaq	-52(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_step1
	movl	(%r14), %esi
	movq	%r13, %rdi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_rtw8822c_dac_cal_step2
	movl	-56(%rbp), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	-52(%rbp), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	(%r14), %esi
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %ecx
	movq	%r13, %rdi
	movq	%r12, %r8
	movq	%r15, %r9
	leaq	-84(%rbp), %rax
	pushq	%rax
	leaq	-88(%rbp), %rax
	pushq	%rax
	callq	_rtw8822c_dac_cal_step3
	addq	$16, %rsp
	cmpl	$5, -56(%rbp)
	setl	%cl
	cmpl	$5, -52(%rbp)
	setl	%dl
	subl	$1, %ebx
	setb	%al
	testb	%dl, %cl
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	je	LBB0_2
LBB0_4:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_step4
	movq	_RF_PATH_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_adc
	movl	$9, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RF_PATH_B@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_step1
	movl	(%r14), %esi
	movq	%r13, %rdi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdx
	leaq	-52(%rbp), %r15
	movq	%r15, %rcx
	callq	_rtw8822c_dac_cal_step2
	movl	-56(%rbp), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %ecx
	movq	%r13, %rdi
	movq	%r12, %r8
	movq	%r15, %r9
	leaq	-76(%rbp), %rax
	pushq	%rax
	leaq	-80(%rbp), %rax
	pushq	%rax
	callq	_rtw8822c_dac_cal_step3
	addq	$16, %rsp
	cmpl	$5, -56(%rbp)
	setl	%cl
	cmpl	$5, -52(%rbp)
	setl	%dl
	subl	$1, %ebx
	setb	%al
	testb	%dl, %cl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	%al, %al
	je	LBB0_5
LBB0_7:
	movq	_RF_PATH_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_step4
	movq	%r13, %rdi
	movl	$6912, %esi                     ## imm = 0x1B00
	movl	$8, %edx
	callq	_rtw_write32
	movl	$30, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	$16688, %esi                    ## imm = 0x4130
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movq	%r13, %rdi
	movl	$7116, %esi                     ## imm = 0x1BCC
	xorl	%edx, %edx
	callq	_rtw_write8
	movq	%r13, %rdi
	movl	$6912, %esi                     ## imm = 0x1B00
	movl	$10, %edx
	callq	_rtw_write32
	movq	%r13, %rdi
	movl	$7116, %esi                     ## imm = 0x1BCC
	xorl	%edx, %edx
	callq	_rtw_write8
	movq	%r13, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	callq	_rtw8822c_dac_restore_reg
	movq	%r13, %rdi
	callq	_rtw8822c_dac_cal_backup
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	movl	-100(%rbp), %r8d                ## 4-byte Reload
	callq	_rtw_dbg
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	callq	_rtw_dbg
	movl	(%rbx), %esi
	movl	-88(%rbp), %ecx
	movl	-84(%rbp), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	_rtw_dbg
	movl	(%rbx), %esi
	movl	-80(%rbp), %ecx
	movl	-76(%rbp), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	callq	_rtw_dbg
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DACK_RF_8822C,4,2              ## @DACK_RF_8822C
	.comm	_DACK_PATH_8822C,4,2            ## @DACK_PATH_8822C
	.comm	_DACK_REG_8822C,4,2             ## @DACK_REG_8822C
	.comm	_RF_PATH_A,4,2                  ## @RF_PATH_A
	.comm	_RF_PATH_B,4,2                  ## @RF_PATH_B
	.comm	_RTW_DBG_RFK,4,2                ## @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DACK] path A: ic=0x%x, qc=0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"[DACK] path B: ic=0x%x, qc=0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"[DACK] path A: i=0x%x, q=0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"[DACK] path B: i=0x%x, q=0x%x\n"

	.no_dead_strip	_rtw8822c_rf_dac_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_rf_dac_cal
_rtw8822c_rf_dac_cal:                   ; @rtw8822c_rf_dac_cal
	.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
	sub	sp, sp, #48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _DACK_RF_8822C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DACK_RF_8822C@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DACK_PATH_8822C@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DACK_PATH_8822C@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	mul	w8, w9, w8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
Lloh11:
	adrp	x8, _DACK_REG_8822C@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DACK_REG_8822C@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	stp	xzr, xzr, [x29, #-104]
	stp	xzr, xzr, [x29, #-120]
	stur	xzr, [x29, #-128]
	bl	_rtw8822c_dac_cal_restore
	cbnz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_rtw8822c_dac_backup_reg
	mov	x0, x19
	bl	_rtw8822c_dac_bb_setting
Lloh16:
	adrp	x24, _RF_PATH_A@GOTPAGE
Lloh17:
	ldr	x24, [x24, _RF_PATH_A@GOTPAGEOFF]
	ldr	w1, [x24]
	sub	x2, x29, #116
	sub	x3, x29, #120
	mov	x0, x19
	bl	_rtw8822c_dac_cal_adc
	mov	w25, #9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step1
	ldr	w1, [x24]
	sub	x2, x29, #92
	sub	x3, x29, #96
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step2
	ldp	w23, w22, [x29, #-96]
	ldr	w1, [x24]
	ldp	w3, w2, [x29, #-120]
	sub	x4, x29, #92
	sub	x5, x29, #96
	sub	x6, x29, #100
	sub	x7, x29, #104
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step3
	ldp	w9, w8, [x29, #-96]
	cmp	w9, #5
	ccmp	w8, #5, #0, lt
	ccmp	w25, #0, #4, ge
	sub	w25, w25, #1
	b.ne	LBB0_2
; %bb.3:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step4
Lloh18:
	adrp	x26, _RF_PATH_B@GOTPAGE
Lloh19:
	ldr	x26, [x26, _RF_PATH_B@GOTPAGEOFF]
	ldr	w1, [x26]
	sub	x2, x29, #124
	sub	x3, x29, #128
	mov	x0, x19
	bl	_rtw8822c_dac_cal_adc
	mov	w27, #9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step1
	ldr	w1, [x26]
	sub	x2, x29, #92
	sub	x3, x29, #96
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step2
	ldp	w25, w24, [x29, #-96]
	ldr	w1, [x26]
	ldp	w3, w2, [x29, #-128]
	sub	x4, x29, #92
	sub	x5, x29, #96
	sub	x6, x29, #108
	sub	x7, x29, #112
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step3
	ldp	w9, w8, [x29, #-96]
	cmp	w9, #5
	ccmp	w8, #5, #0, lt
	ccmp	w27, #0, #4, ge
	sub	w27, w27, #1
	b.ne	LBB0_4
; %bb.5:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rtw8822c_dac_cal_step4
	mov	x0, x19
	mov	w1, #6912
	mov	w2, #8
	bl	_rtw_write32
	mov	w0, #30
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #16688
	mov	w3, #1
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	w1, #7116
	mov	w2, #0
	bl	_rtw_write8
	mov	x0, x19
	mov	w1, #6912
	mov	w2, #10
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #7116
	mov	w2, #0
	bl	_rtw_write8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_rtw8822c_dac_restore_reg
	mov	x0, x19
	bl	_rtw8822c_dac_cal_backup
Lloh20:
	adrp	x20, _RTW_DBG_RFK@GOTPAGE
Lloh21:
	ldr	x20, [x20, _RTW_DBG_RFK@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x23
	bl	_rtw_dbg
	ldr	w1, [x20]
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	mov	x4, x25
	bl	_rtw_dbg
	ldr	w1, [x20]
	ldp	w4, w3, [x29, #-104]
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_rtw_dbg
	ldr	w1, [x20]
	ldp	w4, w3, [x29, #-112]
Lloh28:
	adrp	x2, l_.str.3@PAGE
Lloh29:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_rtw_dbg
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #80
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_DACK_RF_8822C,4,2              ; @DACK_RF_8822C
	.comm	_DACK_PATH_8822C,4,2            ; @DACK_PATH_8822C
	.comm	_DACK_REG_8822C,4,2             ; @DACK_REG_8822C
	.comm	_RF_PATH_A,4,2                  ; @RF_PATH_A
	.comm	_RF_PATH_B,4,2                  ; @RF_PATH_B
	.comm	_RTW_DBG_RFK,4,2                ; @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DACK] path A: ic=0x%x, qc=0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"[DACK] path B: ic=0x%x, qc=0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"[DACK] path A: i=0x%x, q=0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"[DACK] path B: i=0x%x, q=0x%x\n"

	.no_dead_strip	_rtw8822c_rf_dac_cal
.subsections_via_symbols
