	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_reset_hw_82580
_igb_reset_hw_82580:                    ## @igb_reset_hw_82580
	.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, %r12
	movq	_E1000_SW_SYNCH_MB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	24(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, 24(%rdi)
	movq	(%rdi), %r14
	movq	_e1000_82580@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_E1000_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_igb_disable_pcie_master
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
	movq	_E1000_IMC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_wr32
	movq	_E1000_RCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	_E1000_TCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_TCTL_PSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wr32
	xorl	%eax, %eax
	callq	_wrfl
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movb	$1, %r13b
	cmpq	%rbx, %r14
	je	LBB0_3
## %bb.5:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.6:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	*16(%r12)
	testq	%rax, %rax
	movq	_E1000_IMC@GOTPCREL(%rip), %rbx
	jne	LBB0_4
## %bb.7:
	movq	_E1000_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_STAT_DEV_RST_SET@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.8:
	movq	_E1000_CTRL_DEV_RST@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_E1000_IMC@GOTPCREL(%rip), %rbx
LBB0_4:
	movq	_E1000_CTRL_RST@GOTPCREL(%rip), %rax
LBB0_9:
	orl	(%rax), %r15d
	movq	_E1000_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_wr32
	xorl	%eax, %eax
	callq	_wrfl
	testb	%r13b, %r13b
	jne	LBB0_11
## %bb.10:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
LBB0_11:
	movq	%r12, %rdi
	callq	_igb_get_auto_rd_done
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	callq	_hw_dbg
LBB0_13:
	movq	_E1000_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_STAT_DEV_RST_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wr32
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_wr32
	movq	_E1000_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	%r12, %rdi
	callq	_igb_reset_mdicnfg_82580
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	callq	_hw_dbg
LBB0_15:
	movq	%r12, %rdi
	callq	_igb_check_alt_mac_addr
	movq	%rax, %rbx
	testb	%r13b, %r13b
	jne	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	*8(%r12)
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SW_SYNCH_MB,4,2          ## @E1000_SW_SYNCH_MB
	.comm	_e1000_82580,8,3                ## @e1000_82580
	.comm	_E1000_CTRL,4,2                 ## @E1000_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI-E Master disable polling has failed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Masking off all interrupts\n"

	.comm	_E1000_IMC,4,2                  ## @E1000_IMC
	.comm	_E1000_RCTL,4,2                 ## @E1000_RCTL
	.comm	_E1000_TCTL,4,2                 ## @E1000_TCTL
	.comm	_E1000_TCTL_PSP,4,2             ## @E1000_TCTL_PSP
	.comm	_E1000_STATUS,4,2               ## @E1000_STATUS
	.comm	_E1000_STAT_DEV_RST_SET,4,2     ## @E1000_STAT_DEV_RST_SET
	.comm	_E1000_CTRL_DEV_RST,4,2         ## @E1000_CTRL_DEV_RST
	.comm	_E1000_CTRL_RST,4,2             ## @E1000_CTRL_RST
L_.str.2:                               ## @.str.2
	.asciz	"Auto Read Done did not complete\n"

	.comm	_E1000_ICR,4,2                  ## @E1000_ICR
L_.str.3:                               ## @.str.3
	.asciz	"Could not reset MDICNFG based on EEPROM\n"

	.no_dead_strip	_igb_reset_hw_82580
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_reset_hw_82580
_igb_reset_hw_82580:                    ; @igb_reset_hw_82580
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _E1000_SW_SYNCH_MB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_SW_SYNCH_MB@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w24, [x0, #24]
	str	wzr, [x0, #24]
	ldr	x25, [x0]
Lloh3:
	adrp	x8, _e1000_82580@GOTPAGE
Lloh4:
	ldr	x8, [x8, _e1000_82580@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
Lloh6:
	adrp	x23, _E1000_CTRL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _E1000_CTRL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_rd32
	mov	x21, x0
	mov	x0, x19
	bl	_igb_disable_pcie_master
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
LBB0_2:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
Lloh12:
	adrp	x22, _E1000_IMC@GOTPAGE
Lloh13:
	ldr	x22, [x22, _E1000_IMC@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #-1
	bl	_wr32
Lloh14:
	adrp	x8, _E1000_RCTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_RCTL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
Lloh17:
	adrp	x8, _E1000_TCTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_TCTL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _E1000_TCTL_PSP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_TCTL_PSP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_wr32
	bl	_wrfl
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	cmp	x25, x26
	ccmp	w24, #0, #4, ne
Lloh23:
	adrp	x25, _E1000_STATUS@GOTPAGE
Lloh24:
	ldr	x25, [x25, _E1000_STATUS@GOTPAGEOFF]
Lloh25:
	adrp	x26, _E1000_STAT_DEV_RST_SET@GOTPAGE
Lloh26:
	ldr	x26, [x26, _E1000_STAT_DEV_RST_SET@GOTPAGEOFF]
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_15
LBB0_4:
	mov	w24, #1
LBB0_5:
Lloh27:
	adrp	x8, _E1000_CTRL_RST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E1000_CTRL_RST@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w1, w8, w21
	ldr	w0, [x23]
	bl	_wr32
	bl	_wrfl
	tbnz	w24, #0, LBB0_8
; %bb.7:
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
LBB0_8:
	mov	x0, x19
	bl	_igb_get_auto_rd_done
	cbz	x0, LBB0_10
; %bb.9:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
LBB0_10:
	ldr	w0, [x25]
	ldr	w1, [x26]
	bl	_wr32
	ldr	w0, [x22]
	mov	w1, #-1
	bl	_wr32
Lloh31:
	adrp	x8, _E1000_ICR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E1000_ICR@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_rd32
	mov	x0, x19
	bl	_igb_reset_mdicnfg_82580
	cbz	x0, LBB0_12
; %bb.11:
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hw_dbg
LBB0_12:
	mov	x0, x19
	bl	_igb_check_alt_mac_addr
	mov	x21, x0
	tbnz	w24, #0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x25]
	bl	_rd32
	mov	w24, #0
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.16:
Lloh36:
	adrp	x8, _E1000_CTRL_DEV_RST@GOTPAGE
Lloh37:
	ldr	x8, [x8, _E1000_CTRL_DEV_RST@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SW_SYNCH_MB,4,2          ; @E1000_SW_SYNCH_MB
	.comm	_e1000_82580,8,3                ; @e1000_82580
	.comm	_E1000_CTRL,4,2                 ; @E1000_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI-E Master disable polling has failed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Masking off all interrupts\n"

	.comm	_E1000_IMC,4,2                  ; @E1000_IMC
	.comm	_E1000_RCTL,4,2                 ; @E1000_RCTL
	.comm	_E1000_TCTL,4,2                 ; @E1000_TCTL
	.comm	_E1000_TCTL_PSP,4,2             ; @E1000_TCTL_PSP
	.comm	_E1000_STATUS,4,2               ; @E1000_STATUS
	.comm	_E1000_STAT_DEV_RST_SET,4,2     ; @E1000_STAT_DEV_RST_SET
	.comm	_E1000_CTRL_DEV_RST,4,2         ; @E1000_CTRL_DEV_RST
	.comm	_E1000_CTRL_RST,4,2             ; @E1000_CTRL_RST
l_.str.2:                               ; @.str.2
	.asciz	"Auto Read Done did not complete\n"

	.comm	_E1000_ICR,4,2                  ; @E1000_ICR
l_.str.3:                               ; @.str.3
	.asciz	"Could not reset MDICNFG based on EEPROM\n"

	.no_dead_strip	_igb_reset_hw_82580
.subsections_via_symbols
