	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_get_serdes_regs
_ql_get_serdes_regs:                    ## @ql_get_serdes_regs
	.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	%rsi, %r13
	movq	%rdi, %r12
	movb	(%rdi), %bl
	movq	_XG_SERDES_XAUI_HSS_PCS_START@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	_ql_read_other_func_serdes_reg
	testb	$1, %bl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, %ecx
	jmp	LBB0_3
LBB0_1:
	movl	-44(%rbp), %ecx
	movq	_XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	notl	%ecx
	testl	%ecx, %eax
	setne	%r14b
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ql_read_serdes_reg
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, %ecx
	jmp	LBB0_6
LBB0_4:
	movl	-44(%rbp), %ecx
	movq	_XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	notl	%ecx
	testl	%ecx, %eax
	setne	%bl
	movq	_XG_SERDES_ADDR_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ql_read_serdes_reg
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	$0, -44(%rbp)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movl	-44(%rbp), %eax
LBB0_9:
	movzbl	%bl, %r9d
	movzbl	%r14b, %r14d
	movq	_XG_SERDES_ADDR_XFI1_PWR_UP@GOTPCREL(%rip), %rdx
	notl	%eax
	xorl	%ecx, %ecx
	movl	$0, %ebx
	testl	%eax, (%rdx)
	jne	LBB0_11
## %bb.10:
	movl	(%r12), %ebx
	andl	$1, %ebx
	movl	%ebx, %ecx
	xorl	$1, %ecx
LBB0_11:
	movq	_XG_SERDES_ADDR_XFI2_PWR_UP@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movl	(%r12), %edx
	andl	$1, %edx
	xorl	%esi, %esi
	testq	%rdx, %rdx
	sete	%sil
	movl	$1, %r8d
	movl	$1, %edi
	cmovel	%ecx, %edi
	testl	%eax, %eax
	cmovnel	%ecx, %edi
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movq	(%r13,%rdx,8), %r15
	movl	%edx, %ecx
	orl	%eax, %ecx
	cmovel	%r8d, %ebx
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movq	(%r13,%rsi,8), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%r15, %rcx
	movl	%r9d, %ebx
	movl	%r9d, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	4(%r13), %rdx
	leaq	4(%r15), %rcx
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	8(%r13), %rdx
	leaq	8(%r15), %rcx
	movq	%r12, %rdi
	movl	$8, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	12(%r13), %rdx
	leaq	12(%r15), %rcx
	movq	%r12, %rdi
	movl	$12, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	16(%r13), %rdx
	leaq	16(%r15), %rcx
	movq	%r12, %rdi
	movl	$16, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	20(%r13), %rdx
	leaq	20(%r15), %rcx
	movq	%r12, %rdi
	movl	$20, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	24(%r13), %rdx
	leaq	24(%r15), %rcx
	movq	%r12, %rdi
	movl	$24, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	28(%r13), %rdx
	leaq	28(%r15), %rcx
	movq	%r12, %rdi
	movl	$28, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	32(%r13), %rdx
	leaq	32(%r15), %rcx
	movq	%r12, %rdi
	movl	$32, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	36(%r13), %rdx
	leaq	36(%r15), %rcx
	movq	%r12, %rdi
	movl	$36, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	40(%r13), %rdx
	leaq	40(%r15), %rcx
	movq	%r12, %rdi
	movl	$40, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	44(%r13), %rdx
	leaq	44(%r15), %rcx
	movq	%r12, %rdi
	movl	$44, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	leaq	48(%r13), %rdx
	leaq	48(%r15), %rcx
	movq	%r12, %rdi
	movl	$48, %esi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	addq	$52, %r13
	addq	$52, %r15
	movq	%r12, %rdi
	movl	$52, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%ebx, %r12d
	andl	$1, %eax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx,%rax,8), %r15
	movq	16(%rdx,%rcx,8), %rbx
	movl	$2044, %r13d                    ## imm = 0x7FC
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	$4, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	callq	_ql_get_both_serdes
	addq	$4, %rbx
	addq	$4, %r15
	cmpl	$2173, %r13d                    ## imm = 0x87D
	jb	LBB0_12
