	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xaui_serdes_reset
_xaui_serdes_reset:                     ## @xaui_serdes_reset
	.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), %r12
	movq	8(%rdi), %r14
	movq	_A_XGM_SERDES_CTRL0@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	(%r14), %rbx
	callq	_macidx
	movl	$143, %edx
	orl	(%rbx,%rax,4), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_t3_write_reg
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_t3_read_reg
	movl	$15, %edi
	callq	_udelay
	leaq	_xaui_serdes_reset.clear(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_t3_set_reg_field
	movl	$15, %edi
	callq	_udelay
	incq	%r13
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @xaui_serdes_reset.clear
_xaui_serdes_reset.clear:
	.long	137                             ## 0x89
	.long	129                             ## 0x81
	.long	133                             ## 0x85
	.long	135                             ## 0x87
	.long	128                             ## 0x80
	.long	131                             ## 0x83

	.comm	_A_XGM_SERDES_CTRL0,8,3         ## @A_XGM_SERDES_CTRL0
	.no_dead_strip	_xaui_serdes_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xaui_serdes_reset
_xaui_serdes_reset:                     ; @xaui_serdes_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _A_XGM_SERDES_CTRL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_XGM_SERDES_CTRL0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x19, [x0]
	add	x20, x9, x8
	ldr	x21, [x19]
	bl	_macidx
	ldr	w8, [x21, x0, lsl #2]
	mov	w9, #143
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_t3_write_reg
	mov	x0, x19
	mov	x1, x20
	bl	_t3_read_reg
	mov	w0, #15
	bl	_udelay
Lloh3:
	adrp	x21, _xaui_serdes_reset.clear@PAGE
Lloh4:
	add	x21, x21, _xaui_serdes_reset.clear@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21, x22, lsl #2]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_t3_set_reg_field
	mov	w0, #15
	bl	_udelay
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @xaui_serdes_reset.clear
_xaui_serdes_reset.clear:
	.long	137                             ; 0x89
	.long	129                             ; 0x81
	.long	133                             ; 0x85
	.long	135                             ; 0x87
	.long	128                             ; 0x80
	.long	131                             ; 0x83

	.comm	_A_XGM_SERDES_CTRL0,8,3         ; @A_XGM_SERDES_CTRL0
	.no_dead_strip	_xaui_serdes_reset
.subsections_via_symbols
