	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_pf_remove
_enetc_pf_remove:                       ## @enetc_pf_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, %r12
	movq	%rax, %rdi
	callq	_enetc_si_priv
	movq	%rax, %r15
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_enetc_sriov_configure
LBB0_2:
	movl	(%r12), %edi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_enetc_drv_name@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_enetc_drv_ver@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_info
	movl	(%r12), %edi
	callq	_unregister_netdev
	movq	%r15, %rdi
	callq	_enetc_mdio_remove
	movq	%rbx, %rdi
	callq	_enetc_of_put_phy
	movq	%rbx, %rdi
	callq	_enetc_free_msix
	movq	%rbx, %rdi
	callq	_enetc_free_si_resources
	movl	(%r12), %edi
	callq	_free_netdev
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enetc_pci_remove               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s v%s remove\n"

	.comm	_enetc_drv_name,4,2             ## @enetc_drv_name
	.comm	_enetc_drv_ver,4,2              ## @enetc_drv_ver
	.no_dead_strip	_enetc_pf_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_pf_remove
_enetc_pf_remove:                       ; @enetc_pf_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	_enetc_si_priv
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_enetc_sriov_configure
LBB0_2:
	ldr	w0, [x20]
	bl	_netdev_priv
	mov	x22, x0
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x8, _enetc_drv_name@GOTPAGE
Lloh4:
	ldr	x8, [x8, _enetc_drv_name@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _enetc_drv_ver@GOTPAGE
Lloh7:
	ldr	x8, [x8, _enetc_drv_ver@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netif_info
	ldr	w0, [x20]
	bl	_unregister_netdev
	mov	x0, x21
	bl	_enetc_mdio_remove
	mov	x0, x22
	bl	_enetc_of_put_phy
	mov	x0, x22
	bl	_enetc_free_msix
	mov	x0, x22
	bl	_enetc_free_si_resources
	ldr	w0, [x20]
	bl	_free_netdev
	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	_enetc_pci_remove
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s v%s remove\n"

	.comm	_enetc_drv_name,4,2             ; @enetc_drv_name
	.comm	_enetc_drv_ver,4,2              ; @enetc_drv_ver
	.no_dead_strip	_enetc_pf_remove
.subsections_via_symbols
