	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_setup_mac_link_multispeed_fiber ## -- Begin function ixgbe_setup_mac_link_multispeed_fiber
	.p2align	4, 0x90
_ixgbe_setup_mac_link_multispeed_fiber: ## @ixgbe_setup_mac_link_multispeed_fiber
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_IXGBE_LINK_SPEED_UNKNOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%ebx, -48(%rbp)
	movl	$0, -44(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	*40(%rdi)
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	andl	-48(%rbp), %r14d
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r14d
	je	LBB0_24
## %bb.3:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	*32(%r13)
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_hw_dbg
LBB0_7:
	movl	$40, %edi
	callq	_msleep
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	*24(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.8:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	*%rax
LBB0_10:
	movl	$100, %edi
	callq	_msleep
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.11:
	cmpl	$0, -44(%rbp)
	jne	LBB0_28
## %bb.13:
	movl	$100, %edi
	callq	_msleep
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.14:
	cmpl	$0, -44(%rbp)
	jne	LBB0_28
## %bb.16:
	movl	$100, %edi
	callq	_msleep
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.17:
	cmpl	$0, -44(%rbp)
	jne	LBB0_28
## %bb.19:
	movl	$100, %edi
	callq	_msleep
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.20:
	cmpl	$0, -44(%rbp)
	jne	LBB0_28
## %bb.22:
	movl	$100, %edi
	callq	_msleep
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.23:
	cmpl	$0, -44(%rbp)
	movl	%r12d, %ebx
	jne	LBB0_28
LBB0_24:
	testl	%r12d, %r14d
	setne	%al
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	testl	%r14d, %esi
	je	LBB0_28
## %bb.25:
	movb	%al, -49(%rbp)                  ## 1-byte Spill
	cmpl	(%r15), %ebx
	cmovel	%esi, %ebx
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_32
## %bb.26:
	cmpl	$129, %eax
	jne	LBB0_31
## %bb.27:
	movq	%r13, %rdi
	callq	*32(%r13)
	jmp	LBB0_32
LBB0_31:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_hw_dbg
LBB0_32:
	movl	$40, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	*24(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.33:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	%r13, %rdi
	callq	*%rax
LBB0_35:
	movl	$100, %edi
	callq	_msleep
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_1
## %bb.36:
	cmpl	$0, -44(%rbp)
	sete	%al
	andb	-49(%rbp), %al                  ## 1-byte Folded Reload
	cmpb	$1, %al
	jne	LBB0_28
## %bb.37:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_ixgbe_setup_mac_link_multispeed_fiber
	jmp	LBB0_29
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	andl	%r14d, %ecx
	cmovnel	%edx, %ecx
	movl	%ecx, 4(%r13)
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r14d, %edx
	je	LBB0_1
## %bb.30:
	orl	%edx, %ecx
	movl	%ecx, 4(%r13)
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ## @IXGBE_LINK_SPEED_UNKNOWN
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected media type\n"

	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_setup_mac_link_multispeed_fiber ; -- Begin function ixgbe_setup_mac_link_multispeed_fiber
	.p2align	2
_ixgbe_setup_mac_link_multispeed_fiber: ; @ixgbe_setup_mac_link_multispeed_fiber
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGEOFF]
	ldr	w26, [x24]
	str	w26, [sp, #12]
	str	wzr, [sp, #4]
	ldr	x8, [x0, #40]
	add	x1, sp, #12
	add	x2, sp, #8
	blr	x8
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	ldr	w8, [sp, #12]
	and	w22, w8, w21
Lloh2:
	adrp	x23, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
	ldr	w21, [x23]
	ands	w25, w22, w21
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	b	LBB0_12
LBB0_6:
	mov	x21, x26
LBB0_7:
	cmp	w25, #0
	cset	w25, ne
Lloh4:
	adrp	x26, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
	ldr	w1, [x26]
	tst	w1, w22
	b.eq	LBB0_32
; %bb.8:
	ldr	w8, [x24]
	cmp	w21, w8
	csel	w21, w1, w21, eq
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_26
; %bb.9:
	cmp	w8, #129
	b.ne	LBB0_25
; %bb.10:
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	b	LBB0_26
LBB0_11:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_12:
	mov	w0, #40
	bl	_msleep
	ldr	x8, [x19, #24]
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	blr	x8
	cbnz	x0, LBB0_1
; %bb.13:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	blr	x8
LBB0_15:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #0
	blr	x8
	cbnz	x0, LBB0_1
; %bb.16:
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_32
; %bb.17:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #0
	blr	x8
	cbnz	x0, LBB0_1
; %bb.18:
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_32
; %bb.19:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #0
	blr	x8
	cbnz	x0, LBB0_1
; %bb.20:
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_32
; %bb.21:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #0
	blr	x8
	cbnz	x0, LBB0_1
; %bb.22:
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_32
; %bb.23:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #0
	blr	x8
	cbnz	x0, LBB0_1
; %bb.24:
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_32
	b	LBB0_7
LBB0_25:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_26:
	mov	w0, #40
	bl	_msleep
	ldr	x8, [x19, #24]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x20
	blr	x8
	cbnz	x0, LBB0_1
; %bb.27:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_29
; %bb.28:
	mov	x0, x19
	blr	x8
LBB0_29:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #0
	blr	x8
	cbnz	x0, LBB0_1
; %bb.30:
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cset	w8, eq
	and	w8, w8, w25
	cmp	w8, #1
	b.ne	LBB0_32
; %bb.31:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_ixgbe_setup_mac_link_multispeed_fiber
	b	LBB0_33
LBB0_32:
	mov	x0, #0
LBB0_33:
	ldr	w8, [x23]
	tst	w8, w22
	csel	w8, wzr, w8, eq
	str	w8, [x19, #4]
Lloh10:
	adrp	x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_1
; %bb.34:
	orr	w8, w8, w9
	str	w8, [x19, #4]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ; @IXGBE_LINK_SPEED_UNKNOWN
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected media type\n"

	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
.subsections_via_symbols
