	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_rf_mode
_rtw8822c_dac_cal_rf_mode:              ## @rtw8822c_dac_cal_rf_mode
	.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	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DACK_SN_8822C@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_RF_PATH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RFREG_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rtw_read_rf
	movl	%eax, %ebx
	movq	_RF_PATH_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rtw_read_rf
	movl	%eax, %r15d
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_rtw_dbg
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_rtw_dbg
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_rtw8822c_dac_cal_iq_sample
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_rtw8822c_dac_cal_iq_search
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DACK_SN_8822C,4,2              ## @DACK_SN_8822C
	.comm	_RF_PATH_A,4,2                  ## @RF_PATH_A
	.comm	_RFREG_MASK,4,2                 ## @RFREG_MASK
	.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] RF path-A=0x%05x\n"

L_.str.1:                               ## @.str.1
	.asciz	"[DACK] RF path-B=0x%05x\n"

	.no_dead_strip	_rtw8822c_dac_cal_rf_mode
.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_rf_mode
_rtw8822c_dac_cal_rf_mode:              ; @rtw8822c_dac_cal_rf_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _DACK_SN_8822C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DACK_SN_8822C@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x22, x9, x12
	mov	sp, x22
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
Lloh10:
	adrp	x8, _RF_PATH_A@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RF_PATH_A@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x25, _RFREG_MASK@GOTPAGE
Lloh14:
	ldr	x25, [x25, _RFREG_MASK@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	w2, #0
	bl	_rtw_read_rf
	mov	x24, x0
Lloh15:
	adrp	x8, _RF_PATH_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RF_PATH_B@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w3, [x25]
	mov	x0, x21
	mov	w2, #0
	bl	_rtw_read_rf
	mov	x25, x0
Lloh18:
	adrp	x26, _RTW_DBG_RFK@GOTPAGE
Lloh19:
	ldr	x26, [x26, _RTW_DBG_RFK@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x24
	bl	_rtw_dbg
	ldr	w1, [x26]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x25
	bl	_rtw_dbg
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_rtw8822c_dac_cal_iq_sample
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_rtw8822c_dac_cal_iq_search
	ldur	x8, [x29, #-72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DACK_SN_8822C,4,2              ; @DACK_SN_8822C
	.comm	_RF_PATH_A,4,2                  ; @RF_PATH_A
	.comm	_RFREG_MASK,4,2                 ; @RFREG_MASK
	.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] RF path-A=0x%05x\n"

l_.str.1:                               ; @.str.1
	.asciz	"[DACK] RF path-B=0x%05x\n"

	.no_dead_strip	_rtw8822c_dac_cal_rf_mode
.subsections_via_symbols
