	.file	"extr_rtsp.c_ff_rtsp_open_transport_ctx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_rtsp_open_transport_ctx
	.type	ff_rtsp_open_transport_ctx, @function
ff_rtsp_open_transport_ctx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 32[rdi]
	mov	ecx, DWORD PTR [r12]
	test	ecx, ecx
	js	.L29
.L2:
	mov	r9, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rbx]
	mov	r13, QWORD PTR [rax+r9*8]
	test	r13, r13
	je	.L30
	cmp	QWORD PTR CONFIG_RTSP_MUXER[rip], 0
	jne	.L31
.L4:
	mov	rax, QWORD PTR 16[r12]
	cmp	rax, QWORD PTR RTSP_TRANSPORT_RAW[rip]
	je	.L27
	cmp	QWORD PTR CONFIG_RTPDEC[rip], 0
	je	.L8
	cmp	QWORD PTR RTSP_TRANSPORT_RDT[rip], rax
	jne	.L9
	test	r13, r13
	jne	.L32
.L9:
	mov	edx, DWORD PTR 44[rbp]
	mov	rsi, r13
	mov	rdi, rbx
	call	ff_rtp_parse_open@PLT
	mov	QWORD PTR 24[rbp], rax
.L10:
	test	rax, rax
	je	.L13
.L6:
	cmp	QWORD PTR CONFIG_RTPDEC[rip], 0
	je	.L27
	mov	rdx, QWORD PTR RTSP_TRANSPORT_RTP[rip]
	cmp	QWORD PTR 16[r12], rdx
	je	.L33
.L27:
	xor	eax, eax
.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
.L31:
	.cfi_restore_state
	cmp	QWORD PTR 16[rbx], 0
	je	.L4
	mov	rcx, QWORD PTR 48[rbp]
	lea	rdi, 24[rbp]
	mov	rdx, r13
	mov	rsi, rbx
	mov	r8d, DWORD PTR RTSP_TCP_MAX_PACKET_SIZE[rip]
	call	ff_rtp_chain_mux_open@PLT
	mov	QWORD PTR 48[rbp], 0
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rdx]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[r13], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR 24[rbp], 0
	jne	.L27
