	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_restore_path
_rtw8822c_dac_cal_restore_path:         ## @rtw8822c_dac_cal_restore_path
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_rtw8822c_get_path_write_addr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtw8822c_get_path_read_addr
	leaq	8(%rax), %r14
	movq	%rbx, %rdi
	callq	_rtw8822c_get_path_write_addr
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtw8822c_get_path_read_addr
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	184(%r15), %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_rtw8822c_dac_cal_restore_wait
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	$52, %r13
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_DACK_MSBK_BACKUP_NUM@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	180(%rax), %r14
	cmpq	$0, (%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
## %bb.3:
	addq	$176, -48(%rbp)                 ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$2, %edi
	callq	_BIT
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,8), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$4088, %edx                     ## imm = 0xFF8
	callq	_rtw_write32_mask
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$-268435456, %edx               ## imm = 0xF0000000
	movl	%r13d, %ecx
	callq	_rtw_write32_mask
	movl	$2, %edi
	callq	_BIT
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	incq	%r13
	cmpq	(%r15), %r13
	jb	LBB0_4
LBB0_5:
	movl	$2, %edi
	callq	_BIT
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leaq	212(%r13), %r15
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_rtw8822c_dac_cal_restore_wait
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	208(%r13), %r15
	movq	_DACK_MSBK_BACKUP_NUM@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	addq	$204, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$2, %edi
	callq	_BIT
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movq	(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,8), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4088, %edx                     ## imm = 0xFF8
	callq	_rtw_write32_mask
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	movl	%ebx, %ecx
	callq	_rtw_write32_mask
	movl	$2, %edi
	callq	_BIT
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	incq	%rbx
	movq	_DACK_MSBK_BACKUP_NUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_8
LBB0_9:
	movl	$2, %edi
	callq	_BIT
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movl	$26, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$25, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movl	$26, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$25, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	xorl	%edi, %edi
	callq	_BIT
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	xorl	%edi, %edi
	callq	_BIT
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DACK_MSBK_BACKUP_NUM,8,3       ## @DACK_MSBK_BACKUP_NUM
	.no_dead_strip	_rtw8822c_dac_cal_restore_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dac_cal_restore_path
_rtw8822c_dac_cal_restore_path:         ; @rtw8822c_dac_cal_restore_path
	.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	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_rtw8822c_get_path_write_addr
	mov	x26, x0
	mov	x0, x22
	bl	_rtw8822c_get_path_read_addr
	add	x23, x0, #8
	mov	x0, x22
	bl	_rtw8822c_get_path_write_addr
	mov	x25, x0
	mov	x0, x22
	bl	_rtw8822c_get_path_read_addr
	mov	x20, x0
	add	x21, x26, #184
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_rtw8822c_dac_cal_restore_wait
	cbz	w0, LBB0_9
; %bb.1:
	add	x23, x20, #52
Lloh0:
	adrp	x27, _DACK_MSBK_BACKUP_NUM@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DACK_MSBK_BACKUP_NUM@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x20, x26, #180
	cbz	x8, LBB0_4
; %bb.2:
	mov	x24, #0
	add	x26, x26, #176
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rtw_write32_mask
	ldr	x8, [x19]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8]
	ldr	x3, [x8, x24, lsl #3]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4088
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	x1, x26
	mov	w2, #-268435456
	mov	x3, x24
	bl	_rtw_write32_mask
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_rtw_write32_mask
	add	x24, x24, #1
	ldr	x8, [x27]
	cmp	x24, x8
	b.lo	LBB0_3
LBB0_4:
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rtw_write32_mask
	add	x24, x25, #212
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_rtw8822c_dac_cal_restore_wait
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x27]
	add	x23, x25, #208
	cbz	x8, LBB0_8
; %bb.6:
	mov	x26, #0
	add	x25, x25, #204
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_rtw_write32_mask
	ldr	x8, [x19]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x3, [x8, x26, lsl #3]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #4088
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	x1, x25
	mov	w2, #-268435456
	mov	x3, x26
	bl	_rtw_write32_mask
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #1
	bl	_rtw_write32_mask
	add	x26, x26, #1
	ldr	x8, [x27]
	cmp	x26, x8
	b.lo	LBB0_7
LBB0_8:
	mov	w0, #2
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_rtw_write32_mask
	mov	w0, #26
	bl	_BIT
	mov	x22, x0
	mov	w0, #25
	bl	_BIT
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_rtw_write32_mask
	mov	w0, #26
	bl	_BIT
	mov	x21, x0
	mov	w0, #25
	bl	_BIT
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x24
	mov	w3, #0
	bl	_rtw_write32_mask
	mov	w0, #0
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rtw_write32_mask
	mov	w0, #0
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_rtw_write32_mask
	mov	w0, #1
LBB0_9:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DACK_MSBK_BACKUP_NUM,8,3       ; @DACK_MSBK_BACKUP_NUM
	.no_dead_strip	_rtw8822c_dac_cal_restore_path
.subsections_via_symbols
