	.file	"extr_amdgpu_gfx.c_amdgpu_gfx_kiq_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to create KIQ bo (%d).\n"
	.align 8
.LC1:
	.string	"(%d) reserve kiq eop bo failed\n"
	.text
	.p2align 4
	.globl	amdgpu_gfx_kiq_init
	.type	amdgpu_gfx_kiq_init, @function
amdgpu_gfx_kiq_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r9, 8[rdi]
	lea	r8, 4[rdi]
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 56
	mov	ecx, DWORD PTR AMDGPU_GEM_DOMAIN_GTT[rip]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	lea	rax, 8[rsp]
	push	rax
	.cfi_def_cfa_offset 64
	call	amdgpu_bo_create_kernel@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	xor	esi, esi
	call	memset@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, 1
	call	amdgpu_bo_reserve@PLT
	xor	edi, edi
	test	eax, eax
	mov	r13d, eax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L12
.L4:
	mov	edi, DWORD PTR 4[rbx]
	call	amdgpu_bo_kunmap@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	amdgpu_bo_unreserve@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	call	dev_warn@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	amdgpu_gfx_kiq_init, .-amdgpu_gfx_kiq_init
	.comm	PAGE_SIZE,4,4
	.comm	AMDGPU_GEM_DOMAIN_GTT,4,4
	.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_gfx.c_amdgpu_gfx_kiq_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to create KIQ bo (%d).\012\000"
	.align	2
.LC1:
	.ascii	"(%d) reserve kiq eop bo failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	amdgpu_gfx_kiq_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_gfx_kiq_init, %function
amdgpu_gfx_kiq_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	add	ip, r0, #4
	sub	sp, sp, #24
	add	lr, r0, #8
	ldr	r3, .L14
	ldr	r2, .L14+4
	str	ip, [sp]
	str	lr, [sp, #4]
	add	ip, sp, #16
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	ip, [sp, #8]
	ldr	ip, .L14+8
	mov	r4, r0
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	mov	r6, r1
	bl	amdgpu_bo_create_kernel
	subs	r5, r0, #0
	bne	.L11
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [sp, #16]
	bl	memset
	mov	r1, #1
	ldr	r0, [r4, #4]
	bl	amdgpu_bo_reserve
	mov	r6, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L12
.L4:
	ldr	r0, [r4, #4]
	bl	amdgpu_bo_kunmap
	ldr	r0, [r4, #4]
	bl	amdgpu_bo_unreserve
.L1:
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	mov	r2, r6
	ldr	r1, .L14+12
	ldr	r0, [r4]
	bl	dev_warn
	b	.L4
.L11:
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L14+16
	bl	dev_warn
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	AMDGPU_GEM_DOMAIN_GTT
	.word	PAGE_SIZE
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	amdgpu_gfx_kiq_init, .-amdgpu_gfx_kiq_init
	.comm	PAGE_SIZE,4,4
	.comm	AMDGPU_GEM_DOMAIN_GTT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