.L13:
	mov	edi, DWORD PTR ENOMEM[rip]
	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
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rax, QWORD PTR RTSP_LOWER_TRANSPORT_TCP[rip]
	xor	ecx, ecx
	cmp	QWORD PTR 8[r12], rax
	je	.L2
	mov	ecx, DWORD PTR 28[rdi]
	test	ecx, ecx
	cmovne	ecx, DWORD PTR RTP_REORDER_QUEUE_DEFAULT_SIZE[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	mov	eax, DWORD PTR AVFMTCTX_NOHEADER[rip]
	or	DWORD PTR 24[rbx], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	cmp	QWORD PTR [rbx], 0
	je	.L27
	mov	edx, DWORD PTR 40[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR 32[rbp]
	test	edx, edx
	jne	.L34
.L12:
	mov	rsi, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rsi], 0
	je	.L27
	mov	edx, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	call	ff_rtp_parse_set_crypto@PLT
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L32:
	mov	ecx, DWORD PTR 32[rbp]
	mov	edx, DWORD PTR 36[rbp]
	mov	rdi, rbx
	mov	esi, DWORD PTR 0[r13]
	call	ff_rdt_parse_open@PLT
	mov	QWORD PTR 24[rbp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L34:
	mov	esi, DWORD PTR 36[rbp]
	mov	rdi, rax
	call	ff_rtp_parse_set_dynamic_protocol@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ff_rtsp_open_transport_ctx, .-ff_rtsp_open_transport_ctx
	.comm	RTSP_TRANSPORT_RTP,8,8
	.comm	RTSP_TRANSPORT_RDT,8,8
	.comm	RTSP_TRANSPORT_RAW,8,8
	.comm	RTSP_TCP_MAX_PACKET_SIZE,4,4
	.comm	RTSP_LOWER_TRANSPORT_TCP,8,8
	.comm	RTP_REORDER_QUEUE_DEFAULT_SIZE,4,4
	.comm	ENOMEM,4,4
	.comm	CONFIG_RTSP_MUXER,8,8
	.comm	CONFIG_RTPDEC,8,8
	.comm	AVFMTCTX_NOHEADER,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_rtsp.c_ff_rtsp_open_transport_ctx.c"
	.text
	.align	2
	.global	ff_rtsp_open_transport_ctx
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_rtsp_open_transport_ctx, %function
ff_rtsp_open_transport_ctx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #20]
	mov	r4, r0
	ldr	r3, [r6]
	mov	r5, r1
	cmp	r3, #0
	sub	sp, sp, #8
	blt	.L42
.L2:
	ldr	r2, [r5]
	ldr	r1, [r4, #4]
	ldr	r7, [r1, r2, lsl #2]
	cmp	r7, #0
	beq	.L43
	ldr	r1, .L48
	ldr	r1, [r1]
	cmp	r1, #0
	bne	.L44
.L4:
	ldr	r1, .L48+4
	ldr	r2, [r6, #8]
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L40
	ldr	r8, .L48+8
	ldr	r1, [r8]
	cmp	r1, #0
	beq	.L8
	ldr	r1, .L48+12
	cmp	r7, #0
	ldr	r1, [r1]
	sub	r2, r1, r2
	clz	r2, r2
	lsr	r2, r2, #5
	moveq	r2, #0
	cmp	r2, #0
	bne	.L45
	mov	r1, r7
	mov	r0, r4
	ldr	r2, [r5, #28]
	bl	ff_rtp_parse_open
	str	r0, [r5, #12]
.L10:
	cmp	r0, #0
	beq	.L13
.L6:
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L48+16
	ldr	r2, [r6, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L46
.L40:
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L44:
	ldr	r1, [r4, #8]
	cmp	r1, #0
	beq	.L4
	ldr	r3, .L48+20
	str	r2, [sp, #4]
	ldr	r2, [r3]
	mov	r1, r4
	ldr	r3, [r5, #32]
	add	r0, r5, #12
	str	r2, [sp]
	mov	r2, r7
	bl	ff_rtp_chain_mux_open
	mov	r3, #0
	cmp	r0, #0
	str	r3, [r5, #32]
	blt	.L1
	ldr	r0, [r5, #12]
	ldr	r8, .L48+8
	ldr	r3, [r0, #4]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [r7, #4]
	b	.L6
.L8:
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bne	.L40
.L13:
	ldr	r3, .L48+24
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	AVERROR
.L42:
	ldr	r3, .L48+28
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #0
	beq	.L2
	ldr	r3, [r0, #16]
	cmp	r3, #0
	ldrne	r3, .L48+32
	ldrne	r3, [r3]
	b	.L2
.L43:
	ldr	r1, .L48+36
	ldr	r2, [r4, #12]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r4, #12]
	b	.L4
.L46:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L40
	ldr	r2, [r5, #16]
	ldr	r3, [r5, #24]
	cmp	r2, #0
	str	r3, [r0]
	bne	.L47
.L12:
	ldr	r1, [r5, #8]
	ldr	r3, [r1]
	cmp	r3, #0
	beq	.L40
	ldr	r2, [r5, #4]
	ldr	r0, [r5, #12]
	bl	ff_rtp_parse_set_crypto
	b	.L40
.L45:
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r3, [r5, #16]
	ldr	r2, [r5, #20]
	bl	ff_rdt_parse_open
	str	r0, [r5, #12]
	b	.L10
.L47:
	ldr	r1, [r5, #20]
	bl	ff_rtp_parse_set_dynamic_protocol
	b	.L12
.L49:
	.align	2
.L48:
	.word	CONFIG_RTSP_MUXER
	.word	RTSP_TRANSPORT_RAW
	.word	CONFIG_RTPDEC
	.word	RTSP_TRANSPORT_RDT
	.word	RTSP_TRANSPORT_RTP
	.word	RTSP_TCP_MAX_PACKET_SIZE
	.word	ENOMEM
	.word	RTSP_LOWER_TRANSPORT_TCP
	.word	RTP_REORDER_QUEUE_DEFAULT_SIZE
	.word	AVFMTCTX_NOHEADER
	.size	ff_rtsp_open_transport_ctx, .-ff_rtsp_open_transport_ctx
	.comm	RTSP_TRANSPORT_RTP,4,4
	.comm	RTSP_TRANSPORT_RDT,4,4
	.comm	RTSP_TRANSPORT_RAW,4,4
	.comm	RTSP_TCP_MAX_PACKET_SIZE,4,4
	.comm	RTSP_LOWER_TRANSPORT_TCP,4,4
	.comm	RTP_REORDER_QUEUE_DEFAULT_SIZE,4,4
	.comm	ENOMEM,4,4
	.comm	CONFIG_RTSP_MUXER,4,4
	.comm	CONFIG_RTPDEC,4,4
	.comm	AVFMTCTX_NOHEADER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
