	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc28j60_setlink
_enc28j60_setlink:                      ## @enc28j60_setlink
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.7:
	movq	%rax, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_warn
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_1:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	%r14, (%rcx)
	sete	%dl
	movl	%edx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	movq	%rax, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_warn
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported link setting\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Warning: hw must be disabled to set link mode\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_enc28j60_setlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc28j60_setlink
_enc28j60_setlink:                      ; @enc28j60_setlink
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_4
; %bb.1:
	bl	_netif_msg_link
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_3:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x22
	ccmp	x9, x21, #0, eq
	b.eq	LBB0_10
; %bb.5:
	bl	_netif_msg_link
	cbz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_7:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_9:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w8, #0
Lloh14:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x20
	cset	w9, eq
	str	w9, [x0]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported link setting\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Warning: hw must be disabled to set link mode\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_enc28j60_setlink
.subsections_via_symbols
