	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ixgbe_shutdown
___ixgbe_shutdown:                      ## @__ixgbe_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	24(%rax), %r14
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_netif_device_detach
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ixgbe_down
	movq	%r12, %rdi
	callq	_ixgbe_free_irq
	movq	%r12, %rdi
	callq	_ixgbe_free_all_tx_resources
	movq	%r12, %rdi
	callq	_ixgbe_free_all_rx_resources
LBB0_2:
	addq	$8, %rbx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r12, %rdi
	callq	_ixgbe_clear_interrupt_scheme
	testl	%r15d, %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_ixgbe_set_rx_mode
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	_IXGBE_WUFC_MC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_IXGBE_FCTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_FCTRL_MPE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IXGBE_WRITE_REG
LBB0_8:
	movq	_IXGBE_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_READ_REG
	movl	%eax, %r13d
	movq	_IXGBE_CTRL_GIO_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_3:
	movq	_IXGBE_WUC@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
LBB0_9:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_WUFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_IXGBE_WRITE_REG
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	xorl	%esi, %esi
	cmpl	$2, %ecx
	jae	LBB0_10
## %bb.11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	setne	%sil
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_10:
	cmpl	$130, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	callq	_pci_wake_from_d3
LBB0_13:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_ixgbe_release_hw_control
	movq	%r15, %rdi
	callq	_pci_disable_device
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_WUFC_MC,4,2              ## @IXGBE_WUFC_MC
	.comm	_IXGBE_FCTRL,4,2                ## @IXGBE_FCTRL
	.comm	_IXGBE_FCTRL_MPE,4,2            ## @IXGBE_FCTRL_MPE
	.comm	_IXGBE_CTRL,4,2                 ## @IXGBE_CTRL
	.comm	_IXGBE_CTRL_GIO_DIS,4,2         ## @IXGBE_CTRL_GIO_DIS
	.comm	_IXGBE_WUFC,4,2                 ## @IXGBE_WUFC
	.comm	_IXGBE_WUC,4,2                  ## @IXGBE_WUC
	.no_dead_strip	___ixgbe_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ixgbe_shutdown
___ixgbe_shutdown:                      ; @__ixgbe_shutdown
	.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	x20, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x21, x0
	ldr	x24, [x0, #24]
	ldr	w25, [x0]
	mov	x22, x25
	mov	x0, x24
	bl	_netif_device_detach
	bl	_rtnl_lock
	mov	x0, x24
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ixgbe_down
	mov	x0, x21
	bl	_ixgbe_free_irq
	mov	x0, x21
	bl	_ixgbe_free_all_tx_resources
	mov	x0, x21
	bl	_ixgbe_free_all_rx_resources
LBB0_2:
	add	x23, x21, #8
	bl	_rtnl_unlock
	mov	x0, x21
	bl	_ixgbe_clear_interrupt_scheme
	cbz	w22, LBB0_8
; %bb.3:
	mov	x0, x24
	bl	_ixgbe_set_rx_mode
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x23
	blr	x8
LBB0_5:
Lloh0:
	adrp	x8, _IXGBE_WUFC_MC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_WUFC_MC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_7
; %bb.6:
Lloh3:
	adrp	x24, _IXGBE_FCTRL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IXGBE_FCTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x23
	bl	_IXGBE_READ_REG
Lloh5:
	adrp	x8, _IXGBE_FCTRL_MPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_FCTRL_MPE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x24]
	mov	x0, x23
	bl	_IXGBE_WRITE_REG
LBB0_7:
Lloh8:
	adrp	x24, _IXGBE_CTRL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IXGBE_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x23
	bl	_IXGBE_READ_REG
Lloh10:
	adrp	x8, _IXGBE_CTRL_GIO_DIS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXGBE_CTRL_GIO_DIS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w2, w8, w0
	b	LBB0_9
LBB0_8:
	mov	w2, #0
Lloh13:
	adrp	x24, _IXGBE_WUC@GOTPAGE
Lloh14:
	ldr	x24, [x24, _IXGBE_WUC@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x24]
	mov	x0, x23
	bl	_IXGBE_WRITE_REG
Lloh15:
	adrp	x8, _IXGBE_WUFC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IXGBE_WUFC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x22
	bl	_IXGBE_WRITE_REG
	ldr	w8, [x23]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_11
; %bb.10:
	cmp	w25, #0
	cset	w1, ne
	b	LBB0_13
LBB0_11:
	cmp	w8, #130
	b.ne	LBB0_14
; %bb.12:
	mov	w1, #0
LBB0_13:
	mov	x0, x19
	bl	_pci_wake_from_d3
LBB0_14:
	cmp	w25, #0
	cset	w8, ne
	str	w8, [x20]
	mov	x0, x21
	bl	_ixgbe_release_hw_control
	mov	x0, x19
	bl	_pci_disable_device
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_WUFC_MC,4,2              ; @IXGBE_WUFC_MC
	.comm	_IXGBE_FCTRL,4,2                ; @IXGBE_FCTRL
	.comm	_IXGBE_FCTRL_MPE,4,2            ; @IXGBE_FCTRL_MPE
	.comm	_IXGBE_CTRL,4,2                 ; @IXGBE_CTRL
	.comm	_IXGBE_CTRL_GIO_DIS,4,2         ; @IXGBE_CTRL_GIO_DIS
	.comm	_IXGBE_WUFC,4,2                 ; @IXGBE_WUFC
	.comm	_IXGBE_WUC,4,2                  ; @IXGBE_WUC
	.no_dead_strip	___ixgbe_shutdown
.subsections_via_symbols
