	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_remove
_ixgbe_remove:                          ## @ixgbe_remove
	.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
	movq	%rdi, %r15
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	88(%rax), %r14
	movq	%rax, %rdi
	callq	_ixgbe_dbg_adapter_exit
	movq	___IXGBE_REMOVING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_set_bit
	movq	%rbx, %rdi
	addq	$80, %rdi
	callq	_cancel_work_sync
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_mdiobus_unregister
LBB0_3:
	movq	%r14, %rdi
	callq	_ixgbe_del_sanmac_netdev
	movq	(%r14), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_unregister_netdev
LBB0_5:
	movq	%rbx, %rdi
	callq	_ixgbe_stop_ipsec_offload
	movq	%rbx, %rdi
	callq	_ixgbe_clear_interrupt_scheme
	movq	%rbx, %rdi
	callq	_ixgbe_release_hw_control
	movl	40(%rbx), %edi
	callq	_iounmap
	movq	%r15, %rdi
	callq	_pci_release_mem_regions
	leaq	L_.str(%rip), %rdi
	callq	_e_dev_info
	movq	_IXGBE_MAX_LINK_HANDLE@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rax), %rdi
	callq	_kfree
	movq	32(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rdi
	callq	_kfree
	movq	32(%rbx), %rax
	movq	(%rax,%r12,8), %rdi
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_kfree
	incq	%r12
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_11:
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	16(%rbx), %rdi
	callq	_kfree
	movl	8(%rbx), %edi
	callq	_bitmap_free
	movq	___IXGBE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_and_set_bit
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free_netdev
	movq	%r15, %rdi
	callq	_pci_disable_pcie_error_reporting
	testl	%ebx, %ebx
	je	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___IXGBE_REMOVING,4,2           ## @__IXGBE_REMOVING
	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"complete\n"

	.comm	_IXGBE_MAX_LINK_HANDLE,4,2      ## @IXGBE_MAX_LINK_HANDLE
	.comm	___IXGBE_DISABLED,4,2           ## @__IXGBE_DISABLED
	.comm	_IXGBE_DCA_CTRL,4,2             ## @IXGBE_DCA_CTRL
	.comm	_IXGBE_DCA_CTRL_DCA_DISABLE,4,2 ## @IXGBE_DCA_CTRL_DCA_DISABLE
	.comm	_IXGBE_FLAG_DCA_ENABLED,4,2     ## @IXGBE_FLAG_DCA_ENABLED
	.no_dead_strip	_ixgbe_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_remove
_ixgbe_remove:                          ; @ixgbe_remove
	.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	x19, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
	ldr	x20, [x0, #88]
	bl	_ixgbe_dbg_adapter_exit
Lloh0:
	adrp	x8, ___IXGBE_REMOVING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___IXGBE_REMOVING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x21, #4
	mov	x1, x22
	bl	_set_bit
	add	x0, x21, #80
	bl	_cancel_work_sync
	ldr	x0, [x21, #72]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_mdiobus_unregister
LBB0_3:
	mov	x0, x20
	bl	_ixgbe_del_sanmac_netdev
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _NETREG_REGISTERED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETREG_REGISTERED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_unregister_netdev
LBB0_5:
	mov	x0, x21
	bl	_ixgbe_stop_ipsec_offload
	mov	x0, x21
	bl	_ixgbe_clear_interrupt_scheme
	mov	x0, x21
	bl	_ixgbe_release_hw_control
	ldr	w0, [x21, #40]
	bl	_iounmap
	mov	x0, x19
	bl	_pci_release_mem_regions
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dev_info
Lloh8:
	adrp	x23, _IXGBE_MAX_LINK_HANDLE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IXGBE_MAX_LINK_HANDLE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x24, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x21, #32]
	lsl	x25, x24, #3
	ldr	x8, [x8, x25]
	ldr	x0, [x8]
	bl	_kfree
	ldr	x8, [x21, #32]
	ldr	x0, [x8, x25]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_kfree
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #32]
	ldr	x8, [x8, x24, lsl #3]
	cbnz	x8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, #0
	b	LBB0_8
LBB0_11:
	ldr	x0, [x21, #24]
	bl	_kfree
	ldr	x0, [x21, #16]
	bl	_kfree
	ldr	w0, [x21, #8]
	bl	_bitmap_free
Lloh10:
	adrp	x8, ___IXGBE_DISABLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___IXGBE_DISABLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_set_bit
	mov	x21, x0
	mov	x0, x20
	bl	_free_netdev
	mov	x0, x19
	bl	_pci_disable_pcie_error_reporting
	cbz	w21, LBB0_13
LBB0_12:
	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_13:
	mov	x0, x19
	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
	b	_pci_disable_device
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	___IXGBE_REMOVING,4,2           ; @__IXGBE_REMOVING
	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"complete\n"

	.comm	_IXGBE_MAX_LINK_HANDLE,4,2      ; @IXGBE_MAX_LINK_HANDLE
	.comm	___IXGBE_DISABLED,4,2           ; @__IXGBE_DISABLED
	.comm	_IXGBE_DCA_CTRL,4,2             ; @IXGBE_DCA_CTRL
	.comm	_IXGBE_DCA_CTRL_DCA_DISABLE,4,2 ; @IXGBE_DCA_CTRL_DCA_DISABLE
	.comm	_IXGBE_FLAG_DCA_ENABLED,4,2     ; @IXGBE_FLAG_DCA_ENABLED
	.no_dead_strip	_ixgbe_remove
.subsections_via_symbols
