	.file	"extr_event.c_nouveau_event_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nouveau_event_get
	.type	nouveau_event_get, @function
nouveau_event_get:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR [rdi], esi
	jg	.L15
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, r13
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	mov	rdx, QWORD PTR 16[rbx]
	movsx	rax, ebp
	mov	rdi, r12
	lea	rsi, [rdx+rax*4]
	call	list_add@PLT
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	jne	.L16
.L3:
	mov	rdi, rbx
	mov	esi, ebp
	call	nouveau_event_enable_locked@PLT
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	jne	.L17
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	xor	esi, esi
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	call	spin_lock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	call	spin_unlock@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	nouveau_event_get, .-nouveau_event_get
	.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_event.c_nouveau_event_get.c"
	.text
	.align	2
	.global	nouveau_event_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	nouveau_event_get, %function
nouveau_event_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, r1
	bxle	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r2
	mov	r5, r1
	add	r7, r0, #4
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r1, [r4, #12]
	mov	r0, r6
	add	r1, r1, r5, lsl #2
	bl	list_add
	ldr	r0, [r4, #8]
	cmp	r0, #0
	bne	.L15
.L3:
	mov	r1, r5
	mov	r0, r4
	bl	nouveau_event_enable_locked
	ldr	r0, [r4, #8]
	cmp	r0, #0
	bne	.L16
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L15:
	bl	spin_lock
	b	.L3
.L16:
	bl	spin_unlock
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
	.size	nouveau_event_get, .-nouveau_event_get
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
