	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_step1
_rtw8822c_dac_cal_step1:                ## @rtw8822c_dac_cal_step1
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_rtw8822c_get_path_write_addr
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_rtw8822c_get_path_read_addr
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	104(%r14), %esi
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %edx
	movq	%rbx, %rdi
	callq	_rtw_write32
	leal	12(%r14), %esi
	movq	%rbx, %rdi
	movl	$-537918944, %edx               ## imm = 0xDFF00220
	callq	_rtw_write32
	movq	_RF_PATH_A@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_2
## %bb.1:
	leal	96(%r14), %esi
	movq	%rbx, %rdi
	movl	$-268169232, %edx               ## imm = 0xF0040FF0
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	$7224, %esi                     ## imm = 0x1C38
	movl	$-1, %edx
	callq	_rtw_write32
LBB0_2:
	leal	16(%r14), %esi
	movq	%rbx, %rdi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	$47515845, %edx                 ## imm = 0x2D508C5
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	$2484, %esi                     ## imm = 0x9B4
	movl	$-614016256, %edx               ## imm = 0xDB66DB00
	callq	_rtw_write32
	leal	176(%r14), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$168950664, %edx                ## imm = 0xA11FB88
	callq	_rtw_write32
	leal	188(%r14), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$589697, %edx                   ## imm = 0x8FF81
	callq	_rtw_write32
	leal	192(%r14), %esi
	movq	%rbx, %rdi
	movl	$250376, %edx                   ## imm = 0x3D208
	callq	_rtw_write32
	leal	204(%r14), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$168950664, %edx                ## imm = 0xA11FB88
	callq	_rtw_write32
	leal	216(%r14), %esi
	movq	%rbx, %rdi
	movl	$589697, %edx                   ## imm = 0x8FF81
	callq	_rtw_write32
	leal	220(%r14), %esi
	movq	%rbx, %rdi
	movl	$250376, %edx                   ## imm = 0x3D208
	callq	_rtw_write32
	leal	184(%r14), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1610612736, %edx               ## imm = 0x60000000
	callq	_rtw_write32
	movl	$2, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	movl	$720781, %edx                   ## imm = 0xAFF8D
	callq	_rtw_write32
	movl	$2, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$168950665, %edx                ## imm = 0xA11FB89
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$168950665, %edx                ## imm = 0xA11FB89
	callq	_rtw_write32
	movl	$1, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1644167168, %edx               ## imm = 0x62000000
	callq	_rtw_write32
	leal	212(%r14), %esi
	movq	%rbx, %rdi
	movl	$1644167168, %edx               ## imm = 0x62000000
	callq	_rtw_write32
	movl	$20, %edi
	callq	_mdelay
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leal	8(%r12), %esi
	movq	%rbx, %rdi
	movl	$8388480, %edx                  ## imm = 0x7FFF80
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_check_hw_ready
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	addl	$52, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$8388480, %edx                  ## imm = 0x7FFF80
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_check_hw_ready
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rtw_err
LBB0_5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$33554432, %edx                 ## imm = 0x2000000
	callq	_rtw_write32
	movl	$1, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	$589703, %edx                   ## imm = 0x8FF87
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	$2484, %esi                     ## imm = 0x9B4
	movl	$-613566976, %edx               ## imm = 0xDB6DB600
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$47515845, %edx                 ## imm = 0x2D508C5
	callq	_rtw_write32
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$589703, %edx                   ## imm = 0x8FF87
	callq	_rtw_write32
	addl	$96, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_write32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_PATH_A,8,3                  ## @RF_PATH_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to wait for dack ready\n"

	.no_dead_strip	_rtw8822c_dac_cal_step1
.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_step1
_rtw8822c_dac_cal_step1:                ; @rtw8822c_dac_cal_step1
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_rtw8822c_get_path_write_addr
	mov	x20, x0
	mov	x0, x21
	bl	_rtw8822c_get_path_read_addr
	mov	x22, x0
	add	w1, w20, #104
	ldr	x8, [x19]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_rtw_write32
	add	w1, w20, #12
	mov	x0, x19
	mov	w2, #544
	movk	w2, #57328, lsl #16
	bl	_rtw_write32