## %bb.13:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %eax
	andl	$1, %eax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	32(%rdx,%rax,8), %r14
	movq	32(%rdx,%rcx,8), %rbx
	movq	%r15, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	4(%rbx), %rdx
	leaq	4(%r14), %rcx
	movq	%r15, %rdi
	movl	$4100, %esi                     ## imm = 0x1004
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	8(%rbx), %rdx
	leaq	8(%r14), %rcx
	movq	%r15, %rdi
	movl	$4104, %esi                     ## imm = 0x1008
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	12(%rbx), %rdx
	leaq	12(%r14), %rcx
	movq	%r15, %rdi
	movl	$4108, %esi                     ## imm = 0x100C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	16(%rbx), %rdx
	leaq	16(%r14), %rcx
	movq	%r15, %rdi
	movl	$4112, %esi                     ## imm = 0x1010
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	20(%rbx), %rdx
	leaq	20(%r14), %rcx
	movq	%r15, %rdi
	movl	$4116, %esi                     ## imm = 0x1014
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	24(%rbx), %rdx
	leaq	24(%r14), %rcx
	movq	%r15, %rdi
	movl	$4120, %esi                     ## imm = 0x1018
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	28(%rbx), %rdx
	leaq	28(%r14), %rcx
	movq	%r15, %rdi
	movl	$4124, %esi                     ## imm = 0x101C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	32(%rbx), %rdx
	leaq	32(%r14), %rcx
	movq	%r15, %rdi
	movl	$4128, %esi                     ## imm = 0x1020
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	36(%rbx), %rdx
	leaq	36(%r14), %rcx
	movq	%r15, %rdi
	movl	$4132, %esi                     ## imm = 0x1024
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	40(%rbx), %rdx
	leaq	40(%r14), %rcx
	movq	%r15, %rdi
	movl	$4136, %esi                     ## imm = 0x1028
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	44(%rbx), %rdx
	leaq	44(%r14), %rcx
	movq	%r15, %rdi
	movl	$4140, %esi                     ## imm = 0x102C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	48(%rbx), %rdx
	leaq	48(%r14), %rcx
	movq	%r15, %rdi
	movl	$4144, %esi                     ## imm = 0x1030
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	addq	$52, %rbx
	addq	$52, %r14
	movq	%r15, %rdi
	movl	$4148, %esi                     ## imm = 0x1034
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	movl	(%r15), %eax
	andl	$1, %eax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	48(%rdx,%rax,8), %r14
	movq	48(%rdx,%rcx,8), %rbx
	movq	%r15, %rdi
	movl	$4176, %esi                     ## imm = 0x1050
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	4(%rbx), %rdx
	leaq	4(%r14), %rcx
	movq	%r15, %rdi
	movl	$4180, %esi                     ## imm = 0x1054
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	8(%rbx), %rdx
	leaq	8(%r14), %rcx
	movq	%r15, %rdi
	movl	$4184, %esi                     ## imm = 0x1058
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	12(%rbx), %rdx
	leaq	12(%r14), %rcx
	movq	%r15, %rdi
	movl	$4188, %esi                     ## imm = 0x105C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	16(%rbx), %rdx
	leaq	16(%r14), %rcx
	movq	%r15, %rdi
	movl	$4192, %esi                     ## imm = 0x1060
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	20(%rbx), %rdx
	leaq	20(%r14), %rcx
	movq	%r15, %rdi
	movl	$4196, %esi                     ## imm = 0x1064
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	24(%rbx), %rdx
	leaq	24(%r14), %rcx
	movq	%r15, %rdi
	movl	$4200, %esi                     ## imm = 0x1068
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	28(%rbx), %rdx
	leaq	28(%r14), %rcx
	movq	%r15, %rdi
	movl	$4204, %esi                     ## imm = 0x106C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	32(%rbx), %rdx
	leaq	32(%r14), %rcx
	movq	%r15, %rdi
	movl	$4208, %esi                     ## imm = 0x1070
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	36(%rbx), %rdx
	leaq	36(%r14), %rcx
	movq	%r15, %rdi
	movl	$4212, %esi                     ## imm = 0x1074
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	40(%rbx), %rdx
	leaq	40(%r14), %rcx
	movq	%r15, %rdi
	movl	$4216, %esi                     ## imm = 0x1078
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	addq	$44, %rbx
	addq	$44, %r14
	movq	%r15, %rdi
	movl	$4220, %esi                     ## imm = 0x107C
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	movl	(%r15), %eax
	andl	$1, %eax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	64(%rdx,%rax,8), %r14
	movq	64(%rdx,%rcx,8), %rbx
	movq	%r15, %rdi
	movl	$6144, %esi                     ## imm = 0x1800
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	4(%rbx), %rdx
	leaq	4(%r14), %rcx
	movq	%r15, %rdi
	movl	$6148, %esi                     ## imm = 0x1804
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	8(%rbx), %rdx
	leaq	8(%r14), %rcx
	movq	%r15, %rdi
	movl	$6152, %esi                     ## imm = 0x1808
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	12(%rbx), %rdx
	leaq	12(%r14), %rcx
	movq	%r15, %rdi
	movl	$6156, %esi                     ## imm = 0x180C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	16(%rbx), %rdx
	leaq	16(%r14), %rcx
	movq	%r15, %rdi
	movl	$6160, %esi                     ## imm = 0x1810
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	20(%rbx), %rdx
	leaq	20(%r14), %rcx
	movq	%r15, %rdi
	movl	$6164, %esi                     ## imm = 0x1814
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	24(%rbx), %rdx
	leaq	24(%r14), %rcx
	movq	%r15, %rdi
	movl	$6168, %esi                     ## imm = 0x1818
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	28(%rbx), %rdx
	leaq	28(%r14), %rcx
	movq	%r15, %rdi
	movl	$6172, %esi                     ## imm = 0x181C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	32(%rbx), %rdx
	leaq	32(%r14), %rcx
	movq	%r15, %rdi
	movl	$6176, %esi                     ## imm = 0x1820
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	36(%rbx), %rdx
	leaq	36(%r14), %rcx
	movq	%r15, %rdi
	movl	$6180, %esi                     ## imm = 0x1824
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	40(%rbx), %rdx
	leaq	40(%r14), %rcx
	movq	%r15, %rdi
	movl	$6184, %esi                     ## imm = 0x1828
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	44(%rbx), %rdx
	leaq	44(%r14), %rcx
	movq	%r15, %rdi
	movl	$6188, %esi                     ## imm = 0x182C
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	48(%rbx), %rdx
	leaq	48(%r14), %rcx
	movq	%r15, %rdi
	movl	$6192, %esi                     ## imm = 0x1830
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	leaq	52(%rbx), %rdx
	leaq	52(%r14), %rcx
	movq	%r15, %rdi
	movl	$6196, %esi                     ## imm = 0x1834
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	addq	$56, %rbx
	addq	$56, %r14
	movq	%r15, %rdi
	movl	$6200, %esi                     ## imm = 0x1838
	movq	%rbx, %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	movl	(%r15), %eax
	andl	$1, %eax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	80(%rbx,%rax,8), %r14
	movq	80(%rbx,%rcx,8), %r15
	movl	$7168, %ebx                     ## imm = 0x1C00
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	incl	%ebx
	addq	$4, %r15
	addq	$4, %r14
	cmpl	$7200, %ebx                     ## imm = 0x1C20
	jne	LBB0_14
