	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_adjust_phy_link
_bcm_enet_adjust_phy_link:              ## @bcm_enet_adjust_phy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%r14), %r15
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	cmpq	%rax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rax, (%rbx)
	movl	$1, %ecx
LBB0_2:
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	8(%r15), %rdx
	cmpq	8(%rbx), %rdx
	je	LBB0_9
## %bb.7:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	(%rax), %rdx
	sete	%sil
	movq	%rbx, %rdi
	callq	_bcm_enet_set_duplex
	movq	8(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	(%r15), %rax
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movl	16(%r15), %edi
	cmpl	16(%rbx), %edi
	je	LBB0_4
## %bb.10:
	movl	$1, %esi
	movl	$1, %edx
	testl	%edi, %edi
	jne	LBB0_13
## %bb.11:
	xorl	%esi, %esi
	cmpl	$0, 28(%rbx)
	movl	$0, %edx
	jne	LBB0_13
## %bb.12:
	movl	20(%rbx), %esi
	movl	24(%rbx), %edx
LBB0_13:
	movq	%rbx, %rdi
	callq	_bcm_enet_set_flow
	movl	16(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	(%r15), %rax
	jmp	LBB0_14
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
LBB0_14:
	movl	(%r14), %esi
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.15:
	movl	20(%r15), %esi
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	8(%r15), %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	cmpl	$1, 16(%r15)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.7(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_16:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_cont                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: link %s"

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

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

L_.str.3:                               ## @.str.3
	.asciz	" - %d/%s - flow control %s"

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

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

L_.str.6:                               ## @.str.6
	.asciz	"rx&tx"

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

L_.str.8:                               ## @.str.8
	.asciz	"\n"

	.no_dead_strip	_bcm_enet_adjust_phy_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_adjust_phy_link
_bcm_enet_adjust_phy_link:              ; @bcm_enet_adjust_phy_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x19, #8]
	ldr	x9, [x0]
	ldr	x8, [x21]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #0
	cbnz	x8, LBB0_3
	b	LBB0_7
LBB0_2:
	str	x8, [x20]
	mov	w9, #1
	cbz	x8, LBB0_7
LBB0_3:
	ldr	x10, [x21, #8]
	ldr	x11, [x20, #8]
	cmp	x10, x11
	b.eq	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x10, x8
	cset	w1, eq
	mov	x0, x20
	bl	_bcm_enet_set_duplex
	ldp	x8, x9, [x21]
	str	x9, [x20, #8]
	cbz	x8, LBB0_15
; %bb.5:
	mov	w9, #1
LBB0_6:
	ldr	w10, [x21, #16]
	ldr	w11, [x20, #16]
	cmp	w10, w11
	b.ne	LBB0_9
LBB0_7:
	cbnz	w9, LBB0_15
; %bb.8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	cbz	w10, LBB0_11
; %bb.10:
	mov	w1, #1
	mov	w2, #1
	b	LBB0_14
LBB0_11:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_13
; %bb.12:
	mov	w1, #0
	mov	w2, #0
	b	LBB0_14
LBB0_13:
	ldp	w1, w2, [x20, #20]
LBB0_14:
	mov	x0, x20
	bl	_bcm_enet_set_flow
	ldr	w8, [x21, #16]
	str	w8, [x20, #16]
	ldr	x8, [x21]
LBB0_15:
	ldr	w1, [x19]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	x8, [x21]
	cbz	x8, LBB0_17
; %bb.16:
Lloh9:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
Lloh12:
	adrp	x10, l_.str.5@PAGE
Lloh13:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh14:
	adrp	x11, l_.str.4@PAGE
Lloh15:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
Lloh16:
	adrp	x9, l_.str.7@PAGE
Lloh17:
	add	x9, x9, l_.str.7@PAGEOFF
Lloh18:
	adrp	x10, l_.str.6@PAGE
Lloh19:
	add	x10, x10, l_.str.6@PAGEOFF
	ldp	w11, w12, [x21, #16]
	cmp	w11, #1
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp, #8]
	str	x12, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_cont
LBB0_17:
Lloh22:
	adrp	x0, l_.str.8@PAGE
Lloh23:
	add	x0, x0, l_.str.8@PAGEOFF
	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
	add	sp, sp, #80
	b	_pr_cont
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: link %s"

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

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

l_.str.3:                               ; @.str.3
	.asciz	" - %d/%s - flow control %s"

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

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

l_.str.6:                               ; @.str.6
	.asciz	"rx&tx"

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

l_.str.8:                               ; @.str.8
	.asciz	"\n"

	.no_dead_strip	_bcm_enet_adjust_phy_link
.subsections_via_symbols