Lloh0:
	adrp	x8, _RF_PATH_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
	add	w1, w20, #96
	mov	x0, x19
	mov	w2, #4080
	movk	w2, #61444, lsl #16
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #7224
	mov	w2, #-1
	bl	_rtw_write32
LBB0_2:
	mov	w28, #65409
	movk	w28, #8, lsl #16
	add	w21, w20, #16
	mov	x0, x19
	mov	x1, x21
	mov	w2, #2245
	movk	w2, #725, lsl #16
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #2484
	mov	w2, #56064
	movk	w2, #56166, lsl #16
	bl	_rtw_write32
	add	w25, w20, #176
	mov	w27, #64392
	movk	w27, #2577, lsl #16
	mov	x0, x19
	mov	x1, x25
	mov	w2, #64392
	movk	w2, #2577, lsl #16
	bl	_rtw_write32
	add	w23, w20, #188
	mov	x0, x19
	mov	x1, x23
	mov	w2, #65409
	movk	w2, #8, lsl #16
	bl	_rtw_write32
	add	w1, w20, #192
	mov	x0, x19
	mov	w2, #53768
	movk	w2, #3, lsl #16
	bl	_rtw_write32
	add	w26, w20, #204
	mov	x0, x19
	mov	x1, x26
	mov	w2, #64392
	movk	w2, #2577, lsl #16
	bl	_rtw_write32
	add	w1, w20, #216
	mov	x0, x19
	mov	w2, #65409
	movk	w2, #8, lsl #16
	bl	_rtw_write32
	add	w1, w20, #220
	mov	x0, x19
	mov	w2, #53768
	movk	w2, #3, lsl #16
	bl	_rtw_write32
	add	w24, w20, #184
	mov	x0, x19
	mov	x1, x24
	mov	w2, #1610612736
	bl	_rtw_write32
	mov	w0, #2
	bl	_mdelay
	mov	x0, x19
	mov	x1, x23
	mov	w2, #65421
	movk	w2, #10, lsl #16
	bl	_rtw_write32
	mov	w0, #2
	bl	_mdelay
	orr	w27, w27, #0x1
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	bl	_rtw_write32
	mov	x0, x19
	mov	x1, x26
	mov	x2, x27
	bl	_rtw_write32
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	mov	x1, x24
	mov	w2, #1644167168
	bl	_rtw_write32
	add	w1, w20, #212
	mov	x0, x19
	mov	w2, #1644167168
	bl	_rtw_write32
	mov	w0, #20
	bl	_mdelay
	add	w1, w22, #8
	mov	x0, x19
	mov	w2, #8388480
	mov	w3, #65535
	bl	_check_hw_ready
	cbz	w0, LBB0_4
; %bb.3:
	add	w1, w22, #52
	mov	x0, x19
	mov	w2, #8388480
	mov	w3, #65535
	bl	_check_hw_ready
	cbnz	w0, LBB0_5
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
LBB0_5:
	mov	x0, x19
	mov	x1, x24
	mov	w2, #33554432
	bl	_rtw_write32
	mov	w0, #1
	bl	_mdelay
	add	w22, w28, #6
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_rtw_write32
	mov	x0, x19
	mov	w1, #2484
	mov	w2, #46592
	movk	w2, #56173, lsl #16
	bl	_rtw_write32
	mov	x0, x19
	mov	x1, x21
	mov	w2, #2245
	movk	w2, #725, lsl #16
	bl	_rtw_write32
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_rtw_write32
	add	w1, w20, #96
	mov	x0, x19
	mov	w2, #-268435456
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rtw_write32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_PATH_A,8,3                  ; @RF_PATH_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to wait for dack ready\n"

	.no_dead_strip	_rtw8822c_dac_cal_step1
.subsections_via_symbols
