	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtsp_undo_setup             ## -- Begin function ff_rtsp_undo_setup
	.p2align	4, 0x90
_ff_rtsp_undo_setup:                    ## @ff_rtsp_undo_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.1:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rbx)
	movl	(%r13), %eax
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_22
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_av_write_trailer
	movq	8(%r13), %rax
	movq	_RTSP_LOWER_TRANSPORT_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CONFIG_RTSP_MUXER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ff_rtsp_tcp_write_packet
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ffio_free_dyn_buf
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CONFIG_RTPDEC@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movq	_RTSP_TRANSPORT_RDT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ff_rdt_parse_close
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_avio_closep
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_avformat_free_context
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_ffurl_close
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RTSP_TRANSPORT_RTP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ff_rtp_parse_close
	jmp	LBB0_18
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTSP_LOWER_TRANSPORT_TCP,8,3   ## @RTSP_LOWER_TRANSPORT_TCP
	.comm	_CONFIG_RTSP_MUXER,8,3          ## @CONFIG_RTSP_MUXER
	.comm	_CONFIG_RTPDEC,8,3              ## @CONFIG_RTPDEC
	.comm	_RTSP_TRANSPORT_RDT,8,3         ## @RTSP_TRANSPORT_RDT
	.comm	_RTSP_TRANSPORT_RTP,8,3         ## @RTSP_TRANSPORT_RTP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtsp_undo_setup             ; -- Begin function ff_rtsp_undo_setup
	.p2align	2
_ff_rtsp_undo_setup:                    ; @ff_rtsp_undo_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x23, [x0, #16]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x24, #0
Lloh0:
	adrp	x25, _CONFIG_RTPDEC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CONFIG_RTPDEC@GOTPAGEOFF]
Lloh2:
	adrp	x26, _RTSP_TRANSPORT_RDT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RTSP_TRANSPORT_RDT@GOTPAGEOFF]
Lloh4:
	adrp	x28, _RTSP_LOWER_TRANSPORT_TCP@GOTPAGE
Lloh5:
	ldr	x28, [x28, _RTSP_LOWER_TRANSPORT_TCP@GOTPAGEOFF]
Lloh6:
	adrp	x27, _CONFIG_RTSP_MUXER@GOTPAGE
Lloh7:
	ldr	x27, [x27, _CONFIG_RTSP_MUXER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x21]
	ldr	w8, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #24]
	ldr	x21, [x9, x24, lsl #3]
	cbz	x21, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_av_write_trailer
	ldr	x8, [x23, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w19, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ff_rtsp_tcp_write_packet
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_ffio_free_dyn_buf
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_ff_rdt_parse_close
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_avio_closep
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_avformat_free_context
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x21, #8]
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_ffurl_close
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x9, _RTSP_TRANSPORT_RTP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTSP_TRANSPORT_RTP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_ff_rtp_parse_close
	b	LBB0_18
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RTSP_LOWER_TRANSPORT_TCP,8,3   ; @RTSP_LOWER_TRANSPORT_TCP
	.comm	_CONFIG_RTSP_MUXER,8,3          ; @CONFIG_RTSP_MUXER
	.comm	_CONFIG_RTPDEC,8,3              ; @CONFIG_RTPDEC
	.comm	_RTSP_TRANSPORT_RDT,8,3         ; @RTSP_TRANSPORT_RDT
	.comm	_RTSP_TRANSPORT_RTP,8,3         ; @RTSP_TRANSPORT_RTP
.subsections_via_symbols