## %bb.15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	andl	$1, %eax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	96(%rdx,%rax,8), %r14
	movq	96(%rdx,%rcx,8), %r15
	movl	$7232, %ebx                     ## imm = 0x1C40
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	incl	%ebx
	addq	$4, %r15
	addq	$4, %r14
	cmpl	$7264, %ebx                     ## imm = 0x1C60
	jne	LBB0_16
## %bb.17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	andl	$1, %eax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	112(%rdx,%rax,8), %r14
	movq	112(%rdx,%rcx,8), %r15
	movl	$7680, %ebx                     ## imm = 0x1E00
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_ql_get_both_serdes
	incl	%ebx
	addq	$4, %r15
	addq	$4, %r14
	cmpl	$7712, %ebx                     ## imm = 0x1E20
	jne	LBB0_18
## %bb.19:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XG_SERDES_XAUI_HSS_PCS_START,4,2 ## @XG_SERDES_XAUI_HSS_PCS_START
	.comm	_XG_SERDES_ADDR_XAUI_PWR_DOWN,4,2 ## @XG_SERDES_ADDR_XAUI_PWR_DOWN
	.comm	_XG_SERDES_ADDR_STS,4,2         ## @XG_SERDES_ADDR_STS
	.comm	_XG_SERDES_ADDR_XFI1_PWR_UP,4,2 ## @XG_SERDES_ADDR_XFI1_PWR_UP
	.comm	_XG_SERDES_ADDR_XFI2_PWR_UP,4,2 ## @XG_SERDES_ADDR_XFI2_PWR_UP
	.no_dead_strip	_ql_get_serdes_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_get_serdes_regs
