	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_link_report
_tg3_link_report:                       ## @tg3_link_report
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	24(%rbx), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	$100, %edx
	movl	$10, %esi
	cmovel	%edx, %esi
	cmpq	(%rcx), %rax
	movl	4(%rbx), %edi
	movl	$1000, %edx                     ## imm = 0x3E8
	cmovnel	%esi, %edx
	movq	32(%rbx), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	4(%rbx), %edi
	movl	40(%rbx), %eax
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leaq	L_.str.6(%rip), %r8
	leaq	L_.str.5(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%r8, %rdx
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	cmoveq	%r8, %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	_TG3_PHYFLG_EEE_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	cmpq	$0, 16(%rbx)
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_5
LBB0_1:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_info
LBB0_5:
	movq	%rbx, %rdi
	callq	_tg3_ump_link_report
LBB0_6:
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link is down\n"

L_.str.1:                               ## @.str.1
	.asciz	"Link is up at %d Mbps, %s duplex\n"

	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
L_.str.2:                               ## @.str.2
	.asciz	"full"

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

L_.str.4:                               ## @.str.4
	.asciz	"Flow control is %s for TX and %s for RX\n"

	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
L_.str.5:                               ## @.str.5
	.asciz	"on"

L_.str.6:                               ## @.str.6
	.asciz	"off"

	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ## @TG3_PHYFLG_EEE_CAP
L_.str.7:                               ## @.str.7
	.asciz	"EEE is %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"enabled"

L_.str.9:                               ## @.str.9
	.asciz	"disabled"

	.no_dead_strip	_tg3_link_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_link_report
_tg3_link_report:                       ; @tg3_link_report
	.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
	ldr	w0, [x0, #4]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldp	x10, x11, [x19, #24]
	cmp	x10, x9
	mov	w9, #10
	mov	w12, #100
	csel	w9, w12, w9, eq
	cmp	x10, x8
	mov	w8, #1000
	csel	w8, w8, w9, eq
Lloh6:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, l_.str.3@PAGE
Lloh10:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh11:
	adrp	x12, l_.str.2@PAGE
Lloh12:
	add	x12, x12, l_.str.2@PAGEOFF
	cmp	x11, x9
	csel	x9, x12, x10, eq
	stp	x8, x9, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
	ldr	w0, [x19, #4]
	ldr	w8, [x19, #40]
Lloh15:
	adrp	x9, _FLOW_CTRL_TX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, l_.str.5@PAGE
Lloh19:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh20:
	adrp	x11, l_.str.6@PAGE
Lloh21:
	add	x11, x11, l_.str.6@PAGEOFF
	tst	w9, w8
	csel	x9, x11, x10, eq
Lloh22:
	adrp	x12, _FLOW_CTRL_RX@GOTPAGE
Lloh23:
	ldr	x12, [x12, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh24:
	ldr	w12, [x12]
	tst	w12, w8
	csel	x8, x11, x10, eq
	stp	x9, x8, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_info
	ldr	w8, [x19]
Lloh27:
	adrp	x9, _TG3_PHYFLG_EEE_CAP@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TG3_PHYFLG_EEE_CAP@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #16]
Lloh30:
	adrp	x9, l_.str.8@PAGE
Lloh31:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh32:
	adrp	x10, l_.str.9@PAGE
Lloh33:
	add	x10, x10, l_.str.9@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_netdev_info
	b	LBB0_5
LBB0_4:
Lloh36:
	adrp	x8, _link@GOTPAGE
Lloh37:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh39:
	adrp	x3, l_.str@PAGE
Lloh40:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
LBB0_5:
	mov	x0, x19
	bl	_tg3_ump_link_report
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	str	x0, [x19, #8]
	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	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link is down\n"

l_.str.1:                               ; @.str.1
	.asciz	"Link is up at %d Mbps, %s duplex\n"

	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
l_.str.2:                               ; @.str.2
	.asciz	"full"

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

l_.str.4:                               ; @.str.4
	.asciz	"Flow control is %s for TX and %s for RX\n"

	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
l_.str.5:                               ; @.str.5
	.asciz	"on"

l_.str.6:                               ; @.str.6
	.asciz	"off"

	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ; @TG3_PHYFLG_EEE_CAP
l_.str.7:                               ; @.str.7
	.asciz	"EEE is %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"enabled"

l_.str.9:                               ; @.str.9
	.asciz	"disabled"

	.no_dead_strip	_tg3_link_report
.subsections_via_symbols
