	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_reconfigure_xgxs_core
_falcon_reconfigure_xgxs_core:          ## @falcon_reconfigure_xgxs_core
	.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	%rdi, %r14
	movq	(%rdi), %r12
	movq	_LOOPBACK_XGXS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	sete	%r15b
	movq	_LOOPBACK_XAUI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	sete	%bl
	movq	_LOOPBACK_XGMII@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %r12
	sete	%cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_FR_AB_XX_CORE_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	callq	_ef4_reado
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_XGXS_LB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_OWORD_FIELD
	movl	%eax, %r13d
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_XGMII_LB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_OWORD_FIELD
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_FR_AB_XX_SD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	leaq	-44(%rbp), %rsi
	callq	_ef4_reado
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_LPBKA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_OWORD_FIELD
	cmpl	%r15d, %r13d
	jne	LBB0_3
## %bb.1:
	cmpl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_falcon_reset_xaui
LBB0_4:
	movq	_FR_AB_XX_CORE_STAT@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ef4_reado
	xorl	%edx, %edx
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	_FFE_AB_XX_FORCE_SIG_ALL_LANES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovel	%eax, %edx
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_FORCE_SIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmovel	%eax, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_XGXS_LB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_XGMII_LB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_EF4_SET_OWORD_FIELD
	movl	(%r13), %edx
	movq	%r14, %rdi
	leaq	-44(%rbp), %r12
	movq	%r12, %rsi
	callq	_ef4_writeo
	movq	_FR_AB_XX_SD_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ef4_reado
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_LPBKD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_LPBKC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_LPBKB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-44(%rbp), %edi
	movq	_FRF_AB_XX_LPBKA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ef4_writeo
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOOPBACK_XGXS,8,3              ## @LOOPBACK_XGXS
	.comm	_LOOPBACK_XAUI,8,3              ## @LOOPBACK_XAUI
	.comm	_LOOPBACK_XGMII,8,3             ## @LOOPBACK_XGMII
	.comm	_FR_AB_XX_CORE_STAT,4,2         ## @FR_AB_XX_CORE_STAT
	.comm	_FRF_AB_XX_XGXS_LB_EN,4,2       ## @FRF_AB_XX_XGXS_LB_EN
	.comm	_FRF_AB_XX_XGMII_LB_EN,4,2      ## @FRF_AB_XX_XGMII_LB_EN
	.comm	_FR_AB_XX_SD_CTL,4,2            ## @FR_AB_XX_SD_CTL
	.comm	_FRF_AB_XX_LPBKA,4,2            ## @FRF_AB_XX_LPBKA
	.comm	_FRF_AB_XX_FORCE_SIG,4,2        ## @FRF_AB_XX_FORCE_SIG
	.comm	_FFE_AB_XX_FORCE_SIG_ALL_LANES,4,2 ## @FFE_AB_XX_FORCE_SIG_ALL_LANES
	.comm	_FRF_AB_XX_LPBKD,4,2            ## @FRF_AB_XX_LPBKD
	.comm	_FRF_AB_XX_LPBKC,4,2            ## @FRF_AB_XX_LPBKC
	.comm	_FRF_AB_XX_LPBKB,4,2            ## @FRF_AB_XX_LPBKB
	.no_dead_strip	_falcon_reconfigure_xgxs_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_reconfigure_xgxs_core
_falcon_reconfigure_xgxs_core:          ; @falcon_reconfigure_xgxs_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x28, [x0]
Lloh0:
	adrp	x8, _LOOPBACK_XGXS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOOPBACK_XGXS@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	cmp	x28, x26
Lloh3:
	adrp	x8, _LOOPBACK_XAUI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOOPBACK_XAUI@GOTPAGEOFF]
	cset	w22, eq
Lloh5:
	ldr	x25, [x8]
	cmp	x28, x25
	cset	w20, eq
Lloh6:
	adrp	x8, _LOOPBACK_XGMII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOOPBACK_XGMII@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x28, x8
	cset	w21, eq
