	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __de_set_link_ksettings
___de_set_link_ksettings:               ## @__de_set_link_ksettings
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %r12
	movq	8(%rsi), %r13
	movq	16(%rsi), %r15
	movl	32(%rsi), %esi
	leaq	-44(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	cmpl	$10, 24(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	(%rax), %r12
	je	LBB0_4
## %bb.3:
	cmpq	%rdx, %r12
	jne	LBB0_1
LBB0_4:
	movq	%r13, %rax
	andq	$-2, %rax
	cmpq	$128, %rax
	je	LBB0_6
## %bb.5:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_1
LBB0_6:
	cmpq	$0, 24(%r14)
	je	LBB0_8
## %bb.7:
	cmpq	$128, %r13
	je	LBB0_1
LBB0_8:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax), %r15
	je	LBB0_10
## %bb.9:
	cmpq	%rcx, %r15
	jne	LBB0_1
LBB0_10:
	movl	-44(%rbp), %eax
	movl	(%r14), %esi
	notl	%esi
	testl	%esi, %eax
	je	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpq	%rcx, %r15
	jne	LBB0_13
## %bb.12:
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_1
LBB0_13:
	cmpq	$128, %r13
	je	LBB0_17
## %bb.14:
	cmpq	$129, %r13
	jne	LBB0_19
## %bb.15:
	movq	_ADVERTISED_AUI@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_1
## %bb.16:
	movq	_DE_MEDIA_AUI@GOTPCREL(%rip), %rdx
	jmp	LBB0_26
LBB0_17:
	movq	_ADVERTISED_BNC@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_1
## %bb.18:
	movq	_DE_MEDIA_BNC@GOTPCREL(%rip), %rdx
	jmp	LBB0_26
LBB0_19:
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.20:
	cmpq	%rdx, %r12
	jne	LBB0_21
## %bb.22:
	movq	_DE_MEDIA_TP_FD@GOTPCREL(%rip), %rdx
	jmp	LBB0_23
LBB0_21:
	movq	_DE_MEDIA_TP@GOTPCREL(%rip), %rdx
LBB0_23:
	cmpq	%rcx, %r15
	jne	LBB0_25
## %bb.24:
	movq	_DE_MEDIA_TP_AUTO@GOTPCREL(%rip), %rdx
LBB0_25:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rsi
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	testl	%eax, %edi
	je	LBB0_1
LBB0_26:
	movl	(%rdx), %r12d
	xorl	%r13d, %r13d
	cmpq	%rcx, %r15
	setne	%r13b
	cmpl	4(%r14), %r12d
	jne	LBB0_29
## %bb.27:
	cmpl	%r13d, 8(%r14)
	jne	LBB0_29
## %bb.28:
	xorl	%ebx, %ebx
	cmpl	12(%r14), %eax
	je	LBB0_31
LBB0_29:
	movq	%r14, %rdi
	callq	_de_link_down
	leaq	20(%r14), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_DE_TIMER_NO_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	movq	%r14, %rdi
	callq	_de_stop_rxtx
	movl	%r12d, 4(%r14)
	movl	%r13d, 8(%r14)
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_de_set_media
	movl	16(%r14), %edi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	%r14, %rdi
	callq	_de_start_rxtx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_PORT_TP,8,3                    ## @PORT_TP
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_DE_MEDIA_AUI,4,2               ## @DE_MEDIA_AUI
	.comm	_ADVERTISED_AUI,4,2             ## @ADVERTISED_AUI
	.comm	_DE_MEDIA_BNC,4,2               ## @DE_MEDIA_BNC
	.comm	_ADVERTISED_BNC,4,2             ## @ADVERTISED_BNC
	.comm	_DE_MEDIA_TP_AUTO,4,2           ## @DE_MEDIA_TP_AUTO
	.comm	_DE_MEDIA_TP_FD,4,2             ## @DE_MEDIA_TP_FD
	.comm	_DE_MEDIA_TP,4,2                ## @DE_MEDIA_TP
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DE_TIMER_NO_LINK,8,3           ## @DE_TIMER_NO_LINK
	.no_dead_strip	___de_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __de_set_link_ksettings
___de_set_link_ksettings:               ; @__de_set_link_ksettings
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x22, x23, [x1]
	ldr	x21, [x1, #16]
	ldr	w1, [x1, #32]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	w8, [x20, #24]
	cmp	w8, #10
	b.ne	LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _DUPLEX_HALF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DUPLEX_HALF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	cmp	x22, x8
	ccmp	x22, x10, #4, ne
	b.ne	LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	and	x9, x23, #0xfffffffffffffffe
	cmp	x9, #128
	ccmp	x23, x8, #4, ne
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	cmp	x23, #128
	b.eq	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x21, x8
	ccmp	x21, x9, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [sp, #12]
	ldr	w11, [x19]
	bics	wzr, w8, w11
	b.eq	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
	cmp	x21, x9
	b.ne	LBB0_11
; %bb.10:
Lloh18:
	adrp	x11, _ADVERTISED_Autoneg@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_7
LBB0_11:
	cmp	x23, #128
	b.eq	LBB0_15
; %bb.12:
	cmp	x23, #129
	b.ne	LBB0_17
; %bb.13:
Lloh21:
	adrp	x10, _ADVERTISED_AUI@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ADVERTISED_AUI@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_7
; %bb.14:
Lloh24:
	adrp	x10, _DE_MEDIA_AUI@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DE_MEDIA_AUI@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
Lloh26:
	adrp	x10, _ADVERTISED_BNC@GOTPAGE
Lloh27:
	ldr	x10, [x10, _ADVERTISED_BNC@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_7
; %bb.16:
Lloh29:
	adrp	x10, _DE_MEDIA_BNC@GOTPAGE
Lloh30:
	ldr	x10, [x10, _DE_MEDIA_BNC@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh31:
	adrp	x11, _ADVERTISED_TP@GOTPAGE
Lloh32:
	ldr	x11, [x11, _ADVERTISED_TP@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_7
; %bb.18:
Lloh34:
	adrp	x11, _DE_MEDIA_TP@GOTPAGE
Lloh35:
	ldr	x11, [x11, _DE_MEDIA_TP@GOTPAGEOFF]
Lloh36:
	adrp	x12, _DE_MEDIA_TP_FD@GOTPAGE
Lloh37:
	ldr	x12, [x12, _DE_MEDIA_TP_FD@GOTPAGEOFF]
	cmp	x22, x10
	csel	x10, x12, x11, eq
Lloh38:
	adrp	x11, _DE_MEDIA_TP_AUTO@GOTPAGE
Lloh39:
	ldr	x11, [x11, _DE_MEDIA_TP_AUTO@GOTPAGEOFF]
	cmp	x21, x9
	csel	x10, x11, x10, eq
Lloh40:
	adrp	x11, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh41:
	ldr	x11, [x11, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh42:
	ldr	w11, [x11]
Lloh43:
	adrp	x12, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh44:
	ldr	x12, [x12, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh45:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w8
	b.eq	LBB0_7
LBB0_19:
	ldr	w20, [x10]
	cmp	x21, x9
	cset	w21, ne
	ldr	w9, [x19, #4]
	cmp	w20, w9
	b.ne	LBB0_22
; %bb.20:
	ldr	w9, [x19, #8]
	cmp	w9, w21
	b.ne	LBB0_22
; %bb.21:
	ldr	w9, [x19, #12]
	cmp	w8, w9
	b.eq	LBB0_24
LBB0_22:
	mov	x0, x19
	bl	_de_link_down
Lloh46:
	adrp	x8, _jiffies@GOTPAGE
Lloh47:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x19, #20
Lloh48:
	ldr	x8, [x8]
Lloh49:
	adrp	x9, _DE_TIMER_NO_LINK@GOTPAGE
Lloh50:
	ldr	x9, [x9, _DE_TIMER_NO_LINK@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
	mov	x0, x19
	bl	_de_stop_rxtx
	stp	w20, w21, [x19, #4]
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_de_set_media
	ldr	w0, [x19, #16]
	bl	_netif_running
	cbz	x0, LBB0_8
; %bb.23:
	mov	x0, x19
	bl	_de_start_rxtx
LBB0_24:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_PORT_TP,8,3                    ; @PORT_TP
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_DE_MEDIA_AUI,4,2               ; @DE_MEDIA_AUI
	.comm	_ADVERTISED_AUI,4,2             ; @ADVERTISED_AUI
	.comm	_DE_MEDIA_BNC,4,2               ; @DE_MEDIA_BNC
	.comm	_ADVERTISED_BNC,4,2             ; @ADVERTISED_BNC
	.comm	_DE_MEDIA_TP_AUTO,4,2           ; @DE_MEDIA_TP_AUTO
	.comm	_DE_MEDIA_TP_FD,4,2             ; @DE_MEDIA_TP_FD
	.comm	_DE_MEDIA_TP,4,2                ; @DE_MEDIA_TP
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DE_TIMER_NO_LINK,8,3           ; @DE_TIMER_NO_LINK
	.no_dead_strip	___de_set_link_ksettings
.subsections_via_symbols
