	.file	"extr_amdgpu_psp.c_psp_xgmi_terminate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	psp_xgmi_terminate, @function
psp_xgmi_terminate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 16[rdi], 0
	jne	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12, rdi
	call	psp_xgmi_unload@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	lea	rsi, 4[r12]
	lea	rdi, 8[r12]
	mov	rdx, r12
	mov	QWORD PTR 16[r12], 0
	call	amdgpu_bo_free_kernel@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	psp_xgmi_terminate, .-psp_xgmi_terminate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_amdgpu_psp.c_psp_xgmi_terminate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	psp_xgmi_terminate, %function
psp_xgmi_terminate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #12]
	cmp	r4, #0
	bne	.L8
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	mov	r5, r0
	bl	psp_xgmi_unload
	subs	r4, r0, #0
	bne	.L1
	mov	r2, r5
	str	r4, [r5, #12]
	add	r1, r5, #4
	add	r0, r5, #8
	bl	amdgpu_bo_free_kernel
	mov	r0, r4
	pop	{r4, r5, r6, pc}
	.size	psp_xgmi_terminate, .-psp_xgmi_terminate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