_ql_get_serdes_regs:                    ; @ql_get_serdes_regs
	.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	x20, x1
	mov	x19, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x21, _XG_SERDES_XAUI_HSS_PCS_START@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XG_SERDES_XAUI_HSS_PCS_START@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_ql_read_other_func_serdes_reg
	tbnz	w22, #0, LBB0_3
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x9, x8
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x22, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w8, [x22]
	str	w8, [sp, #12]
	mov	x9, x8
	b	LBB0_9
LBB0_5:
	ldr	w9, [sp, #12]
Lloh7:
	adrp	x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
LBB0_6:
	bics	wzr, w8, w9
	cset	w23, ne
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ql_read_serdes_reg
	cbz	w0, LBB0_12
; %bb.7:
Lloh10:
	adrp	x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	b	LBB0_11
LBB0_8:
	ldr	w9, [sp, #12]
	ldr	w8, [x22]
LBB0_9:
	bics	wzr, w8, w9
	cset	w23, ne
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ql_read_serdes_reg
	cbz	w0, LBB0_13
; %bb.10:
	ldr	w8, [x22]
LBB0_11:
	str	w8, [sp, #12]
	mov	x9, x8
	b	LBB0_14
LBB0_12:
	ldr	w9, [sp, #12]
Lloh13:
	adrp	x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XG_SERDES_ADDR_XAUI_PWR_DOWN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	b	LBB0_14
LBB0_13:
	ldr	w9, [sp, #12]
	ldr	w8, [x22]
LBB0_14:
	bics	wzr, w8, w9
	cset	w24, ne
Lloh16:
	adrp	x8, _XG_SERDES_ADDR_STS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XG_SERDES_ADDR_STS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ql_read_serdes_reg
	cbz	w0, LBB0_16
; %bb.15:
	mov	w8, #0
	str	wzr, [sp, #12]
	b	LBB0_17
LBB0_16:
	ldr	w8, [sp, #12]
LBB0_17:
Lloh19:
	adrp	x9, _XG_SERDES_ADDR_XFI1_PWR_UP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _XG_SERDES_ADDR_XFI1_PWR_UP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_19
; %bb.18:
	ldr	w9, [x19]
	and	w9, w9, #0x1
	eor	w10, w9, #0x1
	b	LBB0_20
LBB0_19:
	mov	w10, #0
	mov	w9, #0
LBB0_20:
Lloh22:
	adrp	x11, _XG_SERDES_ADDR_XFI2_PWR_UP@GOTPAGE
Lloh23:
	ldr	x11, [x11, _XG_SERDES_ADDR_XFI2_PWR_UP@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	and	w8, w11, w8
	ldr	w12, [x19]
	and	x12, x12, #0x1
	cmp	w12, #0
	cset	w13, eq
	csinc	w14, w10, wzr, eq
	cmp	w8, w11
	csel	w21, w14, w10, eq
	cset	w8, eq
	tst	w8, w13
	csinc	w22, w9, wzr, eq
	ldr	x25, [x20, x12, lsl #3]
	ldr	x26, [x20, w13, uxtw #3]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #4
	add	x3, x25, #4
	mov	x0, x19
	mov	w1, #4
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #8
	add	x3, x25, #8
	mov	x0, x19
	mov	w1, #8
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #12
	add	x3, x25, #12
	mov	x0, x19
	mov	w1, #12
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #16
	add	x3, x25, #16
	mov	w27, #16
	mov	x0, x19
	mov	w1, #16
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #20
	add	x3, x25, #20
	mov	x0, x19
	mov	w1, #20
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #24
	add	x3, x25, #24
	mov	w28, #24
	mov	x0, x19
	mov	w1, #24
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #28
	add	x3, x25, #28
	mov	x0, x19
	mov	w1, #28
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #32
	add	x3, x25, #32
	mov	x0, x19
	mov	w1, #32
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #36
	add	x3, x25, #36
	mov	x0, x19
	mov	w1, #36
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #40
	add	x3, x25, #40
	mov	x0, x19
	mov	w1, #40
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #44
	add	x3, x25, #44
	mov	x0, x19
	mov	w1, #44
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #48
	add	x3, x25, #48
	mov	x0, x19
	mov	w1, #48
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x2, x26, #52
	add	x3, x25, #52
	mov	x0, x19
	mov	w1, #52
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	mov	x25, #0
	ldr	w8, [x19]
	tst	w8, #0x1
	csel	x8, x28, x27, eq
	csel	x9, x27, x28, eq
	ldr	x26, [x20, x9]
	ldr	x27, [x20, x8]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	add	x3, x26, x25
	add	x2, x27, x25
	add	w1, w25, #2048
	mov	x0, x19
	mov	x4, x24
	mov	x5, x23
	bl	_ql_get_both_serdes
	add	x25, x25, #4
	add	w8, w25, #2044
	cmp	w8, #2173
	b.lo	LBB0_21
; %bb.22:
	ldr	w8, [x19]
	tst	w8, #0x1
	mov	w8, #32
	mov	w9, #40
	csel	x10, x9, x8, eq
	csel	x8, x8, x9, eq
	ldr	x23, [x20, x8]
	ldr	x24, [x20, x10]
	mov	x0, x19
	mov	w1, #4096
	mov	x2, x24
	mov	x3, x23
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #4
	add	x3, x23, #4
	mov	x0, x19
	mov	w1, #4100
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #8
	add	x3, x23, #8
	mov	x0, x19
	mov	w1, #4104
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #12
	add	x3, x23, #12
	mov	x0, x19
	mov	w1, #4108
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #16
	add	x3, x23, #16
	mov	x0, x19
	mov	w1, #4112
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #20
	add	x3, x23, #20
	mov	x0, x19
	mov	w1, #4116
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #24
	add	x3, x23, #24
	mov	x0, x19
	mov	w1, #4120
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #28
	add	x3, x23, #28
	mov	x0, x19
	mov	w1, #4124
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #32
	add	x3, x23, #32
	mov	x0, x19
	mov	w1, #4128
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #36
	add	x3, x23, #36
	mov	x0, x19
	mov	w1, #4132
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #40
	add	x3, x23, #40
	mov	x0, x19
	mov	w1, #4136
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #44
	add	x3, x23, #44
	mov	x0, x19
	mov	w1, #4140
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #48
	add	x3, x23, #48
	mov	x0, x19
	mov	w1, #4144
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #52
	add	x3, x23, #52
	mov	x0, x19
	mov	w1, #4148
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	ldr	w8, [x19]
	tst	w8, #0x1
	mov	w8, #48
	mov	w9, #56
	csel	x10, x9, x8, eq
	csel	x8, x8, x9, eq
	ldr	x23, [x20, x8]
	ldr	x24, [x20, x10]
	mov	x0, x19
	mov	w1, #4176
	mov	x2, x24
	mov	x3, x23
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #4
	add	x3, x23, #4
	mov	x0, x19
	mov	w1, #4180
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #8
	add	x3, x23, #8
	mov	x0, x19
	mov	w1, #4184
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #12
	add	x3, x23, #12
	mov	x0, x19
	mov	w1, #4188
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #16
	add	x3, x23, #16
	mov	x0, x19
	mov	w1, #4192
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #20
	add	x3, x23, #20
	mov	x0, x19
	mov	w1, #4196
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #24
	add	x3, x23, #24
	mov	x0, x19
	mov	w1, #4200
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #28
	add	x3, x23, #28
	mov	x0, x19
	mov	w1, #4204
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #32
	add	x3, x23, #32
	mov	x0, x19
	mov	w1, #4208
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #36
	add	x3, x23, #36
	mov	x0, x19
	mov	w1, #4212
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #40
	add	x3, x23, #40
	mov	x0, x19
	mov	w1, #4216
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #44
	add	x3, x23, #44
	mov	x0, x19
	mov	w1, #4220
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	ldr	w8, [x19]
	tst	w8, #0x1
	mov	w8, #64
	mov	w9, #72
	csel	x10, x9, x8, eq
	csel	x8, x8, x9, eq
	ldr	x23, [x20, x8]
	ldr	x24, [x20, x10]
	mov	x0, x19
	mov	w1, #6144
	mov	x2, x24
	mov	x3, x23
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #4
	add	x3, x23, #4
	mov	x0, x19
	mov	w1, #6148
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #8
	add	x3, x23, #8
	mov	x0, x19
	mov	w1, #6152
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #12
	add	x3, x23, #12
	mov	x0, x19
	mov	w1, #6156
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #16
	add	x3, x23, #16
	mov	x0, x19
	mov	w1, #6160
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #20
	add	x3, x23, #20
	mov	x0, x19
	mov	w1, #6164
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #24
	add	x3, x23, #24
	mov	x0, x19
	mov	w1, #6168
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #28
	add	x3, x23, #28
	mov	x0, x19
	mov	w1, #6172
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #32
	add	x3, x23, #32
	mov	x0, x19
	mov	w1, #6176
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #36
	add	x3, x23, #36
	mov	x0, x19
	mov	w1, #6180
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #40
	add	x3, x23, #40
	mov	x0, x19
	mov	w1, #6184
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #44
	add	x3, x23, #44
	mov	x0, x19
	mov	w1, #6188
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #48
	add	x3, x23, #48
	mov	x0, x19
	mov	w1, #6192
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #52
	add	x3, x23, #52
	mov	x0, x19
	mov	w1, #6196
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	x2, x24, #56
	add	x3, x23, #56
	mov	x0, x19
	mov	w1, #6200
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	mov	x24, #0
	ldr	w8, [x19]
	tst	w8, #0x1
	mov	w8, #80
	mov	w9, #88
	csel	x10, x9, x8, eq
	csel	x8, x8, x9, eq
	ldr	x25, [x20, x8]
	ldr	x26, [x20, x10]
	mov	w23, #7168
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	add	x3, x25, x24
	add	x2, x26, x24
	mov	x0, x19
	mov	x1, x23
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	w23, w23, #1
	add	x24, x24, #4
	cmp	w24, #128
	b.ne	LBB0_23
; %bb.24:
	mov	x24, #0
	ldr	w8, [x19]
	tst	w8, #0x1
	mov	w8, #96
	mov	w9, #104
	csel	x10, x9, x8, eq
	csel	x8, x8, x9, eq
	ldr	x25, [x20, x8]
	ldr	x26, [x20, x10]
	mov	w23, #7232
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x3, x25, x24
	add	x2, x26, x24
	mov	x0, x19
	mov	x1, x23
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	w23, w23, #1
	add	x24, x24, #4
	cmp	w24, #128
	b.ne	LBB0_25
; %bb.26:
	mov	x23, #0
	ldr	w8, [x19]
	tst	w8, #0x1
	mov	w8, #112
	mov	w9, #120
	csel	x10, x9, x8, eq
	csel	x8, x8, x9, eq
	ldr	x24, [x20, x8]
	ldr	x25, [x20, x10]
	mov	w20, #7680
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	add	x3, x24, x23
	add	x2, x25, x23
	mov	x0, x19
	mov	x1, x20
	mov	x4, x21
	mov	x5, x22
	bl	_ql_get_both_serdes
	add	w20, w20, #1
	add	x23, x23, #4
	cmp	w23, #128
	b.ne	LBB0_27
; %bb.28:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_XG_SERDES_XAUI_HSS_PCS_START,4,2 ; @XG_SERDES_XAUI_HSS_PCS_START
	.comm	_XG_SERDES_ADDR_XAUI_PWR_DOWN,4,2 ; @XG_SERDES_ADDR_XAUI_PWR_DOWN
	.comm	_XG_SERDES_ADDR_STS,4,2         ; @XG_SERDES_ADDR_STS
	.comm	_XG_SERDES_ADDR_XFI1_PWR_UP,4,2 ; @XG_SERDES_ADDR_XFI1_PWR_UP
	.comm	_XG_SERDES_ADDR_XFI2_PWR_UP,4,2 ; @XG_SERDES_ADDR_XFI2_PWR_UP
	.no_dead_strip	_ql_get_serdes_regs
.subsections_via_symbols
