	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_adc
_rtw8822c_dac_cal_adc:                  ## @rtw8822c_dac_cal_adc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_rtw_dbg
	movl	%r12d, %edi
	callq	_rtw8822c_get_path_write_addr
	movl	%eax, %r13d
	cmpl	$129, %r12d
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r12d
	jne	LBB0_18
## %bb.3:
	movl	$524288, -52(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x80000
	jmp	LBB0_4
LBB0_1:
	movl	$655360, -52(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0xA0000
LBB0_4:
	leal	48(%r13), %r15d
	movl	$30, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	cmpl	$128, %r12d
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$819691585, %edx                ## imm = 0x30DB8041
	callq	_rtw_write32
LBB0_6:
	leal	96(%r13), %esi
	movq	%rbx, %rdi
	movl	$-268169232, %edx               ## imm = 0xF0040FF0
	callq	_rtw_write32
	leal	12(%r13), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$-537918944, %edx               ## imm = 0xDFF00220
	callq	_rtw_write32
	leal	16(%r13), %esi
	movq	%rbx, %rdi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	$48040132, %edx                 ## imm = 0x2DD08C4
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	movl	$268436064, %edx                ## imm = 0x10000260
	callq	_rtw_write32
	movq	_RFREG_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	$129, %esi
	xorl	%edx, %edx
	movl	$65536, %r8d                    ## imm = 0x10000
	callq	_rtw_write_rf
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	$128, %esi
	xorl	%edx, %edx
	movl	$65536, %r8d                    ## imm = 0x10000
	callq	_rtw_write_rf
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
	orl	$32771, %ecx                    ## imm = 0x8003
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	addl	$104, %r13d
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	orl	$33027, %eax                    ## imm = 0x8103
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_rtw_dbg
	movq	%rbx, %rdi
	movl	$7228, %esi                     ## imm = 0x1C3C
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	$7204, %esi                     ## imm = 0x1C24
	movl	$65538, %edx                    ## imm = 0x10002
	callq	_rtw_write32
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_rtw8822c_dac_cal_rf_mode
	movl	(%r14), %esi
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_rtw_dbg
	movl	-48(%rbp), %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1024, %eax                     ## imm = 0x400
	subl	%ecx, %eax
	movl	%eax, -48(%rbp)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1024, %r15d                    ## imm = 0x400
	subl	%ecx, %r15d
	movl	%r15d, -44(%rbp)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	andl	$1023, %eax                     ## imm = 0x3FF
	shll	$10, %r15d
	andl	$1047552, %r15d                 ## imm = 0xFFC00
	orl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_rtw_write32
	movq	(%rbx), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rax,%rcx,4)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_rtw_dbg
	movq	%rbx, %rdi
	movl	$7228, %esi                     ## imm = 0x1C3C
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_rtw_write32
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_rtw8822c_dac_cal_rf_mode
	movl	(%r14), %esi
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_rtw_dbg
	movl	-48(%rbp), %eax
	cmpl	$512, %eax                      ## imm = 0x200
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1024, %ecx                     ## imm = 0x400
	subl	%eax, %ecx
	movl	%ecx, -48(%rbp)
	movl	%ecx, %eax
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %ecx
	cmpl	$512, %ecx                      ## imm = 0x200
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1024, %edx                     ## imm = 0x400
	subl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	%edx, %ecx
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$5, %eax
	setl	%al
	cmpl	$5, %ecx
	setl	%cl
	testb	%cl, %al
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r12), %eax
	cmpl	$9, %r12d
	movl	%eax, %r12d
	jne	LBB0_7
LBB0_17:
	movq	%rbx, %rdi
	movl	$7228, %esi                     ## imm = 0x1C3C
	movl	$3, %edx
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	$268436064, %edx                ## imm = 0x10000260
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	$47515844, %edx                 ## imm = 0x2D508C4
	callq	_rtw_write32
	movl	$13, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	$143, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_rtw_write_rf
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	$1, %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_DBG_RFK,4,2                ## @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DACK] ADCK path(%d)\n"

	.comm	_RFREG_MASK,4,2                 ## @RFREG_MASK
L_.str.1:                               ## @.str.1
	.asciz	"[DACK] ADCK count=%d\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"[DACK] ADCK 0x%08x=0x08%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"[DACK] after:  i=0x%08x, q=0x%08x\n"

	.no_dead_strip	_rtw8822c_dac_cal_adc
