	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mgmt_adjust_link
_octeon_mgmt_adjust_link:               ## @octeon_mgmt_adjust_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	(%r14), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %r15
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rcx
	cmpq	8(%r12), %rcx
	jne	LBB0_6
## %bb.4:
	cmpq	%rax, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	16(%rbx), %rcx
	xorl	%r13d, %r13d
	cmpq	16(%r12), %rcx
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_octeon_mgmt_disable_link
	movq	%rbx, %rdi
	callq	_octeon_mgmt_update_link
	movq	%rbx, %rdi
	callq	_octeon_mgmt_enable_link
	movq	(%r12), %rax
	movl	$1, %r13d
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	cmpq	(%rbx), %rax
	movl	$0, %r13d
	sbbl	%r13d, %r13d
LBB0_7:
	movq	%rax, (%rbx)
	movups	8(%r12), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.8:
	jle	LBB0_9
## %bb.11:
	movq	8(%r12), %rax
	movq	16(%r12), %rdx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link is up - %d/%s\n"

	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
L_.str.1:                               ## @.str.1
	.asciz	"Full"

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

L_.str.3:                               ## @.str.3
	.asciz	"Link is down\n"

	.no_dead_strip	_octeon_mgmt_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mgmt_adjust_link
_octeon_mgmt_adjust_link:               ; @octeon_mgmt_adjust_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	ldr	x22, [x19]
	cbz	x22, LBB0_11
; %bb.1:
	mov	x20, x0
	add	x21, x0, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	x10, [x22, #8]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x20, #16]
	ldr	x10, [x22, #16]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	mov	w23, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_octeon_mgmt_disable_link
	mov	x0, x20
	bl	_octeon_mgmt_update_link
	mov	x0, x20
	bl	_octeon_mgmt_enable_link
	ldr	x8, [x22]
	mov	w23, #1
	b	LBB0_8
LBB0_7:
	ldr	x9, [x20]
	cmp	x9, #0
	csetm	w23, ne
LBB0_8:
	str	x8, [x20]
	ldur	q0, [x22, #8]
	stur	q0, [x20, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w23, LBB0_11
; %bb.9:
	cmp	w23, #1
	b.lt	LBB0_12
; %bb.10:
	ldp	x9, x8, [x22, #8]
Lloh0:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, l_.str.2@PAGE
Lloh4:
	add	x11, x11, l_.str.2@PAGEOFF
Lloh5:
	adrp	x12, l_.str.1@PAGE
Lloh6:
	add	x12, x12, l_.str.1@PAGEOFF
	cmp	x9, x10
	csel	x9, x12, x11, eq
	stp	x8, x9, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_netdev_info
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link is up - %d/%s\n"

	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
l_.str.1:                               ; @.str.1
	.asciz	"Full"

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

l_.str.3:                               ; @.str.3
	.asciz	"Link is down\n"

	.no_dead_strip	_octeon_mgmt_adjust_link
.subsections_via_symbols
