	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_remove
_efx_ef10_remove:                       ## @efx_ef10_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, %rbx
	movq	16(%rdi), %r14
	callq	_efx_ef10_cleanup_vlans
	leaq	32(%r14), %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_efx_ptp_remove
	movq	%rbx, %rdi
	callq	_efx_mcdi_mon_remove
	movq	%rbx, %rdi
	callq	_efx_ef10_rx_free_indir_table
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_iounmap
LBB0_2:
	movq	%rbx, %rdi
	callq	_efx_ef10_free_vis
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_WARN_ON
	cmpl	$0, 16(%r14)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_efx_ef10_free_piobufs
LBB0_4:
	movq	(%rbx), %rdi
	movq	_dev_attr_primary_flag@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	(%rbx), %rdi
	movq	_dev_attr_link_control_flag@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	%rbx, %rdi
	callq	_efx_mcdi_detach
	movl	12(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_efx_ef10_set_udp_tnl_ports
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_efx_mcdi_fini
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_efx_nic_free_buffer
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_primary_flag,4,2      ## @dev_attr_primary_flag
	.comm	_dev_attr_link_control_flag,4,2 ## @dev_attr_link_control_flag
	.comm	_drv,4,2                        ## @drv
	.no_dead_strip	_efx_ef10_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_remove
_efx_ef10_remove:                       ; @efx_ef10_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	x20, x0
	ldr	x19, [x0, #16]
	bl	_efx_ef10_cleanup_vlans
	add	x0, x19, #32
	bl	_mutex_destroy
	mov	x0, x20
	bl	_efx_ptp_remove
	mov	x0, x20
	bl	_efx_mcdi_mon_remove
	mov	x0, x20
	bl	_efx_ef10_rx_free_indir_table
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_iounmap
LBB0_2:
	mov	x0, x20
	bl	_efx_ef10_free_vis
	cmp	w0, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_efx_ef10_free_piobufs
LBB0_4:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, _dev_attr_primary_flag@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_primary_flag@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	x0, [x20]
Lloh2:
	adrp	x1, _dev_attr_link_control_flag@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_attr_link_control_flag@GOTPAGEOFF]
	bl	_device_remove_file
	mov	x0, x20
	bl	_efx_mcdi_detach
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	mov	w1, #1
	bl	_efx_ef10_set_udp_tnl_ports
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x21
	bl	_mutex_destroy
	mov	x0, x20
	bl	_efx_mcdi_fini
	add	x1, x19, #4
	mov	x0, x20
	bl	_efx_nic_free_buffer
	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	_kfree
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_primary_flag,4,2      ; @dev_attr_primary_flag
	.comm	_dev_attr_link_control_flag,4,2 ; @dev_attr_link_control_flag
	.comm	_drv,4,2                        ; @drv
	.no_dead_strip	_efx_ef10_remove
.subsections_via_symbols
