	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_step3
_rtw8822c_dac_cal_step3:                ## @rtw8822c_dac_cal_step3
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r13
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_rtw8822c_get_path_write_addr
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_rtw8822c_get_path_read_addr
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, %ebx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, -44(%rbp)
	leal	12(%r12), %esi
	movq	%r15, %rdi
	movl	$-537918944, %edx               ## imm = 0xDFF00220
	callq	_rtw_write32
	leal	16(%r12), %esi
	movq	%r15, %rdi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	$47515845, %edx                 ## imm = 0x2D508C5
	callq	_rtw_write32
	movq	%r15, %rdi
	movl	$2484, %esi                     ## imm = 0x9B4
	movl	$-614016256, %edx               ## imm = 0xDB66DB00
	callq	_rtw_write32
	leal	176(%r12), %esi
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$168950664, %edx                ## imm = 0xA11FB88
	callq	_rtw_write32
	leal	188(%r12), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	$-1073152127, %edx              ## imm = 0xC008FF81
	callq	_rtw_write32
	leal	192(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$250376, %edx                   ## imm = 0x3D208
	callq	_rtw_write32
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	andl	$15, %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_rtw_write32_mask
	movl	%ebx, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$15, %edx
	callq	_rtw_write32_mask
	leal	204(%r12), %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	$168950664, %edx                ## imm = 0xA11FB88
	callq	_rtw_write32
	leal	216(%r12), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$-536281215, %edx               ## imm = 0xE008FF81
	callq	_rtw_write32
	leal	220(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$250376, %edx                   ## imm = 0x3D208
	callq	_rtw_write32
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	andl	$15, %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_rtw_write32_mask
	movl	%r13d, %ecx
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	shrl	$4, %ecx
	andl	$15, %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$15, %edx
	callq	_rtw_write32_mask
	leal	184(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1610612736, %edx               ## imm = 0x60000000
	callq	_rtw_write32
	movl	$2, %edi
	callq	_mdelay
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$14, %edx
	movl	$6, %ecx
	callq	_rtw_write32_mask
	movl	$2, %edi
	callq	_mdelay
	movq	%r15, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	$168950665, %edx                ## imm = 0xA11FB89
	callq	_rtw_write32
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	$168950665, %edx                ## imm = 0xA11FB89
	callq	_rtw_write32
	movl	$1, %edi
	callq	_mdelay
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1644167168, %edx               ## imm = 0x62000000
	callq	_rtw_write32
	leal	212(%r12), %esi
	movq	%r15, %rdi
	movl	$1644167168, %edx               ## imm = 0x62000000
	callq	_rtw_write32
	movl	$20, %edi
	callq	_mdelay
	leal	36(%rbx), %esi
	movq	%r15, %rdi
	movl	$133693440, %edx                ## imm = 0x7F80000
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_check_hw_ready
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addl	$80, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$133693440, %edx                ## imm = 0x7F80000
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_check_hw_ready
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_rtw_err
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$33554432, %edx                 ## imm = 0x2000000
	callq	_rtw_write32
	movl	$1, %edi
	callq	_mdelay
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$14, %edx
	movl	$3, %ecx
	callq	_rtw_write32_mask
	movq	%r15, %rdi
	movl	$2484, %esi                     ## imm = 0x9B4
	movl	$-613566976, %edx               ## imm = 0xDB6DB600
	callq	_rtw_write32
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	addl	$16, %eax
	andl	$1023, %eax                     ## imm = 0x3FF
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	shll	$10, %edx
	addl	$16384, %edx                    ## imm = 0x4000
	andl	$1047552, %edx                  ## imm = 0xFFC00
	orl	%eax, %edx
	leal	104(%r12), %esi
	movq	%r15, %rdi
	callq	_rtw_write32
	movq	%r15, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	$47515845, %edx                 ## imm = 0x2D508C5
	callq	_rtw_write32
	addl	$96, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_rtw_write32
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_rtw8822c_dac_cal_rf_mode
	movl	-48(%rbp), %eax
	xorl	%ecx, %ecx
	cmpl	$16, %eax
	setl	%cl
	shll	$10, %ecx
	addl	%ecx, %eax
	addl	$-16, %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %ecx
	xorl	%edx, %edx
	cmpl	$16, %ecx
	setl	%dl
	shll	$10, %edx
	addl	%edx, %ecx
	addl	$-16, %ecx
	movl	%ecx, -44(%rbp)
	movq	16(%rbp), %rbx
	movl	%eax, (%rbx)
	movq	24(%rbp), %rdi
	movl	%ecx, (%rdi)
	cmpl	$512, %eax                      ## imm = 0x200
	jl	LBB0_5
## %bb.4:
	movl	$1024, %edx                     ## imm = 0x400
	subl	%eax, %edx
	movl	%edx, -48(%rbp)
	movl	%edx, %eax
LBB0_5:
	cmpl	$512, %ecx                      ## imm = 0x200
	jl	LBB0_7
## %bb.6:
	movl	$1024, %edx                     ## imm = 0x400
	subl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	%edx, %ecx
LBB0_7:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	(%rdi), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_rtw_dbg
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write IQ vector to hardware\n"

	.comm	_RTW_DBG_RFK,4,2                ## @RTW_DBG_RFK
L_.str.1:                               ## @.str.1
	.asciz	"[DACK] after  DACK i=0x%x, q=0x%x\n"

	.no_dead_strip	_rtw8822c_dac_cal_step3
.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_step3
_rtw8822c_dac_cal_step3:                ; @rtw8822c_dac_cal_step3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	stp	x6, x7, [sp, #40]               ; 16-byte Folded Spill
	mov	x20, x5
	mov	x22, x4
	stp	w2, w3, [sp, #16]               ; 8-byte Folded Spill
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_rtw8822c_get_path_write_addr
	mov	x24, x0
	mov	x0, x19
	bl	_rtw8822c_get_path_read_addr
	mov	x25, x0
	stp	x22, x20, [sp, #24]             ; 16-byte Folded Spill
	ldr	w19, [x22]
	ldr	w28, [x20]
	stp	w28, w19, [sp, #56]
	add	w1, w24, #12
	mov	x0, x21
	mov	w2, #544
	movk	w2, #57328, lsl #16
	bl	_rtw_write32
	add	w1, w24, #16
	mov	x0, x21
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	w2, #2245
	movk	w2, #725, lsl #16
	bl	_rtw_write32
	mov	x0, x21
	mov	w1, #2484
	mov	w2, #56064
	movk	w2, #56166, lsl #16
	bl	_rtw_write32
	add	w20, w24, #176
	mov	x0, x21
	mov	x1, x20
	mov	w2, #64392
	movk	w2, #2577, lsl #16
	bl	_rtw_write32
	add	w26, w24, #188
	mov	x0, x21
	mov	x1, x26
	mov	w2, #65409
	movk	w2, #49160, lsl #16
	bl	_rtw_write32
	add	w22, w24, #192
	mov	x0, x21
	mov	x1, x22
	mov	w2, #53768
	movk	w2, #3, lsl #16
	bl	_rtw_write32
	and	w3, w19, #0xf
	mov	x0, x21
	mov	x1, x26
	mov	w2, #-268435456
	bl	_rtw_write32_mask
	ubfx	w3, w19, #4, #4
	mov	x0, x21
	mov	x1, x22
	mov	w2, #15
	bl	_rtw_write32_mask
	add	w23, w24, #204
	mov	x0, x21
	mov	x1, x23
	mov	w2, #64392
	movk	w2, #2577, lsl #16
	bl	_rtw_write32
	add	w22, w24, #216
	mov	x0, x21
	mov	x1, x22
	mov	w2, #65409
	movk	w2, #57352, lsl #16
	bl	_rtw_write32
	add	w27, w24, #220
	mov	x0, x21
	mov	x1, x27
	mov	w2, #53768
	movk	w2, #3, lsl #16
	bl	_rtw_write32
	and	w3, w28, #0xf
	mov	x0, x21
	mov	x1, x22
	mov	w2, #-268435456
	bl	_rtw_write32_mask
	ubfx	w3, w28, #4, #4
	mov	x0, x21
	mov	x1, x27
	mov	w2, #15
	bl	_rtw_write32_mask
	add	w22, w24, #184
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1610612736
	bl	_rtw_write32
	mov	w0, #2
	bl	_mdelay
	mov	x0, x21
	mov	x1, x26
	mov	w2, #14
	mov	w3, #6
	bl	_rtw_write32_mask
	mov	w0, #2
	bl	_mdelay
	mov	w8, #64392
	movk	w8, #2577, lsl #16
	orr	w27, w8, #0x1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	bl	_rtw_write32
	mov	x0, x21
	mov	x1, x23
	mov	x2, x27
	bl	_rtw_write32
	mov	w0, #1
	bl	_mdelay
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1644167168
	bl	_rtw_write32
	add	w1, w24, #212
	mov	x0, x21
	mov	w2, #1644167168
	bl	_rtw_write32
	mov	w0, #20
	bl	_mdelay
	add	w1, w25, #36
	mov	x0, x21
	mov	w2, #133693440
	mov	x3, x19
	bl	_check_hw_ready
	cbz	w0, LBB0_2
; %bb.1:
	add	w1, w25, #80
	mov	x0, x21
	mov	w2, #133693440
	mov	x3, x28
	bl	_check_hw_ready
	cbnz	w0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_rtw_err
LBB0_3:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #33554432
	bl	_rtw_write32
	mov	w0, #1
	bl	_mdelay
	mov	x0, x21
	mov	x1, x26
	mov	w2, #14
	mov	w3, #3
	bl	_rtw_write32_mask
	mov	x0, x21
	mov	w1, #2484
	mov	w2, #46592
	movk	w2, #56173, lsl #16
	bl	_rtw_write32
	ldp	w8, w9, [sp, #16]               ; 8-byte Folded Reload
	add	w8, w8, #16
	lsl	w9, w9, #10
	add	w9, w9, #4, lsl #12             ; =16384
	and	w2, w9, #0xffc00
	bfxil	w2, w8, #0, #10
	add	w1, w24, #104
	mov	x0, x21
	bl	_rtw_write32
	mov	x0, x21
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	w2, #2245
	movk	w2, #725, lsl #16
	bl	_rtw_write32
	add	w1, w24, #96
	mov	x0, x21
	mov	w2, #-268435456
	bl	_rtw_write32
	add	x1, sp, #60
	add	x2, sp, #56
	mov	x0, x21
	bl	_rtw8822c_dac_cal_rf_mode
	ldr	w8, [sp, #60]
	mov	w9, #1008
	mov	w10, #-16
	cmp	w8, #15
	csel	w11, w10, w9, gt
	add	w8, w11, w8
	ldr	w11, [sp, #56]
	cmp	w11, #15
	csel	w9, w10, w9, gt
	add	w9, w9, w11
	stp	w9, w8, [sp, #56]
	ldp	x12, x11, [sp, #40]             ; 16-byte Folded Reload
	str	w8, [x12]
	str	w9, [x11]
	cmp	w8, #512
	b.lt	LBB0_5
; %bb.4:
	mov	w10, #1024
	sub	w8, w10, w8
	str	w8, [sp, #60]
LBB0_5:
	cmp	w9, #512
	b.lt	LBB0_7
; %bb.6:
	mov	w10, #1024
	sub	w9, w10, w9
	str	w9, [sp, #56]
LBB0_7:
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	str	w8, [x10]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	w9, [x8]
Lloh2:
	adrp	x8, _RTW_DBG_RFK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTW_DBG_RFK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w3, [x12]
	ldr	w4, [x11]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_rtw_dbg
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write IQ vector to hardware\n"

	.comm	_RTW_DBG_RFK,4,2                ; @RTW_DBG_RFK
l_.str.1:                               ; @.str.1
	.asciz	"[DACK] after  DACK i=0x%x, q=0x%x\n"

	.no_dead_strip	_rtw8822c_dac_cal_step3
.subsections_via_symbols
