	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_set_media_type           ## -- Begin function e1000_set_media_type
	.p2align	4, 0x90
_e1000_set_media_type:                  ## @e1000_set_media_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_82543@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movl	$0, 8(%rbx)
LBB0_2:
	movl	$-131, %ecx
	addl	12(%rbx), %ecx
	cmpl	$1, %ecx
	ja	LBB0_4
## %bb.3:
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	-129(%rax), %rcx
	cmpq	$2, %rcx
	jae	LBB0_5
## %bb.11:
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	cmpq	$128, %rax
	je	LBB0_8
## %bb.6:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_TBIMODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$0, 8(%rbx)
	jmp	LBB0_10
LBB0_8:
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_82543,8,3                ## @e1000_82543
	.comm	_e1000_media_type_internal_serdes,8,3 ## @e1000_media_type_internal_serdes
	.comm	_e1000_media_type_fiber,8,3     ## @e1000_media_type_fiber
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_TBIMODE,4,2       ## @E1000_STATUS_TBIMODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_set_media_type           ; -- Begin function e1000_set_media_type
	.p2align	2
_e1000_set_media_type:                  ; @e1000_set_media_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_82543@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82543@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	str	wzr, [x19, #8]
LBB0_2:
	ldr	w9, [x19, #12]
	sub	w9, w9, #131
	cmp	w9, #1
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _e1000_media_type_internal_serdes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _e1000_media_type_internal_serdes@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	sub	x9, x8, #129
	cmp	x9, #2
	b.hs	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _e1000_media_type_fiber@GOTPAGE
Lloh6:
	ldr	x8, [x8, _e1000_media_type_fiber@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	cmp	x8, #128
	b.eq	LBB0_9
; %bb.7:
Lloh7:
	adrp	x8, _STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_er32
Lloh10:
	adrp	x8, _E1000_STATUS_TBIMODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_STATUS_TBIMODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _e1000_media_type_fiber@GOTPAGE
Lloh14:
	ldr	x8, [x8, _e1000_media_type_fiber@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	str	wzr, [x19, #8]
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _e1000_media_type_copper@GOTPAGE
Lloh17:
	ldr	x8, [x8, _e1000_media_type_copper@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_82543,8,3                ; @e1000_82543
	.comm	_e1000_media_type_internal_serdes,8,3 ; @e1000_media_type_internal_serdes
	.comm	_e1000_media_type_fiber,8,3     ; @e1000_media_type_fiber
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_TBIMODE,4,2       ; @E1000_STATUS_TBIMODE
.subsections_via_symbols
