	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_adjust_link
_au1000_adjust_link:                    ## @au1000_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	%rax, %r12
	movq	(%r14), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movq	%r12, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edx
	xorl	%r13d, %r13d
	cmpl	%edx, (%r12)
	je	LBB0_5
## %bb.3:
	movl	%edx, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_8
## %bb.4:
	movl	%edx, (%r12)
	movl	$1, %r13d
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	cmpq	8(%r12), %rax
	je	LBB0_16
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
	movl	8(%rbx), %ecx
	movq	(%rbx), %rax
	movl	%ecx, (%r12)
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:
	movl	4(%r12), %ecx
	cmpl	12(%rbx), %ecx
	je	LBB0_12
## %bb.6:
	movq	%r14, %rdi
	callq	_au1000_hard_stop
	movq	24(%r12), %rdi
	callq	_readl
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movslq	12(%rbx), %rsi
	movq	_MAC_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rsi, (%rdx)
	jne	LBB0_10
## %bb.7:
	orl	%eax, %ecx
	movq	_MAC_DISABLE_RX_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	jmp	LBB0_11
LBB0_10:
	notl	%ecx
	andl	%ecx, %eax
	movq	_MAC_DISABLE_RX_OWN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_11:
	movq	24(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$1, %r13d
	movl	$1, %edi
	callq	_mdelay
	movq	%r14, %rdi
	callq	_au1000_enable_rx_tx
	movl	12(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	(%rbx), %rax
LBB0_12:
	cmpq	8(%r12), %rax
	jne	LBB0_13
LBB0_16:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.17:
	cmpq	$0, (%rbx)
	je	LBB0_18
LBB0_20:
	movl	8(%rbx), %edx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movslq	12(%rbx), %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
	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_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	cmpq	8(%r12), %rax
	je	LBB0_16
LBB0_13:
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rcx, (%r12)
LBB0_15:
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, (%rbx)
	jne	LBB0_20
LBB0_18:
	leaq	L_.str.4(%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	"Speed (%d) is not 10/100 ???\n"

	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_MAC_FULL_DUPLEX,4,2            ## @MAC_FULL_DUPLEX
	.comm	_MAC_DISABLE_RX_OWN,4,2         ## @MAC_DISABLE_RX_OWN
L_.str.1:                               ## @.str.1
	.asciz	"link up (%d/%s)\n"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"link down\n"

	.no_dead_strip	_au1000_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_adjust_link
_au1000_adjust_link:                    ; @au1000_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
	mov	x20, x0
	ldr	x22, [x19]
	cmp	x22, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w9, [x20]
	ldr	w2, [x22, #8]
	cmp	w9, w2
	b.ne	LBB0_4
; %bb.2:
	mov	w23, #0
	b	LBB0_7
LBB0_3:
	mov	w23, #0
	b	LBB0_12
LBB0_4:
	and	w9, w2, #0xfffffffe
	cmp	w9, #128
	b.ne	LBB0_6
; %bb.5:
	str	w2, [x20]
	mov	w23, #1
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
	ldr	w9, [x22, #8]
	ldr	x8, [x22]
	str	w9, [x20]
	mov	w23, #1
	cbz	x8, LBB0_12
LBB0_7:
	ldr	w9, [x20, #4]
	ldr	w10, [x22, #12]
	cmp	w9, w10
	b.eq	LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_au1000_hard_stop
	ldr	x0, [x20, #24]
	bl	_readl
Lloh2:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	ldrsw	x10, [x22, #12]
Lloh5:
	adrp	x8, _MAC_FULL_DUPLEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_FULL_DUPLEX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.9:
	orr	w8, w8, w0
Lloh8:
	adrp	x9, _MAC_DISABLE_RX_OWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAC_DISABLE_RX_OWN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w0, w8, w9
	b	LBB0_11
LBB0_10:
	bic	w8, w0, w8
Lloh11:
	adrp	x9, _MAC_DISABLE_RX_OWN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAC_DISABLE_RX_OWN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_11:
	ldr	x1, [x20, #24]
	bl	_writel
	bl	_wmb
	mov	w23, #1
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	bl	_au1000_enable_rx_tx
	ldr	w8, [x22, #12]
	str	w8, [x20, #4]
	ldr	x8, [x22]
LBB0_12:
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.13:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w23, LBB0_16
; %bb.14:
	ldr	x8, [x22]
	cbz	x8, LBB0_20
LBB0_15:
Lloh14:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, l_.str.3@PAGE
Lloh18:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
	ldp	w12, w11, [x22, #8]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	cmp	x8, x11
	csel	x8, x10, x9, eq
	stp	x12, x8, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_16:
	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_17:
	cbnz	x8, LBB0_19
; %bb.18:
	movi	d0, #0xffffffff00000000
	str	d0, [x20]
LBB0_19:
	str	x8, [x20, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x22]
	cbnz	x8, LBB0_15
LBB0_20:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Speed (%d) is not 10/100 ???\n"

	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_MAC_FULL_DUPLEX,4,2            ; @MAC_FULL_DUPLEX
	.comm	_MAC_DISABLE_RX_OWN,4,2         ; @MAC_DISABLE_RX_OWN
l_.str.1:                               ; @.str.1
	.asciz	"link up (%d/%s)\n"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"link down\n"

	.no_dead_strip	_au1000_adjust_link
.subsections_via_symbols
