	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_set_ecmd
_netdev_set_ecmd:                       ## @netdev_set_ecmd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	40(%rbx), %esi
	leaq	-32(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	(%rbx), %rax
	movq	_PORT_TP@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	cmpq	%rdi, %rax
	je	LBB0_4
## %bb.1:
	movq	_PORT_MII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rbx), %rdx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %r9
	cmpq	(%r9), %rdx
	jne	LBB0_7
## %bb.5:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	orq	(%rcx), %rdi
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdi
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdi
	testq	%rdi, -32(%rbp)
	je	LBB0_3
## %bb.6:
	cmpq	$0, 40(%r14)
	jne	LBB0_3
LBB0_14:
	movq	%rax, (%r15)
	movq	%rdx, (%r14)
	movq	_PhyAddrMask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	32(%rbx), %ecx
	movl	%ecx, 8(%r14)
	cmpq	(%r9), %rdx
	jne	LBB0_23
## %bb.15:
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_100BASE4@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	12(%r14), %edx
	movl	%edx, 12(%r14)
	movq	-32(%rbp), %rsi
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	testq	%rsi, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 12(%r14)
LBB0_17:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rcx
	testq	%rsi, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 12(%r14)
LBB0_19:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rcx
	testq	%rsi, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 12(%r14)
LBB0_21:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	testq	%rsi, (%rcx)
	je	LBB0_25
## %bb.22:
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 12(%r14)
	jmp	LBB0_25
LBB0_7:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_3
## %bb.8:
	movq	16(%rbx), %rcx
	movq	_SPEED_10@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_10
## %bb.9:
	movq	_SPEED_100@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
LBB0_10:
	movq	24(%rbx), %rcx
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_12
## %bb.11:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
LBB0_12:
	cmpq	$0, 40(%r14)
	je	LBB0_14
## %bb.13:
	cmpq	%rdi, %rax
	je	LBB0_3
	jmp	LBB0_14
LBB0_23:
	movq	24(%rbx), %rcx
	movups	16(%rbx), %xmm0
	movups	%xmm0, 16(%r14)
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_25
## %bb.24:
	movq	$0, 32(%r14)
LBB0_25:
	cmpq	(%r8), %rax
	jne	LBB0_27
## %bb.26:
	movq	%r15, %rdi
	callq	_switch_port_internal
	jmp	LBB0_28
LBB0_27:
	movq	%r15, %rdi
	callq	_switch_port_external
LBB0_28:
	movq	%r15, %rdi
	callq	_init_phy_fixup
	movq	%r15, %rdi
	callq	_check_link
	xorl	%eax, %eax
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_TP,8,3                    ## @PORT_TP
	.comm	_PORT_MII,8,3                   ## @PORT_MII
	.comm	_PORT_FIBRE,8,3                 ## @PORT_FIBRE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ADVERTISED_10baseT_Half,8,3    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,8,3    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,8,3   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,8,3   ## @ADVERTISED_100baseT_Full
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_PhyAddrMask,4,2                ## @PhyAddrMask
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_ADVERTISE_100BASE4,4,2         ## @ADVERTISE_100BASE4
	.comm	_ADVERTISE_10HALF,4,2           ## @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.no_dead_strip	_netdev_set_ecmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_set_ecmd
_netdev_set_ecmd:                       ; @netdev_set_ecmd
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w1, [x21, #40]
	add	x0, sp, #8
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PORT_TP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_TP@GOTPAGEOFF]
	ldr	x12, [x9]
