	.file	"extr_avahi.c_OpenCommon.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to create Avahi threaded poll"
	.align 8
.LC1:
	.string	"failed to create avahi client: %s"
	.align 8
.LC2:
	.string	"failed to create avahi service browser %s"
	.text
	.p2align 4
	.type	OpenCommon, @function
OpenCommon:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	add	rdi, 28
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	vlc_dictionary_init@PLT
	xor	eax, eax
	call	avahi_threaded_poll_new@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L23
	mov	r12d, DWORD PTR client_callback[rip]
	mov	rdi, rax
	call	avahi_threaded_poll_get@PLT
	lea	r8, 4[rsp]
	mov	rcx, rbp
	xor	esi, esi
	mov	edi, eax
	mov	edx, r12d
	call	avahi_client_new@PLT
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR NB_PROTOCOLS[rip]
	xor	ebx, ebx
	test	esi, esi
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebx, 1
	cmp	DWORD PTR NB_PROTOCOLS[rip], ebx
	jbe	.L6
.L5:
	mov	eax, ebx
	mov	rdx, QWORD PTR 0[rbp]
	sal	rax, 4
	add	rax, QWORD PTR protocols[rip]
	cmp	QWORD PTR [rax], rdx
	jne	.L7
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR browse_callback[rip]
	push	rbp
	.cfi_def_cfa_offset 56
	xor	r9d, r9d
	mov	edx, DWORD PTR AVAHI_PROTO_UNSPEC[rip]
	mov	rdi, QWORD PTR 16[rbp]
	xor	r8d, r8d
	push	rax
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR AVAHI_IF_UNSPEC[rip]
	call	avahi_service_browser_new@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	jne	.L7
	mov	rdi, QWORD PTR 16[rbp]
	call	avahi_client_errno@PLT
	mov	edi, eax
	call	avahi_strerror@PLT
	mov	edi, DWORD PTR 24[rbp]
	lea	rsi, .LC2[rip]
	mov	edx, eax
	xor	eax, eax
	call	msg_Err@PLT
.L3:
	mov	rdi, QWORD PTR 16[rbp]
	test	rdi, rdi
	je	.L9
	call	avahi_client_free@PLT
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L10
	call	avahi_threaded_poll_free@PLT
.L10:
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	call	avahi_threaded_poll_start@PLT
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L24
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbp]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	msg_Err@PLT
	jmp	.L3
.L4:
	mov	edi, DWORD PTR 4[rsp]
	call	avahi_strerror@PLT
	mov	edi, DWORD PTR 24[rbp]
	lea	rsi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	msg_Err@PLT
	jmp	.L3
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	OpenCommon, .-OpenCommon
	.comm	protocols,8,8
	.comm	client_callback,4,4
	.comm	browse_callback,4,4
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	NB_PROTOCOLS,4,4
	.comm	AVAHI_PROTO_UNSPEC,4,4
	.comm	AVAHI_IF_UNSPEC,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_avahi.c_OpenCommon.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to create Avahi threaded poll\000"
	.align	2
.LC1:
	.ascii	"failed to create avahi client: %s\000"
	.align	2
.LC2:
	.ascii	"failed to create avahi service browser %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OpenCommon, %function
OpenCommon:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L24
	sub	sp, sp, #24
	mov	r5, r0
	mov	r1, #1
	add	r0, r0, #16
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	vlc_dictionary_init
	bl	avahi_threaded_poll_new
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L22
	bl	avahi_threaded_poll_get
	ldr	r2, .L24+4
	add	r3, sp, #16
	ldr	r2, [r2]
	mov	r1, #0
	str	r3, [sp]
	mov	r3, r5
	bl	avahi_client_new
	cmp	r0, #0
	str	r0, [r5, #8]
	beq	.L4
	ldr	r6, .L24+8
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L6
	mov	r4, #0
	ldr	r7, .L24+12
	ldr	r10, .L24+16
	ldr	r9, .L24+20
	ldr	r8, .L24+24
	b	.L5
.L7:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L6
.L5:
	ldr	r3, [r7]
	ldr	r2, [r5]
	ldr	r1, [r3, r4, lsl #3]
	add	r3, r3, r4, lsl #3
	cmp	r1, r2
	bne	.L7
	mov	r2, #0
	ldr	r1, [r8]
	ldr	r3, [r3, #4]
	str	r2, [sp, #4]
	str	r2, [sp]
	str	r1, [sp, #8]
	str	r5, [sp, #12]
	ldr	r2, [r10]
	ldr	r1, [r9]
	ldr	r0, [r5, #8]
	bl	avahi_service_browser_new
	cmp	r0, #0
	bne	.L7
	ldr	r0, [r5, #8]
	ldr	r4, [r5, #12]
	bl	avahi_client_errno
	bl	avahi_strerror
	ldr	r1, .L24+28
	mov	r2, r0
	mov	r0, r4
	bl	msg_Err
.L3:
	ldr	r0, [r5, #8]
	cmp	r0, #0
	beq	.L9
	bl	avahi_client_free
.L9:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L10
	bl	avahi_threaded_poll_free
.L10:
	ldr	r3, .L24+32
	ldr	r0, [r3]
	b	.L1
.L6:
	ldr	r0, [r5, #4]
	bl	avahi_threaded_poll_start
	ldr	r3, .L24+36
	ldr	r0, [r3]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r1, .L24+40
	ldr	r0, [r5, #12]
	bl	msg_Err
	b	.L3
.L4:
	ldr	r0, [sp, #16]
	ldr	r4, [r5, #12]
	bl	avahi_strerror
	ldr	r1, .L24+44
	mov	r2, r0
	mov	r0, r4
	bl	msg_Err
	b	.L3
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	client_callback
	.word	NB_PROTOCOLS
	.word	protocols
	.word	AVAHI_PROTO_UNSPEC
	.word	AVAHI_IF_UNSPEC
	.word	browse_callback
	.word	.LC2
	.word	VLC_EGENERIC
	.word	VLC_SUCCESS
	.word	.LC0
	.word	.LC1
	.size	OpenCommon, .-OpenCommon
	.comm	protocols,4,4
	.comm	client_callback,4,4
	.comm	browse_callback,4,4
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	NB_PROTOCOLS,4,4
	.comm	AVAHI_PROTO_UNSPEC,4,4
	.comm	AVAHI_IF_UNSPEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
