	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __de_set_settings
___de_set_settings:                     ## @__de_set_settings
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %ecx
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$2, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$5, %ecx
	jne	LBB0_3
LBB0_4:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpl	$2, %ecx
	je	LBB0_3
LBB0_6:
	movq	8(%rbx), %rsi
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	cmpq	(%rcx), %rsi
	je	LBB0_8
## %bb.7:
	cmpq	%rdi, %rsi
	jne	LBB0_3
LBB0_8:
	movl	16(%rbx), %ecx
	movq	_PORT_TP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_10
## %bb.9:
	movl	%ecx, %edx
	andl	$-2, %edx
	cmpl	$128, %edx
	jne	LBB0_3
LBB0_10:
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpl	$128, %ecx
	je	LBB0_3
LBB0_12:
	movq	24(%rbx), %rax
	movq	_XCVR_INTERNAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
## %bb.13:
	movq	32(%rbx), %r10
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpq	(%rdx), %r10
	je	LBB0_15
## %bb.14:
	cmpq	%r9, %r10
	jne	LBB0_3
LBB0_15:
	movl	40(%rbx), %r8d
	movl	(%r14), %eax
	notl	%eax
	testl	%eax, %r8d
	je	LBB0_16
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_35:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpq	%r9, %r10
	jne	LBB0_18
## %bb.17:
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_3
LBB0_18:
	cmpl	$128, %ecx
	je	LBB0_22
## %bb.19:
	cmpl	$129, %ecx
	jne	LBB0_24
## %bb.20:
	movq	_ADVERTISED_AUI@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_3
## %bb.21:
	movq	_DE_MEDIA_AUI@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_22:
	movq	_ADVERTISED_BNC@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_3
## %bb.23:
	movq	_DE_MEDIA_BNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_24:
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_3
## %bb.25:
	cmpq	%rdi, %rsi
	jne	LBB0_26
## %bb.27:
	movq	_DE_MEDIA_TP_FD@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_26:
	movq	_DE_MEDIA_TP@GOTPCREL(%rip), %rcx
LBB0_28:
	cmpq	%r9, %r10
	jne	LBB0_30
## %bb.29:
	movq	_DE_MEDIA_TP_AUTO@GOTPCREL(%rip), %rcx
LBB0_30:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	testl	%r8d, %edx
	je	LBB0_3
LBB0_31:
	movq	(%rcx), %r15
	xorl	%r12d, %r12d
	cmpq	%r9, %r10
	setne	%r12b
	cmpq	8(%r14), %r15
	jne	LBB0_34
## %bb.32:
	cmpl	%r12d, 16(%r14)
	jne	LBB0_34
## %bb.33:
	xorl	%eax, %eax
	cmpl	20(%r14), %r8d
	je	LBB0_35
LBB0_34:
	movq	%r14, %rdi
	callq	_de_link_down
	movq	%r14, %rdi
	callq	_de_stop_rxtx
	movq	%r15, 8(%r14)
	movl	%r12d, 16(%r14)
	movl	40(%rbx), %eax
	movl	%eax, 20(%r14)
	movq	%r14, %rdi
	callq	_de_set_media
	xorl	%eax, %eax
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_XCVR_INTERNAL,8,3              ## @XCVR_INTERNAL
	.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,8,3               ## @DE_MEDIA_AUI
	.comm	_ADVERTISED_AUI,4,2             ## @ADVERTISED_AUI
	.comm	_DE_MEDIA_BNC,8,3               ## @DE_MEDIA_BNC
	.comm	_ADVERTISED_BNC,4,2             ## @ADVERTISED_BNC
	.comm	_DE_MEDIA_TP_AUTO,8,3           ## @DE_MEDIA_TP_AUTO
	.comm	_DE_MEDIA_TP_FD,8,3             ## @DE_MEDIA_TP_FD
	.comm	_DE_MEDIA_TP,8,3                ## @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
	.no_dead_strip	___de_set_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __de_set_settings
___de_set_settings:                     ; @__de_set_settings
	.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
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, w8
	ccmp	w9, #2, #4, ne
	ccmp	w9, #5, #4, ne
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cmp	x8, #0
	ccmp	w9, #2, #0, ne
	b.eq	LBB0_10
