	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_restore
_rtw8822c_dac_cal_restore:              ## @rtw8822c_dac_cal_restore
	.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
	movq	(%rdi), %rax
	movq	_RF_PATH_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_5
## %bb.1:
	movq	8(%rcx), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_5
## %bb.2:
	movq	_RF_PATH_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	movl	$6240, %esi                     ## imm = 0x1860
	callq	_rtw_read32
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$16736, %esi                    ## imm = 0x4160
	callq	_rtw_read32
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$2484, %esi                     ## imm = 0x9B4
	callq	_rtw_read32
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rtw8822c_dac_cal_restore_prepare
	movq	%rbx, %rdi
	movl	$10248, %esi                    ## imm = 0x2808
	movl	$8388480, %edx                  ## imm = 0x7FFF80
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_check_hw_ready
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movq	%rbx, %rdi
	movl	$10292, %esi                    ## imm = 0x2834
	movl	$8388480, %edx                  ## imm = 0x7FFF80
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_check_hw_ready
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	%rbx, %rdi
	movl	$17672, %esi                    ## imm = 0x4508
	movl	$8388480, %edx                  ## imm = 0x7FFF80
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_check_hw_ready
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movq	%rbx, %rdi
	movl	$17716, %esi                    ## imm = 0x4534
	movl	$8388480, %edx                  ## imm = 0x7FFF80
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_check_hw_ready
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	___rtw8822c_dac_cal_restore
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	$30, %edi
	callq	_BIT
	movl	$1, %r14d
	movq	%rbx, %rdi
	movl	$6192, %esi                     ## imm = 0x1830
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movl	$30, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$16688, %esi                    ## imm = 0x4130
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movq	%rbx, %rdi
	movl	$6240, %esi                     ## imm = 0x1860
	movl	%r12d, %edx
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	$16736, %esi                    ## imm = 0x4160
	movl	%r13d, %edx
	callq	_rtw_write32
	movl	$27, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$6320, %esi                     ## imm = 0x18B0
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movl	$27, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$6348, %esi                     ## imm = 0x18CC
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movl	$27, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$16816, %esi                    ## imm = 0x41B0
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movl	$27, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$16844, %esi                    ## imm = 0x41CC
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write32_mask
	movq	%rbx, %rdi
	movl	$2484, %esi                     ## imm = 0x9B4
	movl	%r15d, %edx
	callq	_rtw_write32
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rtw_err
	jmp	LBB0_12
LBB0_4:
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_PATH_A,8,3                  ## @RF_PATH_A
	.comm	_RF_PATH_B,8,3                  ## @RF_PATH_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to restore dack vectors\n"

	.no_dead_strip	_rtw8822c_dac_cal_restore
.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
_rtw8822c_dac_cal_restore:              ; @rtw8822c_dac_cal_restore
	.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
Lloh0:
	adrp	x9, _RF_PATH_A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RF_PATH_A@GOTPAGEOFF]
	ldr	x8, [x0]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	ldr	x10, [x9]
	ldr	x10, [x10]
	cbnz	x10, LBB0_4
; %bb.1:
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	cbnz	x9, LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, _RF_PATH_B@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RF_PATH_B@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x8]
	ldr	x9, [x9]
	cbnz	x9, LBB0_4
; %bb.3:
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
LBB0_4:
	mov	x0, x19
	mov	w1, #6240
	bl	_rtw_read32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #16736
	bl	_rtw_read32
	mov	x22, x0
	mov	x0, x19
	mov	w1, #2484
	bl	_rtw_read32
	mov	x20, x0
	mov	x0, x19
	bl	_rtw8822c_dac_cal_restore_prepare
	mov	x0, x19
	mov	w1, #10248
	mov	w2, #8388480
	mov	w3, #65535
	bl	_check_hw_ready
	cbz	w0, LBB0_11
; %bb.5:
	mov	x0, x19
	mov	w1, #10292
	mov	w2, #8388480
	mov	w3, #65535
	bl	_check_hw_ready
	cbz	w0, LBB0_11
; %bb.6:
	mov	x0, x19
	mov	w1, #17672
	mov	w2, #8388480
	mov	w3, #65535
	bl	_check_hw_ready
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	mov	w1, #17716
	mov	w2, #8388480
	mov	w3, #65535
	bl	_check_hw_ready
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	___rtw8822c_dac_cal_restore
	cbz	w0, LBB0_10
; %bb.9:
	mov	w0, #30
	bl	_BIT
	mov	x2, x0
	mov	w23, #1
	mov	x0, x19
	mov	w1, #6192
	mov	w3, #1
	bl	_rtw_write32_mask
	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, #6240
	mov	x2, x21
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #16736
	mov	x2, x22
	bl	_rtw_write32
	mov	w0, #27
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #6320
	mov	w3, #1
	bl	_rtw_write32_mask
	mov	w0, #27
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #6348
	mov	w3, #1
	bl	_rtw_write32_mask
	mov	w0, #27
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #16816
	mov	w3, #1
	bl	_rtw_write32_mask
	mov	w0, #27
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #16844
	mov	w3, #1
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	w1, #2484
	mov	x2, x20
	bl	_rtw_write32
	b	LBB0_12
LBB0_10:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
LBB0_11:
	mov	w23, #0
LBB0_12:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_PATH_A,8,3                  ; @RF_PATH_A
	.comm	_RF_PATH_B,8,3                  ; @RF_PATH_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to restore dack vectors\n"

	.no_dead_strip	_rtw8822c_dac_cal_restore
.subsections_via_symbols
