	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_clean_devdata
_hfi1_clean_devdata:                    ## @hfi1_clean_devdata
	.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	_hfi1_dev_table@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_xa_lock_irqsave
	movl	48(%rbx), %esi
	movq	%r14, %rdi
	callq	___xa_erase
	movq	%rbx, %rdi
	callq	_release_asic_data
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_xa_unlock_irqrestore
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_finalize_asic_data
	movq	%rbx, %rdi
	callq	_free_platform_config
	xorl	%eax, %eax
	callq	_rcu_barrier
	movq	40(%rbx), %rdi
	callq	_free_percpu
	movq	32(%rbx), %rdi
	callq	_free_percpu
	movq	24(%rbx), %rdi
	callq	_free_percpu
	movq	16(%rbx), %rdi
	callq	_free_percpu
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, 32(%rbx)
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sdma_clean
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rvt_dealloc_device             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hfi1_dev_table,4,2             ## @hfi1_dev_table
	.no_dead_strip	_hfi1_clean_devdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_clean_devdata
_hfi1_clean_devdata:                    ; @hfi1_clean_devdata
	.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
Lloh0:
	adrp	x20, _hfi1_dev_table@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hfi1_dev_table@GOTPAGEOFF]
	mov	x0, x20
	bl	_xa_lock_irqsave
	ldr	w1, [x19, #48]
	mov	x0, x20
	bl	___xa_erase
	mov	x0, x19
	bl	_release_asic_data
	mov	x21, x0
	mov	x0, x20
	bl	_xa_unlock_irqrestore
	mov	x0, x19
	mov	x1, x21
	bl	_finalize_asic_data
	mov	x0, x19
	bl	_free_platform_config
	bl	_rcu_barrier
	ldr	x0, [x19, #40]
	bl	_free_percpu
	ldr	x0, [x19, #32]
	bl	_free_percpu
	ldr	x0, [x19, #24]
	bl	_free_percpu
	ldr	x0, [x19, #16]
	bl	_free_percpu
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_sdma_clean
	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	_rvt_dealloc_device
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hfi1_dev_table,4,2             ; @hfi1_dev_table
	.no_dead_strip	_hfi1_clean_devdata
.subsections_via_symbols
