	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xaui_direct_get_link_status
_xaui_direct_get_link_status:           ## @xaui_direct_get_link_status
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	4(%rdi), %r13d
	movq	_A_XGM_SERDES_STAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_XGM_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_t3_read_reg
	movl	%eax, %r15d
	movl	(%rbx), %r14d
	movq	_A_XGM_SERDES_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_XGM_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_t3_read_reg
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movl	(%rbx), %r15d
	movq	_A_XGM_SERDES_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_XGM_REG
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_t3_read_reg
	movl	%eax, %r15d
	movl	(%rbx), %ebx
	movq	_A_XGM_SERDES_STAT3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_XGM_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_t3_read_reg
	orl	%r15d, %eax
	orl	%r14d, %eax
	movq	_F_LOWSIG0@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	sete	%dl
	movl	%edx, (%r12)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_2:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
LBB0_4:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_6:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_XGM_SERDES_STAT0,4,2         ## @A_XGM_SERDES_STAT0
	.comm	_A_XGM_SERDES_STAT1,4,2         ## @A_XGM_SERDES_STAT1
	.comm	_A_XGM_SERDES_STAT2,4,2         ## @A_XGM_SERDES_STAT2
	.comm	_A_XGM_SERDES_STAT3,4,2         ## @A_XGM_SERDES_STAT3
	.comm	_F_LOWSIG0,4,2                  ## @F_LOWSIG0
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_xaui_direct_get_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xaui_direct_get_link_status
_xaui_direct_get_link_status:           ; @xaui_direct_get_link_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	cbz	x1, LBB0_2
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	ldp	w24, w23, [x0]
Lloh0:
	adrp	x8, _A_XGM_SERDES_STAT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_XGM_SERDES_STAT0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_XGM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_t3_read_reg
	mov	x24, x0
	ldr	w25, [x22]
Lloh3:
	adrp	x8, _A_XGM_SERDES_STAT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_XGM_SERDES_STAT1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_XGM_REG
	mov	x1, x0
	mov	x0, x25
	bl	_t3_read_reg
	orr	w25, w0, w24
	ldr	w24, [x22]
Lloh6:
	adrp	x8, _A_XGM_SERDES_STAT2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_XGM_SERDES_STAT2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_XGM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_t3_read_reg
	orr	w24, w25, w0
	ldr	w22, [x22]
Lloh9:
	adrp	x8, _A_XGM_SERDES_STAT3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _A_XGM_SERDES_STAT3@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_XGM_REG
	mov	x1, x0
	mov	x0, x22
	bl	_t3_read_reg
	orr	w8, w24, w0
Lloh12:
	adrp	x9, _F_LOWSIG0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _F_LOWSIG0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w8, w9
	cset	w8, eq
	str	w8, [x21]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_A_XGM_SERDES_STAT0,4,2         ; @A_XGM_SERDES_STAT0
	.comm	_A_XGM_SERDES_STAT1,4,2         ; @A_XGM_SERDES_STAT1
	.comm	_A_XGM_SERDES_STAT2,4,2         ; @A_XGM_SERDES_STAT2
	.comm	_A_XGM_SERDES_STAT3,4,2         ; @A_XGM_SERDES_STAT3
	.comm	_F_LOWSIG0,4,2                  ; @F_LOWSIG0
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_xaui_direct_get_link_status
.subsections_via_symbols