.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_adc
_rtw8822c_dac_cal_adc:                  ; @rtw8822c_dac_cal_adc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x2, x3, [sp, #24]               ; 16-byte Folded Spill
	mov	x23, x1
	mov	x20, x0
	str	xzr, [sp, #40]
Lloh0:
	adrp	x28, _RTW_DBG_RFK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RTW_DBG_RFK@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x23
	bl	_rtw_dbg
	mov	x0, x23
	bl	_rtw8822c_get_path_write_addr
	mov	x19, x0
	cmp	w23, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w23, #128
	b.ne	LBB0_18
; %bb.2:
	mov	w22, #524288
	b	LBB0_4
LBB0_3:
	mov	w22, #655360
LBB0_4:
	add	w21, w19, #48
	mov	w0, #30
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_rtw_write32_mask
	cmp	w23, #128
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #32833
	movk	w2, #12507, lsl #16
	bl	_rtw_write32
LBB0_6:
	mov	w21, #2244
	movk	w21, #725, lsl #16
	add	w1, w19, #96
	mov	x0, x20
	mov	w2, #4080
	movk	w2, #61444, lsl #16
	bl	_rtw_write32
	add	w24, w19, #12
	mov	x0, x20
	mov	x1, x24
	mov	w2, #544
	movk	w2, #57328, lsl #16
	bl	_rtw_write32
	add	w1, w19, #16
	orr	w2, w21, #0x80000
	mov	x0, x20
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	bl	_rtw_write32
	mov	x0, x20
	str	w24, [sp, #16]                  ; 4-byte Folded Spill
	mov	x1, x24
	mov	w2, #608
	movk	w2, #4096, lsl #16
	bl	_rtw_write32
Lloh4:
	adrp	x21, _RFREG_MASK@GOTPAGE
Lloh5:
	ldr	x21, [x21, _RFREG_MASK@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x20
	mov	w1, #129
	mov	w2, #0
	mov	w4, #65536
	bl	_rtw_write_rf
	ldr	w3, [x21]
	mov	x0, x20
	mov	w1, #128
	mov	w2, #0
	mov	w4, #65536
	bl	_rtw_write_rf
	mov	w25, #0
	mov	w8, #32771
	orr	w26, w22, w8
	add	w27, w19, #104
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	mov	w24, w23
	mov	w8, #33027
	orr	w23, w22, w8
	mov	w19, #1024
Lloh6:
	adrp	x21, l_.str.4@PAGE
Lloh7:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	x0, x20
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x25
	bl	_rtw_dbg
	mov	x0, x20
	mov	w1, #7228
	mov	x2, x26
	bl	_rtw_write32
	mov	x0, x20
	mov	w1, #7204
	mov	w2, #2
	movk	w2, #1, lsl #16
	bl	_rtw_write32
	add	x1, sp, #44
	add	x2, sp, #40
	mov	x0, x20
	bl	_rtw8822c_dac_cal_rf_mode
	ldr	w1, [x28]
	ldp	w8, w3, [sp, #40]
	str	x8, [sp]
	mov	x0, x20
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_rtw_dbg
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w19, w8
	str	w8, [sp, #44]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [sp, #40]
	cbz	w9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w9, w19, w9
	str	w9, [sp, #40]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	str	w9, [x10]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w22, w8, #0x3ff
	bfi	w22, w9, #10, #10
	mov	x0, x20
	mov	x1, x27
	mov	x2, x22
	bl	_rtw_write32
	ldr	x8, [x20]
	str	w22, [x8, x24, lsl #2]
	ldr	w1, [x28]
	str	x22, [sp]
	mov	x0, x20
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x27
	bl	_rtw_dbg
	mov	x0, x20
	mov	w1, #7228
	mov	x2, x23
	bl	_rtw_write32
	add	x1, sp, #44
	add	x2, sp, #40
	mov	x0, x20
	bl	_rtw8822c_dac_cal_rf_mode
	ldr	w1, [x28]
	ldp	w8, w3, [sp, #40]
	str	x8, [sp]
	mov	x0, x20
	mov	x2, x21
	bl	_rtw_dbg
	ldr	w8, [sp, #44]
	cmp	w8, #512
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w19, w8
	str	w8, [sp, #44]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [sp, #40]
	cmp	w9, #512
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w9, w19, w9
	str	w9, [sp, #40]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #5
	ccmp	w8, #5, #0, lt
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w25, #1
	cmp	w25, #9
	mov	x25, x8
	b.ne	LBB0_7
LBB0_17:
	mov	x0, x20
	mov	w1, #7228
	mov	w2, #3
	bl	_rtw_write32
	mov	x0, x20
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	mov	w2, #608
	movk	w2, #4096, lsl #16
	bl	_rtw_write32
	mov	x0, x20
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	w2, #2244
	movk	w2, #725, lsl #16
	bl	_rtw_write32
	mov	w0, #13
	bl	_BIT
	mov	x3, x0
	mov	x0, x20
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	mov	w2, #143
	mov	w4, #1
	bl	_rtw_write_rf
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	mov	w0, #1
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_WARN_ON
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_DBG_RFK,4,2                ; @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DACK] ADCK path(%d)\n"

	.comm	_RFREG_MASK,4,2                 ; @RFREG_MASK
l_.str.1:                               ; @.str.1
	.asciz	"[DACK] ADCK count=%d\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"[DACK] ADCK 0x%08x=0x08%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"[DACK] after:  i=0x%08x, q=0x%08x\n"

	.no_dead_strip	_rtw8822c_dac_cal_adc
.subsections_via_symbols
