	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encx24j600_setlink
_encx24j600_setlink:                    ## @encx24j600_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, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	cmpl	$0, 12(%rax)
	je	LBB0_1
## %bb.5:
	movq	_link@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_netif_warn
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_SPEED_10@GOTPCREL(%rip), %rdx
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r12, (%rdx)
	je	LBB0_3
## %bb.2:
	cmpq	%r12, %rcx
	je	LBB0_3
## %bb.4:
	movq	_link@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_netif_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	xorl	%edx, %edx
	cmpq	%r12, %rcx
	sete	%dl
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	%r15, (%rcx)
	sete	%sil
	movl	%esi, (%rax)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	%r14, (%rcx)
	sete	%sil
	movl	%esi, 4(%rax)
	movl	%edx, 8(%rax)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported link speed 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	_encx24j600_setlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encx24j600_setlink
_encx24j600_setlink:                    ; @encx24j600_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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _link@GOTPAGE
Lloh1:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_netif_warn
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh7:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x22
	ccmp	x9, x22, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
	cmp	x9, x22
Lloh13:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
	cset	w10, eq
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x21
	cset	w9, eq
Lloh16:
	adrp	x11, _DUPLEX_FULL@GOTPAGE
Lloh17:
	ldr	x11, [x11, _DUPLEX_FULL@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x11, x20
	cset	w11, eq
	stp	w9, w11, [x0]
	str	w10, [x0, #8]
	b	LBB0_6
LBB0_4:
Lloh19:
	adrp	x8, _link@GOTPAGE
Lloh20:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x19
	bl	_netif_warn
Lloh24:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported link speed 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	_encx24j600_setlink
.subsections_via_symbols
