	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1e_check_link
_atl1e_check_link:                      ## @atl1e_check_link
	.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, %r13
	leaq	32(%rdi), %rbx
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r14
	movq	_MII_BMSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-64(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_atl1e_read_phy_reg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_atl1e_read_phy_reg
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -64(%rbp)
	je	LBB0_1
## %bb.3:
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_atl1e_get_speed_and_duplex
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	-72(%rbp), %rax
	cmpq	%rax, (%r13)
	jne	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rcx
	cmpq	%rcx, 8(%r13)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_AT_READ_REG
	movq	_MAC_CTRL_RX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_SPEED_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_netif_stop_queue
	jmp	LBB0_10
LBB0_5:
	movq	-48(%rbp), %rcx
LBB0_7:
	movq	%rax, (%r13)
	movq	%rcx, 8(%r13)
	movq	%r13, %rdi
	callq	_atl1e_setup_mac_ctrl
	movq	_atl1e_driver_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	(%r13), %r8
	movq	8(%r13), %rax
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
LBB0_8:
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_10:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_LSTATUS,8,3               ## @BMSR_LSTATUS
	.comm	_REG_MAC_CTRL,4,2               ## @REG_MAC_CTRL
	.comm	_MAC_CTRL_RX_EN,4,2             ## @MAC_CTRL_RX_EN
	.comm	_SPEED_0,8,3                    ## @SPEED_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s NIC Link is Up<%d Mbps %s>\n"

	.comm	_atl1e_driver_name,4,2          ## @atl1e_driver_name
	.comm	_FULL_DUPLEX,8,3                ## @FULL_DUPLEX
L_.str.1:                               ## @.str.1
	.asciz	"Full Duplex"

L_.str.2:                               ## @.str.2
	.asciz	"Half Duplex"

	.no_dead_strip	_atl1e_check_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1e_check_link
_atl1e_check_link:                      ; @atl1e_check_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	add	x22, x0, #32
	ldp	x21, x19, [x0, #16]
Lloh0:
	adrp	x23, _MII_BMSR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MII_BMSR@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x22
	bl	_atl1e_read_phy_reg
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x22
	bl	_atl1e_read_phy_reg
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _BMSR_LSTATUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_4
; %bb.1:
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x22
	bl	_atl1e_get_speed_and_duplex
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	x9, [x20]
	ldr	x8, [sp, #24]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x10, [x20, #8]
	ldr	x9, [sp, #16]
	cmp	x10, x9
	b.ne	LBB0_7
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	x0, LBB0_10
; %bb.5:
Lloh5:
	adrp	x21, _REG_MAC_CTRL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_MAC_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_AT_READ_REG
Lloh7:
	adrp	x8, _MAC_CTRL_RX_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAC_CTRL_RX_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x22
	bl	_AT_WRITE_REG
Lloh10:
	adrp	x8, _SPEED_0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPEED_0@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_netif_stop_queue
	b	LBB0_10
LBB0_6:
	ldr	x9, [sp, #16]
LBB0_7:
	stp	x8, x9, [x20]
	mov	x0, x20
	bl	_atl1e_setup_mac_ctrl
Lloh13:
	adrp	x8, _atl1e_driver_name@GOTPAGE
Lloh14:
	ldr	x8, [x8, _atl1e_driver_name@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x19]
	ldp	x4, x8, [x20]
Lloh16:
	adrp	x9, _FULL_DUPLEX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FULL_DUPLEX@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh21:
	adrp	x11, l_.str.1@PAGE
Lloh22:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x5, x11, x10, eq
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_info
LBB0_8:
	mov	x0, x19
	bl	_netif_carrier_ok
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_LSTATUS,8,3               ; @BMSR_LSTATUS
	.comm	_REG_MAC_CTRL,4,2               ; @REG_MAC_CTRL
	.comm	_MAC_CTRL_RX_EN,4,2             ; @MAC_CTRL_RX_EN
	.comm	_SPEED_0,8,3                    ; @SPEED_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s NIC Link is Up<%d Mbps %s>\n"

	.comm	_atl1e_driver_name,4,2          ; @atl1e_driver_name
	.comm	_FULL_DUPLEX,8,3                ; @FULL_DUPLEX
l_.str.1:                               ; @.str.1
	.asciz	"Full Duplex"

l_.str.2:                               ; @.str.2
	.asciz	"Half Duplex"

	.no_dead_strip	_atl1e_check_link
.subsections_via_symbols
