	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_uninit_ae_dev
_hclge_uninit_ae_dev:                   ## @hclge_uninit_ae_dev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_hclge_misc_affinity_teardown
	movq	%rbx, %rdi
	callq	_hclge_state_uninit
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_mdiobus_unregister
LBB0_2:
	movq	%rbx, %rdi
	callq	_hclge_uninit_umv_space
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_hclge_enable_vector
	movl	8(%rbx), %edi
	callq	_synchronize_irq
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hclge_config_mac_tnl_int
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hclge_config_nic_hw_error
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hclge_config_rocee_ras_interrupt
	movq	%rbx, %rdi
	callq	_hclge_cmd_uninit
	movq	%rbx, %rdi
	callq	_hclge_misc_irq_uninit
	movq	%rbx, %rdi
	callq	_hclge_pci_uninit
	leaq	4(%rbx), %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_hclge_uninit_vport_mac_table
	movq	%rbx, %rdi
	callq	_hclge_uninit_vport_vlan_table
	movq	%rbx, %rdi
	callq	_mutex_destroy
	movq	$0, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hclge_uninit_ae_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_uninit_ae_dev
_hclge_uninit_ae_dev:                   ; @hclge_uninit_ae_dev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_hclge_misc_affinity_teardown
	mov	x0, x20
	bl	_hclge_state_uninit
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_mdiobus_unregister
LBB0_2:
	mov	x0, x20
	bl	_hclge_uninit_umv_space
	add	x0, x20, #8
	mov	w1, #0
	bl	_hclge_enable_vector
	ldr	w0, [x20, #8]
	bl	_synchronize_irq
	mov	x0, x20
	mov	w1, #0
	bl	_hclge_config_mac_tnl_int
	mov	x0, x20
	mov	w1, #0
	bl	_hclge_config_nic_hw_error
	mov	x0, x20
	mov	w1, #0
	bl	_hclge_config_rocee_ras_interrupt
	mov	x0, x20
	bl	_hclge_cmd_uninit
	mov	x0, x20
	bl	_hclge_misc_irq_uninit
	mov	x0, x20
	bl	_hclge_pci_uninit
	add	x0, x20, #4
	bl	_mutex_destroy
	mov	x0, x20
	bl	_hclge_uninit_vport_mac_table
	mov	x0, x20
	bl	_hclge_uninit_vport_vlan_table
	mov	x0, x20
	bl	_mutex_destroy
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hclge_uninit_ae_dev
.subsections_via_symbols
