	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_set_sfp_media_type_82575
_igb_set_sfp_media_type_82575:          ## @igb_set_sfp_media_type_82575
	.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, %r14
	movq	$0, -48(%rbp)
	movq	_E1000_CTRL_EXT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_rd32
	movq	_E1000_CTRL_EXT_SDP3_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	%eax, %r15d
	movl	(%r13), %edi
	movq	_E1000_CTRL_I2C_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r15d, %esi
	callq	_wr32
	xorl	%eax, %eax
	callq	_wrfl
	movq	_E1000_SFF_IDENTIFIER_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_E1000_I2CCMD_SFP_DATA_ADDR
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_igb_read_sfp_data_byte
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	$100, %edi
	callq	_msleep
	movl	(%rbx), %edi
	callq	_E1000_I2CCMD_SFP_DATA_ADDR
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_igb_read_sfp_data_byte
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	$100, %edi
	callq	_msleep
	movl	(%rbx), %edi
	callq	_E1000_I2CCMD_SFP_DATA_ADDR
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_igb_read_sfp_data_byte
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movl	$100, %edi
	callq	_msleep
	jmp	LBB0_13
LBB0_4:
	movq	_E1000_SFF_ETH_FLAGS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_E1000_I2CCMD_SFP_DATA_ADDR
	leaq	16(%r14), %r12
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_igb_read_sfp_data_byte
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:
	movq	-48(%rbp), %rax
	movq	_E1000_SFF_IDENTIFIER_SFP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_E1000_SFF_IDENTIFIER_SFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_e1000_media_type_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movl	$1, 8(%r14)
	cmpq	$0, 40(%r14)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 32(%r14)
	jne	LBB0_10
## %bb.14:
	cmpq	$0, 24(%r14)
	je	LBB0_16
## %bb.15:
	movl	$1, 12(%r14)
LBB0_10:
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_wr32
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpq	$0, (%r12)
	je	LBB0_18
## %bb.17:
	movl	$1, 12(%r14)
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_18:
	movq	_e1000_media_type_unknown@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_ERR_CONFIG,8,3           ## @E1000_ERR_CONFIG
	.comm	_E1000_CTRL_EXT,4,2             ## @E1000_CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP3_DATA,4,2   ## @E1000_CTRL_EXT_SDP3_DATA
	.comm	_E1000_CTRL_I2C_ENA,4,2         ## @E1000_CTRL_I2C_ENA
	.comm	_E1000_SFF_IDENTIFIER_OFFSET,4,2 ## @E1000_SFF_IDENTIFIER_OFFSET
	.comm	_E1000_SFF_ETH_FLAGS_OFFSET,4,2 ## @E1000_SFF_ETH_FLAGS_OFFSET
	.comm	_E1000_SFF_IDENTIFIER_SFP,8,3   ## @E1000_SFF_IDENTIFIER_SFP
	.comm	_E1000_SFF_IDENTIFIER_SFF,8,3   ## @E1000_SFF_IDENTIFIER_SFF
	.comm	_e1000_media_type_internal_serdes,8,3 ## @e1000_media_type_internal_serdes
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_e1000_media_type_unknown,8,3   ## @e1000_media_type_unknown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY module has not been recognized\n"

	.no_dead_strip	_igb_set_sfp_media_type_82575
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_set_sfp_media_type_82575
_igb_set_sfp_media_type_82575:          ; @igb_set_sfp_media_type_82575
	.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	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x23, _E1000_CTRL_EXT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _E1000_CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_rd32
Lloh2:
	adrp	x8, _E1000_CTRL_EXT_SDP3_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_CTRL_EXT_SDP3_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w19, w0, w8
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _E1000_CTRL_I2C_ENA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_CTRL_I2C_ENA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w19
	bl	_wr32
	bl	_wrfl
Lloh8:
	adrp	x21, _E1000_SFF_IDENTIFIER_OFFSET@GOTPAGE
Lloh9:
	ldr	x21, [x21, _E1000_SFF_IDENTIFIER_OFFSET@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_E1000_I2CCMD_SFP_DATA_ADDR
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_igb_read_sfp_data_byte
	cbz	x0, LBB0_4
; %bb.1:
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x21]
	bl	_E1000_I2CCMD_SFP_DATA_ADDR
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_igb_read_sfp_data_byte
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x21]
	bl	_E1000_I2CCMD_SFP_DATA_ADDR
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_igb_read_sfp_data_byte
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	mov	w0, #100
	bl	_msleep
	b	LBB0_12
LBB0_4:
Lloh10:
	adrp	x8, _E1000_SFF_ETH_FLAGS_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_SFF_ETH_FLAGS_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_E1000_I2CCMD_SFP_DATA_ADDR
	mov	x1, x0
	add	x22, x20, #16
	mov	x0, x20
	mov	x2, x22
	bl	_igb_read_sfp_data_byte
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.5:
	ldr	x8, [sp, #8]
Lloh13:
	adrp	x9, _E1000_SFF_IDENTIFIER_SFP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _E1000_SFF_IDENTIFIER_SFP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _E1000_SFF_IDENTIFIER_SFF@GOTPAGE
Lloh17:
	ldr	x10, [x10, _E1000_SFF_IDENTIFIER_SFF@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.6:
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_13
LBB0_8:
	mov	x21, #0
LBB0_9:
Lloh19:
	adrp	x8, _e1000_media_type_internal_serdes@GOTPAGE
Lloh20:
	ldr	x8, [x8, _e1000_media_type_internal_serdes@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x21, #0
Lloh21:
	adrp	x8, _e1000_media_type_unknown@GOTPAGE
Lloh22:
	ldr	x8, [x8, _e1000_media_type_unknown@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_12:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_wr32
	mov	x0, x21
	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_13:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x21, #0
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_9
LBB0_15:
	ldr	x8, [x22]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x21, #0
	mov	w8, #1
	str	w8, [x20, #12]
Lloh23:
	adrp	x8, _e1000_media_type_copper@GOTPAGE
Lloh24:
	ldr	x8, [x8, _e1000_media_type_copper@GOTPAGEOFF]
	b	LBB0_11
LBB0_17:
Lloh25:
	adrp	x8, _e1000_media_type_unknown@GOTPAGE
Lloh26:
	ldr	x8, [x8, _e1000_media_type_unknown@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	mov	x21, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_ERR_CONFIG,8,3           ; @E1000_ERR_CONFIG
	.comm	_E1000_CTRL_EXT,4,2             ; @E1000_CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP3_DATA,4,2   ; @E1000_CTRL_EXT_SDP3_DATA
	.comm	_E1000_CTRL_I2C_ENA,4,2         ; @E1000_CTRL_I2C_ENA
	.comm	_E1000_SFF_IDENTIFIER_OFFSET,4,2 ; @E1000_SFF_IDENTIFIER_OFFSET
	.comm	_E1000_SFF_ETH_FLAGS_OFFSET,4,2 ; @E1000_SFF_ETH_FLAGS_OFFSET
	.comm	_E1000_SFF_IDENTIFIER_SFP,8,3   ; @E1000_SFF_IDENTIFIER_SFP
	.comm	_E1000_SFF_IDENTIFIER_SFF,8,3   ; @E1000_SFF_IDENTIFIER_SFF
	.comm	_e1000_media_type_internal_serdes,8,3 ; @e1000_media_type_internal_serdes
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_e1000_media_type_unknown,8,3   ; @e1000_media_type_unknown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY module has not been recognized\n"

	.no_dead_strip	_igb_set_sfp_media_type_82575
.subsections_via_symbols
