	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_get_speed_and_duplex_copper ## -- Begin function igc_get_speed_and_duplex_copper
	.p2align	4, 0x90
_igc_get_speed_and_duplex_copper:       ## @igc_get_speed_and_duplex_copper
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_IGC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movl	%eax, %ebx
	movq	_IGC_STATUS_SPEED_1000@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	(%r12), %rax
	movq	_igc_i225@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_IGC_STATUS_SPEED_2500@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	_SPEED_2500@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_IGC_STATUS_SPEED_100@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmoveq	_SPEED_10@GOTPCREL(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rcx, %rdi
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	callq	_hw_dbg
	movq	_IGC_STATUS_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	cmoveq	_HALF_DUPLEX@GOTPCREL(%rip), %rcx
	cmoveq	%rax, %rdi
	movl	(%rcx), %eax
	movl	%eax, (%r14)
	callq	_hw_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IGC_STATUS,4,2                 ## @IGC_STATUS
	.comm	_IGC_STATUS_SPEED_1000,4,2      ## @IGC_STATUS_SPEED_1000
	.comm	_igc_i225,8,3                   ## @igc_i225
	.comm	_IGC_STATUS_SPEED_2500,4,2      ## @IGC_STATUS_SPEED_2500
	.comm	_SPEED_2500,4,2                 ## @SPEED_2500
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"2500 Mbs, "

	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
L_.str.1:                               ## @.str.1
	.asciz	"1000 Mbs, "

	.comm	_IGC_STATUS_SPEED_100,4,2       ## @IGC_STATUS_SPEED_100
	.comm	_SPEED_100,4,2                  ## @SPEED_100
L_.str.2:                               ## @.str.2
	.asciz	"100 Mbs, "

	.comm	_SPEED_10,4,2                   ## @SPEED_10
L_.str.3:                               ## @.str.3
	.asciz	"10 Mbs, "

	.comm	_IGC_STATUS_FD,4,2              ## @IGC_STATUS_FD
	.comm	_FULL_DUPLEX,4,2                ## @FULL_DUPLEX
L_.str.4:                               ## @.str.4
	.asciz	"Full Duplex\n"

	.comm	_HALF_DUPLEX,4,2                ## @HALF_DUPLEX
L_.str.5:                               ## @.str.5
	.asciz	"Half Duplex\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_get_speed_and_duplex_copper ; -- Begin function igc_get_speed_and_duplex_copper
	.p2align	2
_igc_get_speed_and_duplex_copper:       ; @igc_get_speed_and_duplex_copper
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _IGC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rd32
	mov	x20, x0
Lloh3:
	adrp	x8, _IGC_STATUS_SPEED_1000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGC_STATUS_SPEED_1000@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _igc_i225@GOTPAGE
Lloh7:
	ldr	x9, [x9, _igc_i225@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _IGC_STATUS_SPEED_2500@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IGC_STATUS_SPEED_2500@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
Lloh14:
	adrp	x8, _SPEED_2500@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPEED_2500@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh18:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _IGC_STATUS_SPEED_100@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IGC_STATUS_SPEED_100@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh25:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
Lloh27:
	adrp	x9, l_.str.2@PAGE
Lloh28:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh29:
	adrp	x10, l_.str.3@PAGE
Lloh30:
	add	x10, x10, l_.str.3@PAGEOFF
	csel	x0, x10, x9, eq
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x21]
	bl	_hw_dbg
Lloh31:
	adrp	x8, _IGC_STATUS_FD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IGC_STATUS_FD@GOTPAGEOFF]
Lloh33:
	adrp	x9, l_.str.4@PAGE
Lloh34:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x10, l_.str.5@PAGE
Lloh37:
	add	x10, x10, l_.str.5@PAGEOFF
	tst	w8, w20
Lloh38:
	adrp	x8, _HALF_DUPLEX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HALF_DUPLEX@GOTPAGEOFF]
	csel	x0, x10, x9, eq
Lloh40:
	adrp	x9, _FULL_DUPLEX@GOTPAGE
Lloh41:
	ldr	x9, [x9, _FULL_DUPLEX@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_hw_dbg
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IGC_STATUS,4,2                 ; @IGC_STATUS
	.comm	_IGC_STATUS_SPEED_1000,4,2      ; @IGC_STATUS_SPEED_1000
	.comm	_igc_i225,8,3                   ; @igc_i225
	.comm	_IGC_STATUS_SPEED_2500,4,2      ; @IGC_STATUS_SPEED_2500
	.comm	_SPEED_2500,4,2                 ; @SPEED_2500
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"2500 Mbs, "

	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
l_.str.1:                               ; @.str.1
	.asciz	"1000 Mbs, "

	.comm	_IGC_STATUS_SPEED_100,4,2       ; @IGC_STATUS_SPEED_100
	.comm	_SPEED_100,4,2                  ; @SPEED_100
l_.str.2:                               ; @.str.2
	.asciz	"100 Mbs, "

	.comm	_SPEED_10,4,2                   ; @SPEED_10
l_.str.3:                               ; @.str.3
	.asciz	"10 Mbs, "

	.comm	_IGC_STATUS_FD,4,2              ; @IGC_STATUS_FD
	.comm	_FULL_DUPLEX,4,2                ; @FULL_DUPLEX
l_.str.4:                               ; @.str.4
	.asciz	"Full Duplex\n"

	.comm	_HALF_DUPLEX,4,2                ; @HALF_DUPLEX
l_.str.5:                               ; @.str.5
	.asciz	"Half Duplex\n"

.subsections_via_symbols
