	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function my3126_get_link_status
_my3126_get_link_status:                ## @my3126_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r15
	movq	%r15, %rcx
	callq	_cphy_mdio_read
	movl	-44(%rbp), %r12d
	movq	_A_ELMER0_GPO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_t1_tpi_read
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	_MDIO_STAT1_LSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %eax
	andl	%ebx, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_is_T2
	andl	%ebx, %r12d
	je	LBB0_6
## %bb.1:
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	andb	$-2, -43(%rbp)
	jmp	LBB0_3
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	orb	$1, -43(%rbp)
LBB0_3:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_A_ELMER0_GPO@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_t1_tpi_write
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:
	movq	_PAUSE_RX@GOTPCREL(%rip), %rax
	movq	_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
LBB0_12:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, %rdi
	callq	_t1_is_T1B
	testq	%rax, %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_A_ELMER0_GPO@GOTPCREL(%rip), %rax
	je	LBB0_10
## %bb.5:
	andb	$-9, -42(%rbp)
	jmp	LBB0_10
LBB0_8:
	movq	%r13, %rdi
	callq	_t1_is_T1B
	testq	%rax, %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_A_ELMER0_GPO@GOTPCREL(%rip), %rax
	je	LBB0_10
## %bb.9:
	orb	$8, -42(%rbp)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_STAT1,4,2                 ## @MDIO_STAT1
	.comm	_A_ELMER0_GPO,4,2               ## @A_ELMER0_GPO
	.comm	_MDIO_STAT1_LSTATUS,4,2         ## @MDIO_STAT1_LSTATUS
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_PAUSE_RX,4,2                   ## @PAUSE_RX
	.comm	_PAUSE_TX,4,2                   ## @PAUSE_TX
	.no_dead_strip	_my3126_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 my3126_get_link_status
_my3126_get_link_status:                ; @my3126_get_link_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MDIO_STAT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_STAT1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_cphy_mdio_read
	ldr	w26, [sp, #12]
Lloh6:
	adrp	x25, _A_ELMER0_GPO@GOTPAGE
Lloh7:
	ldr	x25, [x25, _A_ELMER0_GPO@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x23
	bl	_t1_tpi_read
	ldr	w8, [sp, #12]
	str	w8, [x22]
Lloh8:
	adrp	x8, _MDIO_STAT1_LSTATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDIO_STAT1_LSTATUS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w26, w8, w26
	str	w26, [x24]
	mov	x0, x23
	bl	_is_T2
	cbz	w26, LBB0_3
; %bb.1:
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffeff
	b	LBB0_9
LBB0_3:
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x100
	b	LBB0_9
LBB0_5:
	mov	x0, x23
	bl	_t1_is_T1B
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfff7ffff
	b	LBB0_9
LBB0_7:
	mov	x0, x23
	bl	_t1_is_T1B
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x80000
LBB0_9:
	str	w8, [sp, #12]
LBB0_10:
	ldr	w1, [x25]
	ldr	w2, [sp, #12]
	mov	x0, x23
	bl	_t1_tpi_write
	ldr	w8, [sp, #12]
	str	w8, [x22]
Lloh11:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh14:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
	cbz	x19, LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _PAUSE_RX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAUSE_RX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _PAUSE_TX@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PAUSE_TX@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	mov	w0, #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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_STAT1,4,2                 ; @MDIO_STAT1
	.comm	_A_ELMER0_GPO,4,2               ; @A_ELMER0_GPO
	.comm	_MDIO_STAT1_LSTATUS,4,2         ; @MDIO_STAT1_LSTATUS
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_PAUSE_RX,4,2                   ; @PAUSE_RX
	.comm	_PAUSE_TX,4,2                   ; @PAUSE_TX
	.no_dead_strip	_my3126_get_link_status
.subsections_via_symbols
