	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_link_change
_amd8111e_link_change:                  ## @amd8111e_link_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_STAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	_LINK_STATS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.1:
	movq	_AUTONEG_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_14:
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_AUTONEG_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_netif_carrier_off
	jmp	LBB0_15
LBB0_2:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	_FULL_DPLX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_5
## %bb.6:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	movq	_SPEED_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	sarl	$7, %eax
	movq	_PHY_SPEED_10@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_9
## %bb.8:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_PHY_SPEED_100@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_10
## %bb.11:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_13
LBB0_10:
	movq	8(%rbx), %rax
LBB0_13:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_netif_carrier_on
LBB0_15:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAT0,8,3                      ## @STAT0
	.comm	_LINK_STATS,4,2                 ## @LINK_STATS
	.comm	_AUTONEG_COMPLETE,4,2           ## @AUTONEG_COMPLETE
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_FULL_DPLX,4,2                  ## @FULL_DPLX
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_SPEED_MASK,4,2                 ## @SPEED_MASK
	.comm	_PHY_SPEED_10,4,2               ## @PHY_SPEED_10
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_PHY_SPEED_100,4,2              ## @PHY_SPEED_100
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link is Up. Speed is %s Mbps %s Duplex\n"

L_.str.1:                               ## @.str.1
	.asciz	"100"

L_.str.2:                               ## @.str.2
	.asciz	"10"

L_.str.3:                               ## @.str.3
	.asciz	"Full"

L_.str.4:                               ## @.str.4
	.asciz	"Half"

	.comm	_SPEED_INVALID,8,3              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,8,3             ## @DUPLEX_INVALID
	.comm	_AUTONEG_INVALID,4,2            ## @AUTONEG_INVALID
L_.str.5:                               ## @.str.5
	.asciz	"Link is Down.\n"

	.no_dead_strip	_amd8111e_link_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_link_change
_amd8111e_link_change:                  ; @amd8111e_link_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _STAT0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STAT0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _LINK_STATS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINK_STATS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _AUTONEG_COMPLETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUTONEG_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh11:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh13:
	adrp	x8, _FULL_DPLX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FULL_DPLX@GOTPAGEOFF]
Lloh15:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x8]
Lloh18:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
	tst	w10, w0
	csel	x9, x9, x8, eq
	ldr	x9, [x9]
	str	x9, [x20]
Lloh20:
	adrp	x10, _SPEED_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SPEED_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	and	w10, w10, w0
	asr	w11, w10, #7
Lloh23:
	adrp	x10, _PHY_SPEED_10@GOTPAGE
Lloh24:
	ldr	x10, [x10, _PHY_SPEED_10@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x10]
Lloh26:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh27:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
	cmp	w11, w12
	b.ne	LBB0_4
; %bb.2:
Lloh28:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh29:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	b	LBB0_6
LBB0_3:
Lloh31:
	adrp	x8, _SPEED_INVALID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SPEED_INVALID@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _DUPLEX_INVALID@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	stp	x9, x8, [x20]
Lloh37:
	adrp	x8, _AUTONEG_INVALID@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AUTONEG_INVALID@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_netif_carrier_off
	b	LBB0_9
LBB0_4:
Lloh42:
	adrp	x12, _PHY_SPEED_100@GOTPAGE
Lloh43:
	ldr	x12, [x12, _PHY_SPEED_100@GOTPAGEOFF]
Lloh44:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_7
; %bb.5:
	ldr	x11, [x10]
LBB0_6:
	str	x11, [x20, #8]
	b	LBB0_8
LBB0_7:
	ldr	x11, [x20, #8]
LBB0_8:
Lloh45:
	adrp	x12, l_.str.2@PAGE
Lloh46:
	add	x12, x12, l_.str.2@PAGEOFF
	ldr	x10, [x10]
Lloh47:
	adrp	x13, l_.str.1@PAGE
Lloh48:
	add	x13, x13, l_.str.1@PAGEOFF
	cmp	x11, x10
	csel	x10, x13, x12, eq
	ldr	x8, [x8]
Lloh49:
	adrp	x11, l_.str.4@PAGE
Lloh50:
	add	x11, x11, l_.str.4@PAGEOFF
Lloh51:
	adrp	x12, l_.str.3@PAGE
Lloh52:
	add	x12, x12, l_.str.3@PAGEOFF
	cmp	x9, x8
	csel	x8, x12, x11, eq
	stp	x10, x8, [sp]
Lloh53:
	adrp	x1, l_.str@PAGE
Lloh54:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_netif_carrier_on
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_STAT0,8,3                      ; @STAT0
	.comm	_LINK_STATS,4,2                 ; @LINK_STATS
	.comm	_AUTONEG_COMPLETE,4,2           ; @AUTONEG_COMPLETE
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_FULL_DPLX,4,2                  ; @FULL_DPLX
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_SPEED_MASK,4,2                 ; @SPEED_MASK
	.comm	_PHY_SPEED_10,4,2               ; @PHY_SPEED_10
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_PHY_SPEED_100,4,2              ; @PHY_SPEED_100
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link is Up. Speed is %s Mbps %s Duplex\n"

l_.str.1:                               ; @.str.1
	.asciz	"100"

l_.str.2:                               ; @.str.2
	.asciz	"10"

l_.str.3:                               ; @.str.3
	.asciz	"Full"

l_.str.4:                               ; @.str.4
	.asciz	"Half"

	.comm	_SPEED_INVALID,8,3              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,8,3             ; @DUPLEX_INVALID
	.comm	_AUTONEG_INVALID,4,2            ; @AUTONEG_INVALID
l_.str.5:                               ; @.str.5
	.asciz	"Link is Down.\n"

	.no_dead_strip	_amd8111e_link_change
.subsections_via_symbols
