	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_check_for_link_media_swap
_igb_check_for_link_media_swap:         ## @igb_check_for_link_media_swap
	.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	%rdi, %rbx
	movq	_E1000_M88E1112_PAGE_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	*16(%rdi)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movq	_E1000_M88E1112_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	movq	_E1000_M88E1112_STATUS_LINK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_E1000_MEDIA_PORT_COPPER@GOTPCREL(%rip), %rcx
	andl	-44(%rbp), %eax
	je	LBB0_3
## %bb.4:
	movq	(%rcx), %r12
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	*16(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.6:
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	je	LBB0_7
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_9
## %bb.8:
	movq	_E1000_MEDIA_PORT_OTHER@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_9:
	testq	%r12, %r12
	movq	_E1000_MEDIA_PORT_COPPER@GOTPCREL(%rip), %r15
	je	LBB0_12
## %bb.10:
	cmpq	%r12, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	%r12, (%rbx)
	movl	$1, 8(%rbx)
LBB0_12:
	cmpq	(%r15), %r12
	jne	LBB0_15
## %bb.13:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*16(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	movq	%rbx, %rdi
	callq	_igb_check_for_link_82575
	jmp	LBB0_16
LBB0_15:
	movq	%rbx, %rdi
	callq	_igb_check_for_link_82575
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*16(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_M88E1112_PAGE_ADDR,4,2   ## @E1000_M88E1112_PAGE_ADDR
	.comm	_E1000_M88E1112_STATUS,4,2      ## @E1000_M88E1112_STATUS
	.comm	_E1000_M88E1112_STATUS_LINK,4,2 ## @E1000_M88E1112_STATUS_LINK
	.comm	_E1000_MEDIA_PORT_COPPER,8,3    ## @E1000_MEDIA_PORT_COPPER
	.comm	_E1000_MEDIA_PORT_OTHER,8,3     ## @E1000_MEDIA_PORT_OTHER
	.no_dead_strip	_igb_check_for_link_media_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_check_for_link_media_swap
_igb_check_for_link_media_swap:         ; @igb_check_for_link_media_swap
	.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	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x20, _E1000_M88E1112_PAGE_ADDR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _E1000_M88E1112_PAGE_ADDR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	blr	x8
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x22, _E1000_M88E1112_STATUS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _E1000_M88E1112_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x23, _E1000_M88E1112_STATUS_LINK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _E1000_M88E1112_STATUS_LINK@GOTPAGEOFF]
Lloh6:
	adrp	x21, _E1000_MEDIA_PORT_COPPER@GOTPAGE
Lloh7:
	ldr	x21, [x21, _E1000_MEDIA_PORT_COPPER@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	x10, [x21]
	tst	w9, w8
	csel	x24, xzr, x10, eq
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	blr	x8
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_5
LBB0_4:
	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_5:
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
Lloh8:
	adrp	x10, _E1000_MEDIA_PORT_OTHER@GOTPAGE
Lloh9:
	ldr	x10, [x10, _E1000_MEDIA_PORT_OTHER@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x8, x24, x10, eq
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x9, [x19]
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.7:
	str	x8, [x19]
	mov	w9, #1
	str	w9, [x19, #8]
LBB0_8:
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	cbnz	x0, LBB0_4
; %bb.10:
	mov	x0, x19
	bl	_igb_check_for_link_82575
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_igb_check_for_link_82575
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	cbnz	x0, LBB0_4
LBB0_12:
	mov	x0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_M88E1112_PAGE_ADDR,4,2   ; @E1000_M88E1112_PAGE_ADDR
	.comm	_E1000_M88E1112_STATUS,4,2      ; @E1000_M88E1112_STATUS
	.comm	_E1000_M88E1112_STATUS_LINK,4,2 ; @E1000_M88E1112_STATUS_LINK
	.comm	_E1000_MEDIA_PORT_COPPER,8,3    ; @E1000_MEDIA_PORT_COPPER
	.comm	_E1000_MEDIA_PORT_OTHER,8,3     ; @E1000_MEDIA_PORT_OTHER
	.no_dead_strip	_igb_check_for_link_media_swap
.subsections_via_symbols
