	.file	"extr_savage_bci.c_savage_bci_buffers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Process %d trying to send %d buffers via drmDMA\n"
	.align 8
.LC1:
	.string	"Process %d trying to get %d buffers (of %d max)\n"
	.text
	.p2align 4
	.globl	savage_bci_buffers
	.type	savage_bci_buffers, @function
savage_bci_buffers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	mov	rsi, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	r15, QWORD PTR [rdi]
	call	LOCK_TEST_WITH_RETURN@PLT
	mov	r14, QWORD PTR [r12]
	test	r14, r14
	jne	.L10
	mov	r14, QWORD PTR 8[r12]
	mov	r15, QWORD PTR [r15]
	test	r14, r14
	js	.L4
	cmp	r14, r15
	jg	.L4
	mov	QWORD PTR 16[r12], 0
	xor	eax, eax
	test	r14, r14
	jne	.L11
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR current[rip]
	call	task_pid_nr@PLT
	mov	rcx, r15
	mov	rdx, r14
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR current[rip]
	call	task_pid_nr@PLT
	mov	rdx, r14
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	savage_bci_get_buffers@PLT
	.cfi_endproc
.LFE0:
	.size	savage_bci_buffers, .-savage_bci_buffers
	.comm	current,4,4
	.comm	EINVAL,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_buffers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Process %d trying to send %d buffers via drmDMA\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Process %d trying to get %d buffers (of %d max)\012"
	.ascii	"\000"
	.text
	.align	2
	.global	savage_bci_buffers
	.syntax unified
	.arm
	.fpu softvfp
	.type	savage_bci_buffers, %function
savage_bci_buffers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r1, r2
	mov	r6, r2
	mov	r5, r0
	ldr	r7, [r0]
	bl	LOCK_TEST_WITH_RETURN
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L11
	ldr	r0, [r4, #4]
	cmp	r0, #0
	blt	.L4
	ldr	r2, [r7]
	cmp	r0, r2
	bgt	.L4
	cmp	r0, #0
	str	r3, [r4, #8]
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	savage_bci_get_buffers
.L4:
	ldr	r3, .L12
	ldr	r0, [r3]
	bl	task_pid_nr
	ldr	r3, [r7]
	mov	r1, r0
	ldr	r2, [r4, #4]
	ldr	r0, .L12+4
	bl	DRM_ERROR
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12
	ldr	r0, [r3]
	bl	task_pid_nr
	ldr	r2, [r4]
	mov	r1, r0
	ldr	r0, .L12+12
	bl	DRM_ERROR
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	current
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.size	savage_bci_buffers, .-savage_bci_buffers
	.comm	current,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
