	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88772_link_reset
_ax88772_link_reset:                    ## @ax88772_link_reset
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	_ETHTOOL_GSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_mii_check_media
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mii_ethtool_gset
	movq	_AX88772_MEDIUM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ethtool_cmd_speed
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_AX_MEDIUM_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	$-1, %ecx
	cmovel	%ecx, %eax
	andl	%ebx, %eax
	movq	-48(%rbp), %rdx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movq	_AX_MEDIUM_FD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	notl	%ebx
	cmovel	%ecx, %ebx
	andl	%eax, %ebx
	movl	(%r15), %r12d
	movq	%r14, %rdi
	callq	_ethtool_cmd_speed
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%rax, %rdx
	movl	%ebx, %r8d
	callq	_netdev_dbg
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_asix_write_medium_mode
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_GSET,4,2               ## @ETHTOOL_GSET
	.comm	_AX88772_MEDIUM_DEFAULT,4,2     ## @AX88772_MEDIUM_DEFAULT
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_AX_MEDIUM_PS,4,2               ## @AX_MEDIUM_PS
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_AX_MEDIUM_FD,4,2               ## @AX_MEDIUM_FD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ax88772_link_reset() speed: %u duplex: %d setting mode to 0x%04x\n"

	.no_dead_strip	_ax88772_link_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88772_link_reset
_ax88772_link_reset:                    ; @ax88772_link_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [sp]
Lloh0:
	adrp	x8, _ETHTOOL_GSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_GSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x20, x0, #4
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_mii_check_media
	mov	x1, sp
	mov	x0, x20
	bl	_mii_ethtool_gset
Lloh3:
	adrp	x8, _AX88772_MEDIUM_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AX88772_MEDIUM_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, sp
	bl	_ethtool_cmd_speed
Lloh6:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _AX_MEDIUM_PS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AX_MEDIUM_PS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x0, x8
	mov	w8, #-1
	csinv	w9, w8, w9, eq
	and	w9, w9, w20
	ldr	x10, [sp]
Lloh12:
	adrp	x11, _DUPLEX_FULL@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DUPLEX_FULL@GOTPAGEOFF]
Lloh14:
	adrp	x12, _AX_MEDIUM_FD@GOTPAGE
Lloh15:
	ldr	x12, [x12, _AX_MEDIUM_FD@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
Lloh17:
	ldr	w12, [x12]
	cmp	x10, x11
	csinv	w8, w8, w12, eq
	and	w20, w9, w8
	ldr	w21, [x19]
	mov	x0, sp
	bl	_ethtool_cmd_speed
	mov	x2, x0
	ldr	x3, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x4, x20
	bl	_netdev_dbg
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_asix_write_medium_mode
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_GSET,4,2               ; @ETHTOOL_GSET
	.comm	_AX88772_MEDIUM_DEFAULT,4,2     ; @AX88772_MEDIUM_DEFAULT
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_AX_MEDIUM_PS,4,2               ; @AX_MEDIUM_PS
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_AX_MEDIUM_FD,4,2               ; @AX_MEDIUM_FD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ax88772_link_reset() speed: %u duplex: %d setting mode to 0x%04x\n"

	.no_dead_strip	_ax88772_link_reset
.subsections_via_symbols
