	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_cfg_on_link_up_80003es2lan
_e1000_cfg_on_link_up_80003es2lan:      ## @e1000_cfg_on_link_up_80003es2lan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	callq	_e1000e_get_speed_and_duplex_copper
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	-24(%rbp), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_e1000_cfg_kmrn_1000_80003es2lan
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000_cfg_kmrn_10_100_80003es2lan
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.no_dead_strip	_e1000_cfg_on_link_up_80003es2lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_cfg_on_link_up_80003es2lan
_e1000_cfg_on_link_up_80003es2lan:      ; @e1000_cfg_on_link_up_80003es2lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	mov	x2, sp
	bl	_e1000e_get_speed_and_duplex_copper
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_e1000_cfg_kmrn_1000_80003es2lan
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_e1000_cfg_kmrn_10_100_80003es2lan
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.no_dead_strip	_e1000_cfg_on_link_up_80003es2lan
.subsections_via_symbols
