	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbevf_remove
_ixgbevf_remove:                        ## @ixgbevf_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	___IXGBEVF_REMOVING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	leaq	16(%rbx), %rdi
	callq	_cancel_work_sync
	movq	(%r15), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_unregister_netdev
LBB0_3:
	movq	%rbx, %rdi
	callq	_ixgbevf_stop_ipsec_offload
	movq	%rbx, %rdi
	callq	_ixgbevf_clear_interrupt_scheme
	movq	%rbx, %rdi
	callq	_ixgbevf_reset_interrupt_capability
	movl	12(%rbx), %edi
	callq	_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%rbx, %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_hw_dbg
	movl	4(%rbx), %edi
	callq	_kfree
	movq	___IXGBEVF_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_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___IXGBEVF_REMOVING,4,2         ## @__IXGBEVF_REMOVING
	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remove complete\n"

	.comm	___IXGBEVF_DISABLED,4,2         ## @__IXGBEVF_DISABLED
	.no_dead_strip	_ixgbevf_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbevf_remove
_ixgbevf_remove:                        ; @ixgbevf_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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, ___IXGBEVF_REMOVING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___IXGBEVF_REMOVING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	add	x0, x21, #16
	bl	_cancel_work_sync
	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_3
; %bb.2:
	mov	x0, x20
	bl	_unregister_netdev
LBB0_3:
	mov	x0, x21
	bl	_ixgbevf_stop_ipsec_offload
	mov	x0, x21
	bl	_ixgbevf_clear_interrupt_scheme
	mov	x0, x21
	bl	_ixgbevf_reset_interrupt_capability
	ldr	w0, [x21, #12]
	bl	_iounmap
	mov	x0, x19
	bl	_pci_release_regions
	add	x0, x21, #8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hw_dbg
	ldr	w0, [x21, #4]
	bl	_kfree
Lloh8:
	adrp	x8, ___IXGBEVF_DISABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___IXGBEVF_DISABLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	mov	x21, x0
	mov	x0, x20
	bl	_free_netdev
	cbz	w21, LBB0_5
LBB0_4:
	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_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	___IXGBEVF_REMOVING,4,2         ; @__IXGBEVF_REMOVING
	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remove complete\n"

	.comm	___IXGBEVF_DISABLED,4,2         ; @__IXGBEVF_DISABLED
	.no_dead_strip	_ixgbevf_remove
.subsections_via_symbols
