	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_reset_hw_base
_igc_reset_hw_base:                     ## @igc_reset_hw_base
	.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	_igc_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	_IGC_IMC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_wr32
	movq	_IGC_RCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	_IGC_TCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IGC_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	_IGC_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_rd32
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_hw_dbg
	movl	(%r12), %edi
	movq	_IGC_CTRL_DEV_RST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_wr32
	movq	%r14, %rdi
	callq	_igc_get_auto_rd_done
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_hw_dbg
LBB0_4:
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_wr32
	movq	_IGC_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"Masking off all interrupts\n"

	.comm	_IGC_IMC,4,2                    ## @IGC_IMC
	.comm	_IGC_RCTL,4,2                   ## @IGC_RCTL
	.comm	_IGC_TCTL,4,2                   ## @IGC_TCTL
	.comm	_IGC_TCTL_PSP,4,2               ## @IGC_TCTL_PSP
	.comm	_IGC_CTRL,4,2                   ## @IGC_CTRL
L_.str.2:                               ## @.str.2
	.asciz	"Issuing a global reset to MAC\n"

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

	.comm	_IGC_ICR,4,2                    ## @IGC_ICR
	.no_dead_strip	_igc_reset_hw_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igc_reset_hw_base
_igc_reset_hw_base:                     ; @igc_reset_hw_base
	.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	_igc_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:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
Lloh4:
	adrp	x21, _IGC_IMC@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IGC_IMC@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_wr32
Lloh6:
	adrp	x8, _IGC_RCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGC_RCTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
Lloh9:
	adrp	x8, _IGC_TCTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IGC_TCTL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _IGC_TCTL_PSP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IGC_TCTL_PSP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_wr32
	bl	_wrfl
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
Lloh15:
	adrp	x22, _IGC_CTRL@GOTPAGE
Lloh16:
	ldr	x22, [x22, _IGC_CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_rd32
	mov	x20, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
	ldr	w0, [x22]
Lloh19:
	adrp	x8, _IGC_CTRL_DEV_RST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IGC_CTRL_DEV_RST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_wr32
	mov	x0, x19
	bl	_igc_get_auto_rd_done
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hw_dbg
LBB0_4:
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_wr32
Lloh24:
	adrp	x8, _IGC_ICR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IGC_ICR@GOTPAGEOFF]
Lloh26:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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	"Masking off all interrupts\n"

	.comm	_IGC_IMC,4,2                    ; @IGC_IMC
	.comm	_IGC_RCTL,4,2                   ; @IGC_RCTL
	.comm	_IGC_TCTL,4,2                   ; @IGC_TCTL
	.comm	_IGC_TCTL_PSP,4,2               ; @IGC_TCTL_PSP
	.comm	_IGC_CTRL,4,2                   ; @IGC_CTRL
l_.str.2:                               ; @.str.2
	.asciz	"Issuing a global reset to MAC\n"

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

	.comm	_IGC_ICR,4,2                    ; @IGC_ICR
	.no_dead_strip	_igc_reset_hw_base
.subsections_via_symbols
