	.file	"extr_vchiq_util.c_vchiu_queue_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vchiu"
	.text
	.p2align 4
	.globl	vchiu_queue_init
	.type	vchiu_queue_init, @function
vchiu_queue_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	is_pow2@PLT
	mov	edi, eax
	call	vcos_assert@PLT
	mov	DWORD PTR 0[rbp], ebx
	lea	rdi, 20[rbp]
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 32[rbp], 0
	mov	QWORD PTR 24[rbp], 0
	call	vcos_event_create@PLT
	lea	rdi, 16[rbp]
	lea	rsi, .LC0[rip]
	call	vcos_event_create@PLT
	mov	esi, DWORD PTR VCOS_FUNCTION[rip]
	lea	edi, 0[0+rbx*8]
	call	vcos_malloc@PLT
	mov	r8d, 1
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	vchiu_queue_delete@PLT
	xor	r8d, r8d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vchiu_queue_init, .-vchiu_queue_init
	.comm	VCOS_FUNCTION,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_vchiq_util.c_vchiu_queue_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vchiu\000"
	.text
	.align	2
	.global	vchiu_queue_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	vchiu_queue_init, %function
vchiu_queue_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	bl	is_pow2
	bl	vcos_assert
	mov	r3, #0
	ldr	r1, .L7
	str	r3, [r4, #20]
	str	r3, [r4, #16]
	str	r5, [r4]
	add	r0, r4, #12
	bl	vcos_event_create
	ldr	r1, .L7
	add	r0, r4, #8
	bl	vcos_event_create
	ldr	r3, .L7+4
	lsl	r0, r5, #2
	ldr	r1, [r3]
	bl	vcos_malloc
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L6
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L6:
	mov	r5, r0
	mov	r0, r4
	bl	vchiu_queue_delete
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	VCOS_FUNCTION
	.size	vchiu_queue_init, .-vchiu_queue_init
	.comm	VCOS_FUNCTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