Lloh9:
	adrp	x27, _FR_AB_XX_CORE_STAT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _FR_AB_XX_CORE_STAT@GOTPAGEOFF]
	ldr	w2, [x27]
	add	x1, sp, #12
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh11:
	adrp	x8, _FRF_AB_XX_XGXS_LB_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FRF_AB_XX_XGXS_LB_EN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_EF4_OWORD_FIELD
	mov	x23, x0
	ldr	w0, [sp, #12]
Lloh14:
	adrp	x8, _FRF_AB_XX_XGMII_LB_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FRF_AB_XX_XGMII_LB_EN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_EF4_OWORD_FIELD
	mov	x24, x0
Lloh17:
	adrp	x8, _FR_AB_XX_SD_CTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FR_AB_XX_SD_CTL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh20:
	adrp	x8, _FRF_AB_XX_LPBKA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FRF_AB_XX_LPBKA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_EF4_OWORD_FIELD
	cmp	w23, w22
	ccmp	w0, w20, #0, eq
	ccmp	w24, w21, #0, eq
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_falcon_reset_xaui
LBB0_2:
	ldr	w2, [x27]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	cmp	x28, x25
	ccmp	x28, x26, #4, ne
Lloh23:
	adrp	x8, _FRF_AB_XX_FORCE_SIG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FRF_AB_XX_FORCE_SIG@GOTPAGEOFF]
	ldr	w0, [sp, #12]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _FFE_AB_XX_FORCE_SIG_ALL_LANES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FFE_AB_XX_FORCE_SIG_ALL_LANES@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	csel	w2, w8, wzr, eq
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh29:
	adrp	x8, _FRF_AB_XX_XGXS_LB_EN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FRF_AB_XX_XGXS_LB_EN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh32:
	adrp	x8, _FRF_AB_XX_XGMII_LB_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FRF_AB_XX_XGMII_LB_EN@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_EF4_SET_OWORD_FIELD
	ldr	w2, [x27]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
Lloh35:
	adrp	x21, _FR_AB_XX_SD_CTL@GOTPAGE
Lloh36:
	ldr	x21, [x21, _FR_AB_XX_SD_CTL@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh37:
	adrp	x8, _FRF_AB_XX_LPBKD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FRF_AB_XX_LPBKD@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh40:
	adrp	x8, _FRF_AB_XX_LPBKC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FRF_AB_XX_LPBKC@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh43:
	adrp	x8, _FRF_AB_XX_LPBKB@GOTPAGE
Lloh44:
	ldr	x8, [x8, _FRF_AB_XX_LPBKB@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh46:
	adrp	x8, _FRF_AB_XX_LPBKA@GOTPAGE
Lloh47:
	ldr	x8, [x8, _FRF_AB_XX_LPBKA@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_EF4_SET_OWORD_FIELD
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_LOOPBACK_XGXS,8,3              ; @LOOPBACK_XGXS
	.comm	_LOOPBACK_XAUI,8,3              ; @LOOPBACK_XAUI
	.comm	_LOOPBACK_XGMII,8,3             ; @LOOPBACK_XGMII
	.comm	_FR_AB_XX_CORE_STAT,4,2         ; @FR_AB_XX_CORE_STAT
	.comm	_FRF_AB_XX_XGXS_LB_EN,4,2       ; @FRF_AB_XX_XGXS_LB_EN
	.comm	_FRF_AB_XX_XGMII_LB_EN,4,2      ; @FRF_AB_XX_XGMII_LB_EN
	.comm	_FR_AB_XX_SD_CTL,4,2            ; @FR_AB_XX_SD_CTL
	.comm	_FRF_AB_XX_LPBKA,4,2            ; @FRF_AB_XX_LPBKA
	.comm	_FRF_AB_XX_FORCE_SIG,4,2        ; @FRF_AB_XX_FORCE_SIG
	.comm	_FFE_AB_XX_FORCE_SIG_ALL_LANES,4,2 ; @FFE_AB_XX_FORCE_SIG_ALL_LANES
	.comm	_FRF_AB_XX_LPBKD,4,2            ; @FRF_AB_XX_LPBKD
	.comm	_FRF_AB_XX_LPBKC,4,2            ; @FRF_AB_XX_LPBKC
	.comm	_FRF_AB_XX_LPBKB,4,2            ; @FRF_AB_XX_LPBKB
	.no_dead_strip	_falcon_reconfigure_xgxs_core
.subsections_via_symbols