; %bb.2:
	mov	x20, x1
	ldr	x10, [x1, #8]
Lloh3:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x11, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x11]
	cmp	x10, x9
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_10
; %bb.3:
	ldr	w13, [x20, #16]
Lloh9:
	adrp	x9, _PORT_TP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PORT_TP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w13, w9
	b.eq	LBB0_5
; %bb.4:
	and	w9, w13, #0xfffffffe
	cmp	w9, #128
	b.ne	LBB0_10
LBB0_5:
	cbz	x8, LBB0_7
; %bb.6:
	cmp	w13, #128
	b.eq	LBB0_10
LBB0_7:
	ldr	x8, [x20, #24]
Lloh12:
	adrp	x9, _XCVR_INTERNAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XCVR_INTERNAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	ldr	x9, [x20, #32]
Lloh15:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x11, _AUTONEG_ENABLE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x9, x8
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x20, #40]
	ldr	w14, [x19]
	bics	wzr, w8, w14
	b.eq	LBB0_12
LBB0_10:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	cmp	x9, x11
	b.ne	LBB0_14
; %bb.13:
Lloh24:
	adrp	x14, _ADVERTISED_Autoneg@GOTPAGE
Lloh25:
	ldr	x14, [x14, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh26:
	ldr	w14, [x14]
	tst	w14, w8
	b.eq	LBB0_10
LBB0_14:
	cmp	w13, #128
	b.eq	LBB0_18
; %bb.15:
	cmp	w13, #129
	b.ne	LBB0_20
; %bb.16:
Lloh27:
	adrp	x10, _ADVERTISED_AUI@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ADVERTISED_AUI@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.17:
Lloh30:
	adrp	x10, _DE_MEDIA_AUI@GOTPAGE
Lloh31:
	ldr	x10, [x10, _DE_MEDIA_AUI@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
Lloh32:
	adrp	x10, _ADVERTISED_BNC@GOTPAGE
Lloh33:
	ldr	x10, [x10, _ADVERTISED_BNC@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.19:
Lloh35:
	adrp	x10, _DE_MEDIA_BNC@GOTPAGE
Lloh36:
	ldr	x10, [x10, _DE_MEDIA_BNC@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
Lloh37:
	adrp	x13, _ADVERTISED_TP@GOTPAGE
Lloh38:
	ldr	x13, [x13, _ADVERTISED_TP@GOTPAGEOFF]
Lloh39:
	ldr	w13, [x13]
	tst	w13, w8
	b.eq	LBB0_10
; %bb.21:
Lloh40:
	adrp	x13, _DE_MEDIA_TP@GOTPAGE
Lloh41:
	ldr	x13, [x13, _DE_MEDIA_TP@GOTPAGEOFF]
Lloh42:
	adrp	x14, _DE_MEDIA_TP_FD@GOTPAGE
Lloh43:
	ldr	x14, [x14, _DE_MEDIA_TP_FD@GOTPAGEOFF]
	cmp	x10, x12
	csel	x10, x14, x13, eq
Lloh44:
	adrp	x12, _DE_MEDIA_TP_AUTO@GOTPAGE
Lloh45:
	ldr	x12, [x12, _DE_MEDIA_TP_AUTO@GOTPAGEOFF]
	cmp	x9, x11
	csel	x10, x12, x10, eq
Lloh46:
	adrp	x12, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh47:
	ldr	x12, [x12, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh48:
	ldr	w12, [x12]
Lloh49:
	adrp	x13, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh50:
	ldr	x13, [x13, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh51:
	ldr	w13, [x13]
	orr	w12, w13, w12
	tst	w12, w8
	b.eq	LBB0_10
LBB0_22:
	ldr	x22, [x10]
	cmp	x9, x11
	cset	w21, ne
	ldr	x9, [x19, #8]
	cmp	x22, x9
	b.ne	LBB0_25
; %bb.23:
	ldr	w9, [x19, #16]
	cmp	w9, w21
	b.ne	LBB0_25
; %bb.24:
	ldr	w9, [x19, #20]
	cmp	w8, w9
	b.eq	LBB0_26
LBB0_25:
	mov	x0, x19
	bl	_de_link_down
	mov	x0, x19
	bl	_de_stop_rxtx
	str	x22, [x19, #8]
	ldr	w8, [x20, #40]
	stp	w21, w8, [x19, #16]
	mov	x0, x19
	bl	_de_set_media
LBB0_26:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_XCVR_INTERNAL,8,3              ; @XCVR_INTERNAL
	.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,8,3               ; @DE_MEDIA_AUI
	.comm	_ADVERTISED_AUI,4,2             ; @ADVERTISED_AUI
	.comm	_DE_MEDIA_BNC,8,3               ; @DE_MEDIA_BNC
	.comm	_ADVERTISED_BNC,4,2             ; @ADVERTISED_BNC
	.comm	_DE_MEDIA_TP_AUTO,8,3           ; @DE_MEDIA_TP_AUTO
	.comm	_DE_MEDIA_TP_FD,8,3             ; @DE_MEDIA_TP_FD
	.comm	_DE_MEDIA_TP,8,3                ; @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
	.no_dead_strip	___de_set_settings
.subsections_via_symbols
