	.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, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r12
	movq	40(%rax), %r13
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r13, %rdi
	callq	_netif_device_detach
	movq	%r13, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ixgbe_close_suspend
LBB0_2:
	leaq	8(%r12), %rbx
	movq	%r12, %rdi
	callq	_ixgbe_clear_interrupt_scheme
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	callq	_ixgbe_set_rx_mode
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_8:
	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
	movq	_IXGBE_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_READ_REG
	movl	%eax, %r15d
	movq	_IXGBE_CTRL_GIO_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_5:
	movq	_IXGBE_WUC@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
LBB0_9:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_WUFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_IXGBE_WRITE_REG
	movl	16(%r12), %eax
	leal	-128(%rax), %ecx
	movq	%rbx, %r13
	xorl	%esi, %esi
	cmpl	$5, %ecx
	jae	LBB0_10
## %bb.11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	setne	%sil
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	movq	%r14, %rdi
	callq	_pci_wake_from_d3
LBB0_13:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, (%r15)
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_16:
	movq	%r12, %rdi
	callq	_ixgbe_release_hw_control
	movq	___IXGBE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r12
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_18:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$133, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	___IXGBE_DISABLED,4,2           ## @__IXGBE_DISABLED
	.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	x21, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	x23, [x0, #40]
	ldr	w24, [x0]
	bl	_rtnl_lock
	mov	x0, x23
	bl	_netif_device_detach
	mov	x0, x23
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ixgbe_close_suspend
LBB0_2:
	add	x22, x20, #8
	mov	x0, x20
	bl	_ixgbe_clear_interrupt_scheme
	bl	_rtnl_unlock
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	blr	x8
LBB0_4:
	cbz	w24, LBB0_8
; %bb.5:
	mov	x0, x23
	bl	_ixgbe_set_rx_mode
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x22
	blr	x8
LBB0_7:
Lloh0:
	adrp	x23, _IXGBE_FCTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IXGBE_FCTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_IXGBE_READ_REG
Lloh2:
	adrp	x8, _IXGBE_FCTRL_MPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_FCTRL_MPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x23]
	mov	x0, x22
	bl	_IXGBE_WRITE_REG
Lloh5:
	adrp	x25, _IXGBE_CTRL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IXGBE_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_IXGBE_READ_REG
Lloh7:
	adrp	x8, _IXGBE_CTRL_GIO_DIS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IXGBE_CTRL_GIO_DIS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x23, x24
	b	LBB0_9
LBB0_8:
	mov	w2, #0
	mov	w23, #0
Lloh10:
	adrp	x25, _IXGBE_WUC@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IXGBE_WUC@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x25]
	mov	x0, x22
	bl	_IXGBE_WRITE_REG
Lloh12:
	adrp	x8, _IXGBE_WUFC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_WUFC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_IXGBE_WRITE_REG
	ldr	w8, [x20, #16]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hs	LBB0_18
; %bb.10:
	cmp	w24, #0
	cset	w1, ne
LBB0_11:
	mov	x0, x19
	bl	_pci_wake_from_d3
LBB0_12:
	cmp	w24, #0
	cset	w8, ne
	str	w8, [x21]
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.13:
	cbnz	w24, LBB0_15
; %bb.14:
	mov	x0, x22
	mov	w1, #0
	blr	x8
LBB0_15:
	mov	x0, x20
	bl	_ixgbe_release_hw_control
Lloh15:
	adrp	x8, ___IXGBE_DISABLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___IXGBE_DISABLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_and_set_bit
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_17:
	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
LBB0_18:
	cmp	w8, #133
	b.ne	LBB0_12
; %bb.19:
	mov	w1, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	___IXGBE_DISABLED,4,2           ; @__IXGBE_DISABLED
	.no_dead_strip	___ixgbe_shutdown
.subsections_via_symbols
