	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_reset_hw_82575
_igb_reset_hw_82575:                    ## @igb_reset_hw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_igb_disable_pcie_master
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
LBB0_2:
	movq	%r14, %rdi
	callq	_igb_set_pcie_completion_timeout
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_hw_dbg
	movq	_E1000_IMC@GOTPCREL(%rip), %r15
	movl	(%r15), %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	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	_E1000_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_rd32
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_hw_dbg
	movl	(%r12), %edi
	movq	_E1000_CTRL_RST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_wr32
	movq	%r14, %rdi
	callq	_igb_get_auto_rd_done
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	callq	_hw_dbg
LBB0_6:
	movq	_E1000_EECD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_EECD_PRES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_igb_reset_init_script_82575
LBB0_8:
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_wr32
	movq	_E1000_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_igb_check_alt_mac_addr         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI-E Master disable polling has failed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"PCI-E Set completion timeout has failed.\n"

L_.str.2:                               ## @.str.2
	.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_CTRL,4,2                 ## @E1000_CTRL
L_.str.3:                               ## @.str.3
	.asciz	"Issuing a global reset to MAC\n"

	.comm	_E1000_CTRL_RST,4,2             ## @E1000_CTRL_RST
L_.str.4:                               ## @.str.4
	.asciz	"Auto Read Done did not complete\n"

	.comm	_E1000_EECD,4,2                 ## @E1000_EECD
	.comm	_E1000_EECD_PRES,4,2            ## @E1000_EECD_PRES
	.comm	_E1000_ICR,4,2                  ## @E1000_ICR
	.no_dead_strip	_igb_reset_hw_82575
.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_82575
_igb_reset_hw_82575:                    ; @igb_reset_hw_82575
	.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, x0
	bl	_igb_disable_pcie_master
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
LBB0_2:
	mov	x0, x19
	bl	_igb_set_pcie_completion_timeout
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
LBB0_4:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
Lloh6:
	adrp	x21, _E1000_IMC@GOTPAGE
Lloh7:
	ldr	x21, [x21, _E1000_IMC@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_wr32
Lloh8:
	adrp	x8, _E1000_RCTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_RCTL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
Lloh11:
	adrp	x8, _E1000_TCTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_TCTL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _E1000_TCTL_PSP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_TCTL_PSP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_wr32
	bl	_wrfl
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
Lloh17:
	adrp	x22, _E1000_CTRL@GOTPAGE
Lloh18:
	ldr	x22, [x22, _E1000_CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_rd32
	mov	x20, x0
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hw_dbg
	ldr	w0, [x22]
Lloh21:
	adrp	x8, _E1000_CTRL_RST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_CTRL_RST@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_wr32
	mov	x0, x19
	bl	_igb_get_auto_rd_done
	cbz	x0, LBB0_6
; %bb.5:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hw_dbg
LBB0_6:
Lloh26:
	adrp	x8, _E1000_EECD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _E1000_EECD@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_rd32
Lloh29:
	adrp	x8, _E1000_EECD_PRES@GOTPAGE
Lloh30:
	ldr	x8, [x8, _E1000_EECD_PRES@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_igb_reset_init_script_82575
LBB0_8:
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_wr32
Lloh32:
	adrp	x8, _E1000_ICR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _E1000_ICR@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_rd32
	mov	x0, x19
	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
	b	_igb_check_alt_mac_addr
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI-E Master disable polling has failed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"PCI-E Set completion timeout has failed.\n"

l_.str.2:                               ; @.str.2
	.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_CTRL,4,2                 ; @E1000_CTRL
l_.str.3:                               ; @.str.3
	.asciz	"Issuing a global reset to MAC\n"

	.comm	_E1000_CTRL_RST,4,2             ; @E1000_CTRL_RST
l_.str.4:                               ; @.str.4
	.asciz	"Auto Read Done did not complete\n"

	.comm	_E1000_EECD,4,2                 ; @E1000_EECD
	.comm	_E1000_EECD_PRES,4,2            ; @E1000_EECD_PRES
	.comm	_E1000_ICR,4,2                  ; @E1000_ICR
	.no_dead_strip	_igb_reset_hw_82575
.subsections_via_symbols