Lloh2:
	adrp	x10, _PORT_MII@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PORT_MII@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _PORT_FIBRE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _PORT_FIBRE@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x8, x12
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_19
; %bb.1:
	ldr	x10, [x21, #8]
Lloh8:
	adrp	x11, _AUTONEG_ENABLE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x13, [x11]
	cmp	x10, x13
	b.ne	LBB0_13
; %bb.2:
	ldr	x12, [sp, #8]
Lloh10:
	adrp	x13, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh11:
	ldr	x13, [x13, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh12:
	adrp	x14, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh13:
	ldr	x14, [x14, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
Lloh15:
	ldr	x14, [x14]
	orr	x13, x14, x13
Lloh16:
	adrp	x14, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh17:
	ldr	x14, [x14, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh18:
	ldr	x14, [x14]
	orr	x13, x13, x14
Lloh19:
	adrp	x14, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh20:
	ldr	x14, [x14, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh21:
	ldr	x14, [x14]
	orr	x13, x13, x14
	tst	x13, x12
	b.eq	LBB0_19
; %bb.3:
	ldr	x12, [x20, #40]
	cbnz	x12, LBB0_19
LBB0_4:
	str	x8, [x19]
	str	x10, [x20]
Lloh22:
	adrp	x12, _PhyAddrMask@GOTPAGE
Lloh23:
	ldr	x12, [x12, _PhyAddrMask@GOTPAGEOFF]
	ldr	w13, [x21, #32]
Lloh24:
	ldr	w12, [x12]
	and	w12, w12, w13
	str	w12, [x20, #8]
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_21
; %bb.5:
Lloh25:
	adrp	x10, _ADVERTISE_ALL@GOTPAGE
Lloh26:
	ldr	x10, [x10, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
Lloh28:
	adrp	x11, _ADVERTISE_100BASE4@GOTPAGE
Lloh29:
	ldr	x11, [x11, _ADVERTISE_100BASE4@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w11, [x20, #12]
	bic	w10, w11, w10
	str	w10, [x20, #12]
	ldr	x11, [sp, #8]
Lloh31:
	adrp	x12, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh32:
	ldr	x12, [x12, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh33:
	ldr	x12, [x12]
	tst	x12, x11
	b.eq	LBB0_7
; %bb.6:
Lloh34:
	adrp	x12, _ADVERTISE_10HALF@GOTPAGE
Lloh35:
	ldr	x12, [x12, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh36:
	ldr	w12, [x12]
	orr	w10, w12, w10
	str	w10, [x20, #12]
LBB0_7:
Lloh37:
	adrp	x12, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh38:
	ldr	x12, [x12, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh39:
	ldr	x12, [x12]
	tst	x12, x11
	b.eq	LBB0_9
; %bb.8:
Lloh40:
	adrp	x12, _ADVERTISE_10FULL@GOTPAGE
Lloh41:
	ldr	x12, [x12, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh42:
	ldr	w12, [x12]
	orr	w10, w10, w12
	str	w10, [x20, #12]
LBB0_9:
Lloh43:
	adrp	x12, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh44:
	ldr	x12, [x12, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh45:
	ldr	x12, [x12]
	tst	x12, x11
	b.eq	LBB0_11
; %bb.10:
Lloh46:
	adrp	x12, _ADVERTISE_100HALF@GOTPAGE
Lloh47:
	ldr	x12, [x12, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh48:
	ldr	w12, [x12]
	orr	w10, w10, w12
	str	w10, [x20, #12]
LBB0_11:
Lloh49:
	adrp	x12, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh50:
	ldr	x12, [x12, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh51:
	ldr	x12, [x12]
	tst	x12, x11
	b.eq	LBB0_23
; %bb.12:
Lloh52:
	adrp	x11, _ADVERTISE_100FULL@GOTPAGE
Lloh53:
	ldr	x11, [x11, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh54:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x20, #12]
	b	LBB0_23
LBB0_13:
Lloh55:
	adrp	x13, _AUTONEG_DISABLE@GOTPAGE
Lloh56:
	ldr	x13, [x13, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh57:
	ldr	x13, [x13]
	cmp	x10, x13
	b.ne	LBB0_19
; %bb.14:
	ldr	x13, [x21, #16]
Lloh58:
	adrp	x14, _SPEED_10@GOTPAGE
Lloh59:
	ldr	x14, [x14, _SPEED_10@GOTPAGEOFF]
Lloh60:
	ldr	x14, [x14]
Lloh61:
	adrp	x15, _SPEED_100@GOTPAGE
Lloh62:
	ldr	x15, [x15, _SPEED_100@GOTPAGEOFF]
Lloh63:
	ldr	x15, [x15]
	cmp	x13, x14
	ccmp	x13, x15, #4, ne
	b.ne	LBB0_19
; %bb.15:
	ldr	x13, [x21, #24]
Lloh64:
	adrp	x14, _DUPLEX_HALF@GOTPAGE
Lloh65:
	ldr	x14, [x14, _DUPLEX_HALF@GOTPAGEOFF]
Lloh66:
	ldr	x14, [x14]
	cmp	x13, x14
	b.eq	LBB0_17
; %bb.16:
Lloh67:
	adrp	x14, _DUPLEX_FULL@GOTPAGE
Lloh68:
	ldr	x14, [x14, _DUPLEX_FULL@GOTPAGEOFF]
Lloh69:
	ldr	x14, [x14]
	cmp	x13, x14
	b.ne	LBB0_19
LBB0_17:
	ldr	x13, [x20, #40]
	cbz	x13, LBB0_4
; %bb.18:
	cmp	x8, x12
	b.ne	LBB0_4
LBB0_19:
Lloh70:
	adrp	x8, _EINVAL@GOTPAGE
Lloh71:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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
LBB0_21:
	ldp	x10, x11, [x21, #16]
	stp	x10, x11, [x20, #16]
Lloh73:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh74:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh75:
	ldr	x10, [x10]
	cmp	x11, x10
	b.ne	LBB0_23
; %bb.22:
	str	xzr, [x20, #32]
LBB0_23:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
	bl	_switch_port_internal
	b	LBB0_26
LBB0_25:
	bl	_switch_port_external
LBB0_26:
	mov	x0, x19
	bl	_init_phy_fixup
	mov	x0, x19
	bl	_check_link
	mov	w0, #0
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_TP,8,3                    ; @PORT_TP
	.comm	_PORT_MII,8,3                   ; @PORT_MII
	.comm	_PORT_FIBRE,8,3                 ; @PORT_FIBRE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ADVERTISED_10baseT_Half,8,3    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,8,3    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,8,3   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,8,3   ; @ADVERTISED_100baseT_Full
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_PhyAddrMask,4,2                ; @PhyAddrMask
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_ADVERTISE_100BASE4,4,2         ; @ADVERTISE_100BASE4
	.comm	_ADVERTISE_10HALF,4,2           ; @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.no_dead_strip	_netdev_set_ecmd
.subsections_via_symbols
