	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_step2
_rtw8822c_dac_cal_step2:                ## @rtw8822c_dac_cal_step2
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_rtw8822c_get_path_write_addr
	movl	%eax, %ebx
	leal	188(%rbx), %esi
	movq	%r12, %rdi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	leal	192(%rbx), %esi
	movq	%r12, %rdi
	movl	$15, %edx
	movl	$8, %ecx
	callq	_rtw_write32_mask
	leal	216(%rbx), %esi
	movq	%r12, %rdi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	leal	220(%rbx), %esi
	movq	%r12, %rdi
	movl	$15, %edx
	movl	$8, %ecx
	callq	_rtw_write32_mask
	movq	%r12, %rdi
	movl	$6912, %esi                     ## imm = 0x1B00
	movl	$8, %edx
	callq	_rtw_write32
	movq	%r12, %rdi
	movl	$7116, %esi                     ## imm = 0x1BCC
	movl	$63, %edx
	callq	_rtw_write8
	leal	12(%rbx), %esi
	movq	%r12, %rdi
	movl	$-537918944, %edx               ## imm = 0xDFF00220
	callq	_rtw_write32
	addl	$16, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$47515845, %edx                 ## imm = 0x2D508C5
	callq	_rtw_write32
	movq	%r12, %rdi
	movl	$7228, %esi                     ## imm = 0x1C3C
	movl	$557315, %edx                   ## imm = 0x88103
	callq	_rtw_write32
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_rtw8822c_dac_cal_rf_mode
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movl	$1024, %eax                     ## imm = 0x400
	movl	$1024, %edx                     ## imm = 0x400
	subl	%ecx, %edx
	testl	%ecx, %ecx
	cmovel	%ecx, %edx
	subl	%r8d, %eax
	testl	%r8d, %r8d
	cmovel	%r8d, %eax
	cmpl	$767, %edx                      ## imm = 0x2FF
	jg	LBB0_2
## %bb.1:
	shll	$2, %edx
	leal	(%rdx,%rdx,2), %edx
	movslq	%edx, %rdx
	imulq	$1717986919, %rdx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	sarq	$33, %rsi
	shrq	$63, %rdx
	leal	(%rsi,%rdx), %r13d
	addl	$128, %r13d
	cmpl	$767, %eax                      ## imm = 0x2FF
	jle	LBB0_4
LBB0_5:
	shll	$2, %eax
	leal	(%rax,%rax,2), %eax
	movl	$12288, %edx                    ## imm = 0x3000
	subl	%eax, %edx
	movslq	%edx, %rax
	imulq	$-1717986919, %rax, %rax        ## imm = 0x99999999
	movq	%rax, %rdx
	sarq	$33, %rdx
	shrq	$63, %rax
	leal	(%rdx,%rax), %ebx
	addl	$127, %ebx
	jmp	LBB0_6
LBB0_2:
	shll	$2, %edx
	leal	(%rdx,%rdx,2), %edx
	movl	$12288, %esi                    ## imm = 0x3000
	subl	%edx, %esi
	movslq	%esi, %rdx
	imulq	$-1717986919, %rdx, %rdx        ## imm = 0x99999999
	movq	%rdx, %rsi
	sarq	$33, %rsi
	shrq	$63, %rdx
	leal	(%rsi,%rdx), %r13d
	addl	$127, %r13d
	cmpl	$767, %eax                      ## imm = 0x2FF
	jg	LBB0_5
LBB0_4:
	shll	$2, %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rdx
	sarq	$33, %rdx
	shrq	$63, %rax
	leal	(%rdx,%rax), %ebx
	addl	$128, %ebx
LBB0_6:
	movl	%r13d, (%r15)
	movl	%ebx, (%r14)
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_rtw_dbg
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	callq	_rtw_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_DBG_RFK,4,2                ## @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DACK] before i=0x%x, q=0x%x\n"

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

	.no_dead_strip	_rtw8822c_dac_cal_step2
.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_step2
_rtw8822c_dac_cal_step2:                ; @rtw8822c_dac_cal_step2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	mov	x0, x1
	bl	_rtw8822c_get_path_write_addr
	mov	x22, x0
	add	w1, w0, #188
	mov	x0, x19
	mov	w2, #-268435456
	mov	w3, #0
	bl	_rtw_write32_mask
	add	w1, w22, #192
	mov	x0, x19
	mov	w2, #15
	mov	w3, #8
	bl	_rtw_write32_mask
	add	w1, w22, #216
	mov	x0, x19
	mov	w2, #-268435456
	mov	w3, #0
	bl	_rtw_write32_mask
	add	w1, w22, #220
	mov	x0, x19
	mov	w2, #15
	mov	w3, #8
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	w1, #6912
	mov	w2, #8
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #7116
	mov	w2, #63
	bl	_rtw_write8
	add	w1, w22, #12
	mov	x0, x19
	mov	w2, #544
	movk	w2, #57328, lsl #16
	bl	_rtw_write32
	add	w1, w22, #16
	mov	x0, x19
	mov	w2, #2245
	movk	w2, #725, lsl #16
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #7228
	mov	w2, #33027
	movk	w2, #8, lsl #16
	bl	_rtw_write32
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_rtw8822c_dac_cal_rf_mode
	ldr	w3, [sp, #12]
	mov	w8, #1024
	sub	w9, w8, w3
	cmp	w3, #0
	csel	w9, wzr, w9, eq
	mov	w10, #-12
	orr	w11, wzr, #0x3000
	madd	w12, w9, w10, w11
	mov	w13, #-1717986919
	smull	x12, w12, w13
	lsr	x14, x12, #63
	asr	x12, x12, #33
	add	w12, w12, w14
	add	w14, w9, w9, lsl #1
	lsl	w14, w14, #2
	mov	w15, #26215
	movk	w15, #26214, lsl #16
	smull	x14, w14, w15
	lsr	x16, x14, #63
	asr	x14, x14, #33
	add	w14, w14, w16
	ldr	w4, [sp, #8]
	sub	w8, w8, w4
	cmp	w4, #0
	csel	w8, wzr, w8, eq
	add	w12, w12, #127
	add	w14, w14, #128
	cmp	w9, #767
	csel	w22, w12, w14, gt
	madd	w9, w8, w10, w11
	smull	x9, w9, w13
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	add	w9, w9, #127
	add	w10, w8, w8, lsl #1
	lsl	w10, w10, #2
	smull	x10, w10, w15
	lsr	x11, x10, #63
	asr	x10, x10, #33
	add	w10, w10, w11
	add	w10, w10, #128
	cmp	w8, #767
	csel	w23, w9, w10, gt
	str	w22, [x21]
	str	w23, [x20]
Lloh0:
	adrp	x20, _RTW_DBG_RFK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RTW_DBG_RFK@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_dbg
	ldr	w1, [x20]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x23
	bl	_rtw_dbg
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_DBG_RFK,4,2                ; @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DACK] before i=0x%x, q=0x%x\n"

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

	.no_dead_strip	_rtw8822c_dac_cal_step2
.subsections_via_symbols
