	.file	"extr_rtsp.c_ff_rtsp_undo_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_rtsp_undo_setup
	.type	ff_rtsp_undo_setup, @function
ff_rtsp_undo_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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, 8
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR 16[rdi]
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L1
	mov	r14, rdi
	mov	r15d, esi
	xor	ebp, ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	QWORD PTR CONFIG_RTPDEC[rip], 0
	je	.L4
	mov	rax, QWORD PTR 16[r12]
	cmp	rax, QWORD PTR RTSP_TRANSPORT_RDT[rip]
	je	.L32
	cmp	rax, QWORD PTR RTSP_TRANSPORT_RTP[rip]
	je	.L33
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], 0
	test	rdi, rdi
	je	.L10
	call	ffurl_close@PLT
.L10:
	mov	QWORD PTR [rbx], 0
.L3:
	add	rbp, 1
	cmp	DWORD PTR [r12], ebp
	jle	.L1
.L2:
	mov	rax, QWORD PTR 24[r12]
	mov	rbx, QWORD PTR [rax+rbp*8]
	test	rbx, rbx
	je	.L3
	mov	r13, QWORD PTR 8[rbx]
	test	r13, r13
	je	.L4
	cmp	QWORD PTR 8[r14], 0
	je	.L5
	mov	rdi, r13
	call	av_write_trailer@PLT
	mov	rax, QWORD PTR RTSP_LOWER_TRANSPORT_TCP[rip]
	cmp	QWORD PTR 8[r12], rax
	jne	.L6
	cmp	QWORD PTR CONFIG_RTSP_MUXER[rip], 0
	je	.L7
	cmp	QWORD PTR 0[r13], 0
	je	.L7
	test	r15d, r15d
	jne	.L34
.L7:
	mov	rdi, r13
	call	ffio_free_dyn_buf@PLT
.L8:
	mov	rdi, r13
	call	avformat_free_context@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	mov	rdi, r13
	call	avio_closep@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, r13
	call	ff_rdt_parse_close@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, r13
	call	ff_rtp_parse_close@PLT
	jmp	.L4
.L34:
	mov	rsi, rbx
	mov	rdi, r14
	call	ff_rtsp_tcp_write_packet@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ff_rtsp_undo_setup, .-ff_rtsp_undo_setup
	.comm	RTSP_TRANSPORT_RTP,8,8
	.comm	RTSP_TRANSPORT_RDT,8,8
	.comm	RTSP_LOWER_TRANSPORT_TCP,8,8
	.comm	CONFIG_RTSP_MUXER,8,8
	.comm	CONFIG_RTPDEC,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_rtsp.c_ff_rtsp_undo_setup.c"
	.text
	.align	2
	.global	ff_rtsp_undo_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_rtsp_undo_setup, %function
ff_rtsp_undo_setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, [r0, #8]
	sub	sp, sp, #12
	ldr	r2, [fp]
	str	r1, [sp, #4]
	cmp	r2, #0
	ble	.L1
	mov	r4, #0
	mov	r6, r0
	mov	r5, r4
	ldr	r7, .L37
	ldr	r8, .L37+4
	b	.L2
.L5:
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #8]
	ldr	r2, [r8]
	cmp	r3, r2
	beq	.L34
	ldr	r2, .L37+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L35
.L4:
	ldr	r0, [r9]
	str	r5, [r9, #4]
	cmp	r0, #0
	beq	.L10
	bl	ffurl_close
.L10:
	ldr	r2, [fp]
	str	r5, [r9]
.L3:
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L1
.L2:
	ldr	r3, [fp, #12]
	ldr	r9, [r3, r4, lsl #2]
	cmp	r9, #0
	beq	.L3
	ldr	r10, [r9, #4]
	cmp	r10, #0
	beq	.L4
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L5
	mov	r0, r10
	bl	av_write_trailer
	ldr	r3, .L37+12
	ldr	r2, [fp, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	ldr	r3, .L37+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
.L7:
	mov	r0, r10
	bl	ffio_free_dyn_buf
.L8:
	mov	r0, r10
	bl	avformat_free_context
	b	.L4
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r10
	bl	avio_closep
	b	.L8
.L36:
	ldr	r3, [r10]
	ldr	r2, [sp, #4]
	cmp	r3, #0
	cmpne	r2, #0
	beq	.L7
	mov	r1, r9
	mov	r0, r6
	bl	ff_rtsp_tcp_write_packet
	b	.L7
.L34:
	mov	r0, r10
	bl	ff_rdt_parse_close
	b	.L4
.L35:
	mov	r0, r10
	bl	ff_rtp_parse_close
	b	.L4
.L38:
	.align	2
.L37:
	.word	CONFIG_RTPDEC
	.word	RTSP_TRANSPORT_RDT
	.word	RTSP_TRANSPORT_RTP
	.word	RTSP_LOWER_TRANSPORT_TCP
	.word	CONFIG_RTSP_MUXER
	.size	ff_rtsp_undo_setup, .-ff_rtsp_undo_setup
	.comm	RTSP_TRANSPORT_RTP,4,4
	.comm	RTSP_TRANSPORT_RDT,4,4
	.comm	RTSP_LOWER_TRANSPORT_TCP,4,4
	.comm	CONFIG_RTSP_MUXER,4,4
	.comm	CONFIG_RTPDEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
