	.file	"extr_amdgpu_device.c_amdgpu_device_ip_wait_for_idle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	amdgpu_device_ip_wait_for_idle
	.type	amdgpu_device_ip_wait_for_idle, @function
amdgpu_device_ip_wait_for_idle:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jle	.L1
	mov	rax, QWORD PTR 8[rdi]
	sub	edx, 1
	sal	rdx, 4
	lea	rcx, 16[rax+rdx]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR 8[rax]
	test	edx, edx
	je	.L3
	mov	rdx, QWORD PTR [rax]
	cmp	DWORD PTR [rdx], esi
	je	.L8
.L3:
	add	rax, 16
	cmp	rax, rcx
	jne	.L4
.L1:
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[rdx]
	jmp	[QWORD PTR [rax]]
	.cfi_endproc
.LFE0:
	.size	amdgpu_device_ip_wait_for_idle, .-amdgpu_device_ip_wait_for_idle
	.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_device.c_amdgpu_device_ip_wait_for_idle.c"
	.text
	.align	2
	.global	amdgpu_device_ip_wait_for_idle
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_device_ip_wait_for_idle, %function
amdgpu_device_ip_wait_for_idle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	lr, [r0]
	cmp	lr, #0
	ble	.L1
	mov	r3, #0
	ldr	r5, [r0, #4]
	add	r4, r5, #4
.L4:
	ldr	r2, [r4, r3, lsl #3]
	cmp	r2, #0
	beq	.L3
	ldr	r2, [r5, r3, lsl #3]
	ldr	ip, [r2]
	cmp	ip, r1
	beq	.L12
.L3:
	add	r3, r3, #1
	cmp	r3, lr
	bne	.L4
.L1:
	mov	r0, #0
	pop	{r4, r5, pc}
.L12:
	ldr	r3, [r2, #4]
	pop	{r4, r5, lr}
	ldr	r3, [r3]
	bx	r3
	.size	amdgpu_device_ip_wait_for_idle, .-amdgpu_device_ip_wait_for_idle
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
