	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meth_check_link
_meth_check_link:                       ## @meth_check_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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_mdio_read
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_mdio_read
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	je	LBB0_11
## %bb.1:
	andq	%rbx, %rax
	movl	%eax, %ebx
	andl	$896, %ebx                      ## imm = 0x380
	testq	%rbx, %rbx
	movq	_METH_100MBIT@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmovneq	%rcx, %rbx
	movl	%eax, %edx
	andl	$448, %edx                      ## imm = 0x1C0
	xorl	%r12d, %r12d
	cmpl	$64, %edx
	movq	_METH_PHY_FDX@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	cmoveq	%rdx, %r12
	testl	$256, %eax                      ## imm = 0x100
	cmovneq	%rdx, %r12
	movq	(%r14), %rax
	andq	%rax, %rdx
	cmpq	%r12, %rdx
	je	LBB0_6
## %bb.2:
	testq	%r12, %r12
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	(%r13), %rax
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	orq	(%r14), %rax
	jmp	LBB0_5
LBB0_4:
	notq	%rax
	andq	(%r14), %rax
LBB0_5:
	movq	%rax, (%r14)
	movq	_mace@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rcx
LBB0_6:
	andq	%rax, %rcx
	cmpq	%rbx, %rcx
	je	LBB0_11
## %bb.7:
	testq	%rbx, %rbx
	movl	$10, %eax
	movl	$100, %esi
	cmovel	%eax, %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	(%r15), %rax
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	orq	(%r14), %rax
	jmp	LBB0_10
LBB0_9:
	notq	%rax
	andq	(%r14), %rax
LBB0_10:
	movq	%rax, (%r14)
	movq	_mace@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METH_100MBIT,8,3               ## @METH_100MBIT
	.comm	_METH_PHY_FDX,8,3               ## @METH_PHY_FDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting %s-duplex\n"

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

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

	.comm	_mace,8,3                       ## @mace
L_.str.3:                               ## @.str.3
	.asciz	"Setting %dMbs mode\n"

	.no_dead_strip	_meth_check_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meth_check_link
_meth_check_link:                       ; @meth_check_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
	bl	_netdev_priv
	mov	x19, x0
	mov	w1, #4
	bl	_mdio_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #5
	bl	_mdio_read
	mov	w8, #65535
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.1:
	and	x9, x0, x20
Lloh0:
	adrp	x20, _METH_100MBIT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _METH_100MBIT@GOTPAGEOFF]
	ldr	x8, [x20]
	tst	x9, #0x380
	csel	x23, xzr, x8, eq
	ubfx	x10, x9, #8, #1
	and	x9, x9, #0x1c0
	cmp	x9, #64
	cset	w9, eq
	orr	w9, w10, w9
Lloh2:
	adrp	x24, _METH_PHY_FDX@GOTPAGE
Lloh3:
	ldr	x24, [x24, _METH_PHY_FDX@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	w9, #0
	csel	x22, x10, xzr, ne
	ldr	x9, [x19]
	and	x10, x9, x10
Lloh4:
	adrp	x21, _mace@GOTPAGE
Lloh5:
	ldr	x21, [x21, _mace@GOTPAGEOFF]
	cmp	x10, x22
	b.eq	LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x22, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	ldr	x8, [x24]
	cbz	x22, LBB0_4
; %bb.3:
	ldr	x9, [x19]
	orr	x9, x9, x8
	b	LBB0_5
LBB0_4:
	ldr	x9, [x19]
	bic	x9, x9, x8
LBB0_5:
	str	x9, [x19]
	ldr	x8, [x21]
	str	x9, [x8]
	ldr	x8, [x20]
LBB0_6:
	and	x8, x8, x9
	cmp	x8, x23
	b.eq	LBB0_11
; %bb.7:
	mov	w8, #100
	mov	w9, #10
	cmp	x23, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINTK
	ldr	x8, [x20]
	cbz	x22, LBB0_9
; %bb.8:
	ldr	x9, [x19]
	orr	x8, x9, x8
	b	LBB0_10
LBB0_9:
	ldr	x9, [x19]
	bic	x8, x9, x8
LBB0_10:
	str	x8, [x19]
	ldr	x9, [x21]
	str	x8, [x9]
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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_METH_100MBIT,8,3               ; @METH_100MBIT
	.comm	_METH_PHY_FDX,8,3               ; @METH_PHY_FDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting %s-duplex\n"

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

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

	.comm	_mace,8,3                       ; @mace
l_.str.3:                               ; @.str.3
	.asciz	"Setting %dMbs mode\n"

	.no_dead_strip	_meth_check_link
.subsections_via_symbols
