	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __igb_shutdown
___igb_shutdown:                        ## @__igb_shutdown
	.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
	movl	%edx, %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_pci_get_drvdata
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_E1000_WUFC_LNKC@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r13, %rdi
	callq	_netif_device_detach
	movq	%r13, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	___igb_close
LBB0_4:
	movq	%r12, %rdi
	callq	_igb_ptp_suspend
	movq	%r12, %rdi
	callq	_igb_clear_interrupt_scheme
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_E1000_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_E1000_WUFC_LNKC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	cmpl	$1, %eax
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%r14d, %ebx
	je	LBB0_9
## %bb.5:
	movq	%r12, %r14
	addq	$16, %r14
	movq	%r12, %rdi
	callq	_igb_setup_rctl
	movq	%r13, %rdi
	callq	_igb_set_rx_mode
	movq	_E1000_WUFC_MC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_E1000_RCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_rd32
	movq	_E1000_RCTL_MPE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_wr32
LBB0_7:
	movq	_E1000_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_rd32
	movq	_E1000_CTRL_ADVD3WUC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_wr32
	movq	%r14, %rdi
	callq	_igb_disable_pcie_master
	movq	_E1000_WUC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_WUC_PME_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wr32
	movq	_E1000_WUFC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_wr32
	jmp	LBB0_8
LBB0_9:
	movq	_E1000_WUC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_wr32
	movq	_E1000_WUFC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_wr32
	cmpq	$0, 8(%r12)
	je	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	callq	_igb_power_up_link
	movl	$1, %ebx
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%ebx, (%rax)
LBB0_13:
	movq	%r12, %rdi
	callq	_igb_release_hw_control
	movq	%r15, %rdi
	callq	_pci_disable_device
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	callq	_igb_power_down_link
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_WUFC_LNKC,4,2            ## @E1000_WUFC_LNKC
	.comm	_E1000_STATUS,4,2               ## @E1000_STATUS
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_E1000_WUFC_MC,4,2              ## @E1000_WUFC_MC
	.comm	_E1000_RCTL,4,2                 ## @E1000_RCTL
	.comm	_E1000_RCTL_MPE,4,2             ## @E1000_RCTL_MPE
	.comm	_E1000_CTRL,4,2                 ## @E1000_CTRL
	.comm	_E1000_CTRL_ADVD3WUC,4,2        ## @E1000_CTRL_ADVD3WUC
	.comm	_E1000_WUC,4,2                  ## @E1000_WUC
	.comm	_E1000_WUC_PME_EN,4,2           ## @E1000_WUC_PME_EN
	.comm	_E1000_WUFC,4,2                 ## @E1000_WUFC
	.no_dead_strip	___igb_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __igb_shutdown
___igb_shutdown:                        ; @__igb_shutdown
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x23, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x24, _E1000_WUFC_LNKC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _E1000_WUFC_LNKC@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x0, x24, eq
	ldr	w22, [x8]
	bl	_rtnl_lock
	mov	x0, x23
	bl	_netif_device_detach
	mov	x0, x23
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	w1, #1
	bl	___igb_close
LBB0_2:
	mov	x0, x21
	bl	_igb_ptp_suspend
	mov	x0, x21
	bl	_igb_clear_interrupt_scheme
	bl	_rtnl_unlock
Lloh2:
	adrp	x8, _E1000_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_rd32
Lloh5:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x24]
	tst	w8, w0
	mov	w8, #-1
	csinv	w8, w8, w9, eq
	ands	w22, w8, w22
	b.eq	LBB0_6
; %bb.3:
	add	x24, x21, #16
	mov	x0, x21
	bl	_igb_setup_rctl
	mov	x0, x23
	bl	_igb_set_rx_mode
Lloh8:
	adrp	x8, _E1000_WUFC_MC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_WUFC_MC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x23, _E1000_RCTL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _E1000_RCTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_rd32
Lloh13:
	adrp	x8, _E1000_RCTL_MPE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_RCTL_MPE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x23]
	bl	_wr32
LBB0_5:
Lloh16:
	adrp	x23, _E1000_CTRL@GOTPAGE
Lloh17:
	ldr	x23, [x23, _E1000_CTRL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_rd32
Lloh18:
	adrp	x8, _E1000_CTRL_ADVD3WUC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_CTRL_ADVD3WUC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x23]
	bl	_wr32
	mov	x0, x24
	bl	_igb_disable_pcie_master
Lloh21:
	adrp	x8, _E1000_WUC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_WUC@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _E1000_WUC_PME_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E1000_WUC_PME_EN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_wr32
Lloh27:
	adrp	x8, _E1000_WUFC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E1000_WUFC@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_wr32
	b	LBB0_7
LBB0_6:
Lloh30:
	adrp	x8, _E1000_WUC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _E1000_WUC@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
Lloh33:
	adrp	x8, _E1000_WUFC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _E1000_WUFC@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
LBB0_7:
	mov	x0, x21
	bl	_igb_power_up_link
	mov	w8, #1
	cbz	x20, LBB0_9
LBB0_8:
	str	w8, [x20]
LBB0_9:
	mov	x0, x21
	bl	_igb_release_hw_control
	mov	x0, x19
	bl	_pci_disable_device
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x21
	bl	_igb_power_down_link
	mov	w8, #0
	cbnz	x20, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_WUFC_LNKC,4,2            ; @E1000_WUFC_LNKC
	.comm	_E1000_STATUS,4,2               ; @E1000_STATUS
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_E1000_WUFC_MC,4,2              ; @E1000_WUFC_MC
	.comm	_E1000_RCTL,4,2                 ; @E1000_RCTL
	.comm	_E1000_RCTL_MPE,4,2             ; @E1000_RCTL_MPE
	.comm	_E1000_CTRL,4,2                 ; @E1000_CTRL
	.comm	_E1000_CTRL_ADVD3WUC,4,2        ; @E1000_CTRL_ADVD3WUC
	.comm	_E1000_WUC,4,2                  ; @E1000_WUC
	.comm	_E1000_WUC_PME_EN,4,2           ; @E1000_WUC_PME_EN
	.comm	_E1000_WUFC,4,2                 ; @E1000_WUFC
	.no_dead_strip	___igb_shutdown
.subsections_via_symbols
