	.file	"extr_rsv.c_uwb_rsv_get_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"get stream %d\n"
	.text
	.p2align 4
	.type	uwb_rsv_get_stream, @function
uwb_rsv_get_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	rbp, QWORD PTR 24[rdi]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L3
	mov	rax, QWORD PTR 16[rdi]
	mov	r12, QWORD PTR [rax]
.L4:
	mov	esi, DWORD PTR UWB_NUM_STREAMS[rip]
	mov	rdi, r12
	call	find_first_zero_bit@PLT
	cmp	DWORD PTR UWB_NUM_STREAMS[rip], eax
	mov	edi, eax
	jg	.L6
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	DWORD PTR [rbx], eax
	mov	rsi, r12
	call	set_bit@PLT
	mov	edx, DWORD PTR [rbx]
	lea	rdi, 8[rbp]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	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
.L2:
	.cfi_restore_state
	mov	r12, QWORD PTR 0[rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR EINVAL[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
	.cfi_endproc
.LFE0:
	.size	uwb_rsv_get_stream, .-uwb_rsv_get_stream
	.comm	UWB_NUM_STREAMS,4,4
	.comm	EINVAL,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_rsv.c_uwb_rsv_get_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"get stream %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uwb_rsv_get_stream, %function
uwb_rsv_get_stream:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #128
	mov	r4, r0
	ldr	r6, [r0, #12]
	beq	.L2
	cmp	r3, #129
	bne	.L3
	ldr	r3, [r0, #8]
	ldr	r7, [r3]
.L4:
	ldr	r5, .L9
	mov	r0, r7
	ldr	r1, [r5]
	bl	find_first_zero_bit
	ldr	r2, [r5]
	cmp	r2, r0
	bgt	.L6
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, r7
	str	r0, [r4]
	bl	set_bit
	ldr	r2, [r4]
	ldr	r1, .L9+8
	add	r0, r6, #4
	bl	dev_dbg
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r7, [r6]
	b	.L4
.L3:
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	UWB_NUM_STREAMS
	.word	EBUSY
	.word	.LC0
	.word	EINVAL
	.size	uwb_rsv_get_stream, .-uwb_rsv_get_stream
	.comm	UWB_NUM_STREAMS,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
