	.file	"extr_wfc_client_stream.c_wfc_stream_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: stream 0x%x flags 0x%x"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s: unable to create data block for stream 0x%x"
	.align 8
.LC2:
	.string	"%s: server create returned 0x%x"
	.align 8
.LC3:
	.string	"%s: stream 0x%x already exists in server"
	.text
	.p2align 4
	.globl	wfc_stream_create
	.type	wfc_stream_create, @function
wfc_stream_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rsi
	mov	rdx, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rsi
	mov	esi, DWORD PTR VCOS_FUNCTION[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	vcos_log_info@PLT
	xor	esi, esi
	mov	rdi, r13
	call	wfc_stream_create_stream_ptr@PLT
	test	rax, rax
	je	.L11
	mov	rbp, rax
	xor	eax, eax
	lea	r14, 16[rsp]
	call	vcos_process_id_current@PLT
	mov	ecx, 32
	xor	esi, esi
	mov	rdi, r14
	movsx	r15, eax
	mov	edx, 16
	mov	ebx, DWORD PTR WFC_STREAM_RETRIES[rip]
	mov	r12, r15
	sar	r12d, cl
	call	memset@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 16[rsp], 16
	movsx	r12, r12d
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, r12
	mov	rdx, r15
	mov	rsi, r14
	mov	rdi, r13
	call	wfc_server_stream_create_info@PLT
	mov	esi, DWORD PTR VCOS_FUNCTION[rip]
	lea	rdi, .LC2[rip]
	mov	QWORD PTR 0[rbp], rax
	mov	rdx, rax
	call	vcos_log_trace@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR WFC_INVALID_HANDLE[rip]
	je	.L12
.L4:
	xor	edi, edi
	cmp	r13, rax
	sete	dil
	xor	r12d, r12d
	call	vcos_assert@PLT
	mov	rax, QWORD PTR 8[rsp]
	add	DWORD PTR 16[rbp], 1
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rax
	call	STREAM_UNLOCK@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	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
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR WFC_STREAM_RETRY_DELAY_MS[rip]
	call	vcos_sleep@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR WFC_INVALID_HANDLE[rip]
	jne	.L4
	lea	eax, -1[rbx]
	test	ebx, ebx
	jle	.L14
	mov	ebx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR VCOS_FUNCTION[rip]
	mov	rdx, r13
	lea	rdi, .LC3[rip]
	call	vcos_log_error@PLT
	mov	rdi, rbp
	mov	r12, QWORD PTR VCOS_EEXIST[rip]
	call	wfc_stream_destroy_if_ready@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR VCOS_FUNCTION[rip]
	mov	rdx, r13
	lea	rdi, .LC1[rip]
	call	vcos_log_error@PLT
	mov	r12, QWORD PTR VCOS_ENOMEM[rip]
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wfc_stream_create, .-wfc_stream_create
	.comm	WFC_STREAM_RETRY_DELAY_MS,4,4
	.comm	WFC_STREAM_RETRIES,4,4
	.comm	WFC_INVALID_HANDLE,8,8
	.comm	VCOS_FUNCTION,4,4
	.comm	VCOS_ENOMEM,8,8
	.comm	VCOS_EEXIST,8,8
	.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_wfc_client_stream.c_wfc_stream_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: stream 0x%x flags 0x%x\000"
	.align	2
.LC1:
	.ascii	"%s: unable to create data block for stream 0x%x\000"
	.align	2
.LC2:
	.ascii	"%s: server create returned 0x%x\000"
	.align	2
.LC3:
	.ascii	"%s: stream 0x%x already exists in server\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wfc_stream_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	wfc_stream_create, %function
wfc_stream_create:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r9, .L14
	sub	sp, sp, #28
	ldr	ip, .L14+4
	mov	r3, r1
	mov	r2, r0
	str	r1, [sp, #4]
	ldr	r0, .L14+8
	ldr	r1, [r9]
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	vcos_log_info
	mov	r0, r7
	mov	r1, #0
	bl	wfc_stream_create_stream_ptr
	subs	r5, r0, #0
	beq	.L11
	bl	vcos_process_id_current
	mov	r10, #32
	mov	r2, #8
	mov	r8, r0
	ldr	r3, .L14+12
	ldr	r1, [sp, #4]
	ldr	r4, [r3]
	ldr	r6, .L14+16
	ldr	fp, .L14+20
	str	r1, [sp, #16]
	asr	r10, r0, r10
	str	r2, [sp, #12]
.L5:
	mov	r3, r10
	mov	r2, r8
	add	r1, sp, #12
	mov	r0, r7
	bl	wfc_server_stream_create_info
	ldr	r1, [r9]
	mov	r2, r0
	str	r0, [r5]
	mov	r0, fp
	bl	vcos_log_trace
	ldr	r0, [r5]
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L12
.L4:
	sub	r0, r7, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	vcos_assert
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #4]
	add	r3, r3, #1
	mov	r0, r5
	str	r2, [r5, #4]
	str	r3, [r5, #8]
	bl	STREAM_UNLOCK
	mov	r4, #0
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, .L14+24
	ldr	r0, [r3]
	bl	vcos_sleep
	ldr	r0, [r5]
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L4
	cmp	r4, #0
	sub	r4, r4, #1
	bgt	.L5
	mov	r2, r7
	ldr	r1, [r9]
	ldr	r0, .L14+28
	bl	vcos_log_error
	ldr	r3, .L14+32
	mov	r0, r5
	ldr	r4, [r3]
	bl	wfc_stream_destroy_if_ready
	b	.L1
.L11:
	mov	r2, r7
	ldr	r1, [r9]
	ldr	r0, .L14+36
	bl	vcos_log_error
	ldr	r3, .L14+40
	ldr	r4, [r3]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	VCOS_FUNCTION
	.word	.LC4
	.word	.LC0
	.word	WFC_STREAM_RETRIES
	.word	WFC_INVALID_HANDLE
	.word	.LC2
	.word	WFC_STREAM_RETRY_DELAY_MS
	.word	.LC3
	.word	VCOS_EEXIST
	.word	.LC1
	.word	VCOS_ENOMEM
	.size	wfc_stream_create, .-wfc_stream_create
	.comm	WFC_STREAM_RETRY_DELAY_MS,4,4
	.comm	WFC_STREAM_RETRIES,4,4
	.comm	WFC_INVALID_HANDLE,4,4
	.comm	VCOS_FUNCTION,4,4
	.comm	VCOS_ENOMEM,4,4
	.comm	VCOS_EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
