	.file	"extr_media.c_libvlc_media_slaves_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	libvlc_media_slaves_add
	.type	libvlc_media_slaves_add, @function
libvlc_media_slaves_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	setne	al
	xor	edi, edi
	test	rcx, rcx
	setne	dil
	and	edi, eax
	call	assert@PLT
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	je	.L3
	xor	eax, eax
	call	vlc_assert_unreachable@PLT
	mov	eax, -1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR SLAVE_TYPE_SPU[rip]
	cmp	ebp, 2
	je	.L7
.L18:
	ja	.L8
	mov	edx, DWORD PTR SLAVE_PRIORITY_MATCH_RIGHT[rip]
	test	ebp, ebp
	cmove	edx, DWORD PTR SLAVE_PRIORITY_MATCH_NONE[rip]
.L13:
	mov	rdi, r12
	mov	rbp, QWORD PTR 0[r13]
	call	input_item_slave_New@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L14
	mov	rdi, rbp
	call	input_item_AddSlave@PLT
	cmp	QWORD PTR VLC_SUCCESS[rip], rax
	setne	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR SLAVE_PRIORITY_USER[rip]
	cmp	ebp, 3
	cmove	edx, DWORD PTR SLAVE_PRIORITY_MATCH_ALL[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR SLAVE_TYPE_AUDIO[rip]
	cmp	ebp, 2
	jne	.L18
.L7:
	mov	edx, DWORD PTR SLAVE_PRIORITY_MATCH_LEFT[rip]
	jmp	.L13
.L14:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	libvlc_media_slaves_add, .-libvlc_media_slaves_add
	.comm	VLC_SUCCESS,8,8
	.comm	SLAVE_TYPE_SPU,4,4
	.comm	SLAVE_TYPE_AUDIO,4,4
	.comm	SLAVE_PRIORITY_USER,4,4
	.comm	SLAVE_PRIORITY_MATCH_RIGHT,4,4
	.comm	SLAVE_PRIORITY_MATCH_NONE,4,4
	.comm	SLAVE_PRIORITY_MATCH_LEFT,4,4
	.comm	SLAVE_PRIORITY_MATCH_ALL,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_media.c_libvlc_media_slaves_add.c"
	.text
	.align	2
	.global	libvlc_media_slaves_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	libvlc_media_slaves_add, %function
libvlc_media_slaves_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r4, r1
	subs	r0, r3, #0
	movne	r0, #1
	cmp	r6, #0
	moveq	r0, #0
	mov	r7, r2
	mov	r5, r3
	bl	assert
	cmp	r4, #128
	beq	.L2
	cmp	r4, #129
	beq	.L3
	bl	vlc_assert_unreachable
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L18
	ldr	r1, [r3]
.L5:
	cmp	r7, #3
	ldrls	pc, [pc, r7, asl #2]
	b	.L7
.L9:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L3:
	ldr	r3, .L18+4
	ldr	r1, [r3]
	b	.L5
.L8:
	ldr	r3, .L18+8
	ldr	r2, [r3]
.L13:
	mov	r0, r5
	ldr	r4, [r6]
	bl	input_item_slave_New
	subs	r1, r0, #0
	beq	.L14
	mov	r0, r4
	bl	input_item_AddSlave
	ldr	r3, .L18+12
	ldr	r3, [r3]
	subs	r0, r3, r0
	mvnne	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L18+16
	ldr	r2, [r3]
	b	.L13
.L11:
	ldr	r3, .L18+20
	ldr	r2, [r3]
	b	.L13
.L12:
	ldr	r3, .L18+24
	ldr	r2, [r3]
	b	.L13
.L14:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L18+28
	ldr	r2, [r3]
	b	.L13
.L19:
	.align	2
.L18:
	.word	SLAVE_TYPE_SPU
	.word	SLAVE_TYPE_AUDIO
	.word	SLAVE_PRIORITY_MATCH_ALL
	.word	VLC_SUCCESS
	.word	SLAVE_PRIORITY_MATCH_LEFT
	.word	SLAVE_PRIORITY_MATCH_RIGHT
	.word	SLAVE_PRIORITY_MATCH_NONE
	.word	SLAVE_PRIORITY_USER
	.size	libvlc_media_slaves_add, .-libvlc_media_slaves_add
	.comm	VLC_SUCCESS,4,4
	.comm	SLAVE_TYPE_SPU,4,4
	.comm	SLAVE_TYPE_AUDIO,4,4
	.comm	SLAVE_PRIORITY_USER,4,4
	.comm	SLAVE_PRIORITY_MATCH_RIGHT,4,4
	.comm	SLAVE_PRIORITY_MATCH_NONE,4,4
	.comm	SLAVE_PRIORITY_MATCH_LEFT,4,4
	.comm	SLAVE_PRIORITY_MATCH_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
