	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_remove
_e1000_remove:                          ## @e1000_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	16(%rax), %r12
	movq	%rax, %rdi
	callq	_e1000_down_and_stop
	movq	%rbx, %rdi
	callq	_e1000_release_manageability
	movq	%r15, %rdi
	callq	_unregister_netdev
	movq	%r12, %rdi
	callq	_e1000_phy_hw_reset
	movl	12(%rbx), %edi
	callq	_kfree
	movl	8(%rbx), %edi
	callq	_kfree
	movq	16(%rbx), %rax
	movq	_e1000_ce4100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	40(%rbx), %rdi
	callq	_iounmap
LBB0_2:
	movq	32(%rbx), %rdi
	callq	_iounmap
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_iounmap
LBB0_4:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_pci_release_selected_regions
	movq	___E1000_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_free_netdev
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_ce4100,8,3               ## @e1000_ce4100
	.comm	___E1000_DISABLED,4,2           ## @__E1000_DISABLED
	.no_dead_strip	_e1000_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_remove
_e1000_remove:                          ; @e1000_remove
	.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	_pci_get_drvdata
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x22, x0, #16
	bl	_e1000_down_and_stop
	mov	x0, x21
	bl	_e1000_release_manageability
	mov	x0, x20
	bl	_unregister_netdev
	mov	x0, x22
	bl	_e1000_phy_hw_reset
	ldr	w0, [x21, #12]
	bl	_kfree
	ldr	w0, [x21, #8]
	bl	_kfree
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x9, _e1000_ce4100@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_ce4100@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x21, #40]
	bl	_iounmap
LBB0_2:
	ldr	x0, [x21, #32]
	bl	_iounmap
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_iounmap
LBB0_4:
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_pci_release_selected_regions
Lloh3:
	adrp	x8, ___E1000_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___E1000_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	mov	x21, x0
	mov	x0, x20
	bl	_free_netdev
	cbz	w21, LBB0_6
; %bb.5:
	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
LBB0_6:
	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
	b	_pci_disable_device
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_ce4100,8,3               ; @e1000_ce4100
	.comm	___E1000_DISABLED,4,2           ; @__E1000_DISABLED
	.no_dead_strip	_e1000_remove
.subsections_via_symbols
