	.file	"extr_savage_bci.c_savage_bci_wait_event_shadow.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	savage_bci_wait_event_shadow, @function
savage_bci_wait_event_shadow:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR SAVAGE_EVENT_USEC_TIMEOUT[rip]
	test	eax, eax
	jle	.L8
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	test	eax, eax
	je	.L5
	mov	edi, 1
	add	ebx, 1
	call	DRM_UDELAY@PLT
	cmp	DWORD PTR SAVAGE_EVENT_USEC_TIMEOUT[rip], ebx
	jle	.L12
.L4:
	xor	eax, eax
	call	DRM_MEMORYBARRIER@PLT
	mov	rax, QWORD PTR 0[rbp]
	movzx	eax, WORD PTR 4[rax]
	mov	edx, eax
	sub	edx, r12d
	and	dh, -128
	jne	.L13
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
.L8:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	savage_bci_wait_event_shadow, .-savage_bci_wait_event_shadow
	.comm	SAVAGE_EVENT_USEC_TIMEOUT,4,4
	.comm	EBUSY,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_savage_bci.c_savage_bci_wait_event_shadow.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	savage_bci_wait_event_shadow, %function
savage_bci_wait_event_shadow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L10
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r5, r0
	mov	r6, r1
	mov	r4, #0
	ldr	r8, .L10+4
	b	.L4
.L9:
	mov	r0, #1
	bl	DRM_UDELAY
	ldr	r3, [r7]
	cmp	r3, r4
	ble	.L2
.L4:
	bl	DRM_MEMORYBARRIER
	ldr	r3, [r5]
	add	r4, r4, #1
	ldr	r3, [r3, #4]
	and	r3, r3, r8
	cmp	r3, #0
	sub	r2, r3, r6
	moveq	r3, #1
	lsr	r2, r2, #15
	eor	r2, r2, #1
	andne	r3, r2, #1
	cmp	r3, #0
	beq	.L9
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	SAVAGE_EVENT_USEC_TIMEOUT
	.word	65535
	.word	EBUSY
	.size	savage_bci_wait_event_shadow, .-savage_bci_wait_event_shadow
	.comm	SAVAGE_EVENT_USEC_TIMEOUT,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
