	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723a_phy_lc_calibrate
_rtl8723a_phy_lc_calibrate:             ## @rtl8723a_phy_lc_calibrate
	.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	%rdi, %rbx
	movq	_REG_OFDM1_LSTF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_rtl8xxxu_read32
	movl	%eax, %r14d
	movq	_OFDM_LSTF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %edx
	je	LBB0_3
## %bb.1:
	notl	%edx
	andl	%r14d, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rtl8xxxu_write32
	movq	_RF_A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_RF6052_REG_AC@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read_rfreg
	movl	(%r12), %esi
	movl	(%r13), %edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $eax killed $eax def $rax
	andl	$589823, %eax                   ## imm = 0x8FFFF
	leal	65536(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtl8xxxu_write_rfreg
	xorl	%r12d, %r12d
	cmpl	$2, (%rbx)
	jl	LBB0_4
## %bb.2:
	movq	_RF_B@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read_rfreg
	movl	%eax, %r12d
	movl	(%r15), %esi
	movl	(%r13), %edx
	andl	$589823, %eax                   ## imm = 0x8FFFF
	leal	65536(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtl8xxxu_write_rfreg
	jmp	LBB0_4
LBB0_3:
	movq	_REG_TXPAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_rtl8xxxu_write8
	xorl	%r12d, %r12d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
LBB0_4:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_RF_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF6052_REG_S0S1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$916448, %ecx                   ## imm = 0xDFBE0
	callq	_rtl8xxxu_write_rfreg
LBB0_6:
	movq	_RF_A@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_RF6052_REG_MODE_AG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_rtl8xxxu_read_rfreg
	orl	$32768, %eax                    ## imm = 0x8000
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_rtl8xxxu_write_rfreg
	movl	$100, %edi
	callq	_msleep
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r13), %esi
	movq	_RF6052_REG_S0S1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$917472, %ecx                   ## imm = 0xDFFE0
	callq	_rtl8xxxu_write_rfreg
LBB0_8:
	movq	_OFDM_LSTF_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.9:
	movq	_REG_OFDM1_LSTF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rtl8xxxu_write32
	movl	(%r13), %esi
	movq	_RF6052_REG_AC@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_rtl8xxxu_write_rfreg
	cmpl	$2, (%rbx)
	jl	LBB0_12
## %bb.10:
	movq	_RF_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8xxxu_write_rfreg           ## TAILCALL
LBB0_11:
	movq	_REG_TXPAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8xxxu_write8                ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_OFDM1_LSTF,4,2             ## @REG_OFDM1_LSTF
	.comm	_OFDM_LSTF_MASK,4,2             ## @OFDM_LSTF_MASK
	.comm	_RF_A,4,2                       ## @RF_A
	.comm	_RF6052_REG_AC,4,2              ## @RF6052_REG_AC
	.comm	_RF_B,4,2                       ## @RF_B
	.comm	_REG_TXPAUSE,4,2                ## @REG_TXPAUSE
	.comm	_RF6052_REG_S0S1,4,2            ## @RF6052_REG_S0S1
	.comm	_RF6052_REG_MODE_AG,4,2         ## @RF6052_REG_MODE_AG
	.no_dead_strip	_rtl8723a_phy_lc_calibrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8723a_phy_lc_calibrate
_rtl8723a_phy_lc_calibrate:             ; @rtl8723a_phy_lc_calibrate
	.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	x19, x0
Lloh0:
	adrp	x24, _REG_OFDM1_LSTF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _REG_OFDM1_LSTF@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_rtl8xxxu_read32
	mov	x20, x0
Lloh2:
	adrp	x8, _OFDM_LSTF_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OFDM_LSTF_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x25, _RF_A@GOTPAGE
Lloh6:
	ldr	x25, [x25, _RF_A@GOTPAGEOFF]
Lloh7:
	adrp	x23, _RF6052_REG_AC@GOTPAGE
Lloh8:
	ldr	x23, [x23, _RF6052_REG_AC@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	w27, #589823
	bic	w2, w20, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rtl8xxxu_write32
	ldr	w1, [x25]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_rtl8xxxu_read_rfreg
	mov	x21, x0
	ldr	w1, [x25]
	ldr	w2, [x23]
	and	w8, w0, w27
	orr	w3, w8, #0x10000
	mov	x0, x19
	bl	_rtl8xxxu_write_rfreg
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
Lloh9:
	adrp	x28, _RF_B@GOTPAGE
Lloh10:
	ldr	x28, [x28, _RF_B@GOTPAGEOFF]
	ldr	w1, [x28]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_rtl8xxxu_read_rfreg
	mov	x22, x0
	ldr	w1, [x28]
	ldr	w2, [x23]
	and	w8, w0, w27
	orr	w3, w8, #0x10000
	mov	x0, x19
	bl	_rtl8xxxu_write_rfreg
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _REG_TXPAUSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_TXPAUSE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_rtl8xxxu_write8
	mov	w22, #0
                                        ; implicit-def: $w21
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	mov	w27, #64480
	movk	w27, #13, lsl #16
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh14:
	adrp	x28, _RF6052_REG_S0S1@GOTPAGE
Lloh15:
	ldr	x28, [x28, _RF6052_REG_S0S1@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x25]
	ldr	w2, [x28]
	mov	x0, x19
	mov	w3, #64480
	movk	w3, #13, lsl #16
	bl	_rtl8xxxu_write_rfreg
LBB0_7:
	ldr	w1, [x25]
Lloh16:
	adrp	x26, _RF6052_REG_MODE_AG@GOTPAGE
Lloh17:
	ldr	x26, [x26, _RF6052_REG_MODE_AG@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_rtl8xxxu_read_rfreg
	orr	w3, w0, #0x8000
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_rtl8xxxu_write_rfreg
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x25]
	ldr	w2, [x28]
	add	w3, w27, #1024
	mov	x0, x19
	bl	_rtl8xxxu_write_rfreg
LBB0_9:
Lloh18:
	adrp	x8, _OFDM_LSTF_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OFDM_LSTF_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.10:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_rtl8xxxu_write32
	ldr	w1, [x25]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, x21
	bl	_rtl8xxxu_write_rfreg
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.11:
Lloh21:
	adrp	x8, _RF_B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RF_B@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, x22
	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	_rtl8xxxu_write_rfreg
LBB0_12:
Lloh24:
	adrp	x8, _REG_TXPAUSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REG_TXPAUSE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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	_rtl8xxxu_write8
LBB0_13:
	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
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_OFDM1_LSTF,4,2             ; @REG_OFDM1_LSTF
	.comm	_OFDM_LSTF_MASK,4,2             ; @OFDM_LSTF_MASK
	.comm	_RF_A,4,2                       ; @RF_A
	.comm	_RF6052_REG_AC,4,2              ; @RF6052_REG_AC
	.comm	_RF_B,4,2                       ; @RF_B
	.comm	_REG_TXPAUSE,4,2                ; @REG_TXPAUSE
	.comm	_RF6052_REG_S0S1,4,2            ; @RF6052_REG_S0S1
	.comm	_RF6052_REG_MODE_AG,4,2         ; @RF6052_REG_MODE_AG
	.no_dead_strip	_rtl8723a_phy_lc_calibrate
.subsections_via_symbols
