	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_read_packet
_rtsp_read_packet:                      ## @rtsp_read_packet
	.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
	subq	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -1088(%rbp)               ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movq	(%r14), %rax
	movq	_RTSP_SERVER_REAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rcx
	movq	8(%r14), %rsi
	leaq	-1(%rdx), %rdi
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdi
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %ebx
	andl	$-4, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdi,8), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsi,%rdi,8)
	movq	8(%rcx,%rdi,8), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rsi,%rdi,8)
	movq	16(%rcx,%rdi,8), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rsi,%rdi,8)
	movq	24(%rcx,%rdi,8), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rsi,%rdi,8)
	addq	$4, %rdi
	cmpq	%rdi, %rbx
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rsi,%rdi,8), %rsi
	leaq	(%rcx,%rdi,8), %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdi,8), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsi,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 16(%r14)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rdi
	movl	116(%r14), %esi
	shll	$2, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r14), %rcx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	96(%r14), %edx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	leaq	-1080(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_ff_rtsp_send_cmd
	movq	-1080(%rbp), %rdi
	movq	_RTSP_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, 16(%r14)
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 16(%r14)
	je	LBB0_32
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	116(%r14), %edi
	movq	8(%r14), %rsi
	movl	(%r12), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	24(%r14), %rax
	movb	$0, (%rax)
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	32(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %eax
	xorl	%r15d, %r15d
	movl	$1, %ecx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	32(%r14), %edx
LBB0_28:                                ##   in Loop: Header=BB0_18 Depth=2
	incl	%r15d
	cmpl	%edx, %r15d
	jge	LBB0_29
LBB0_18:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	testl	%eax, %eax
	jle	LBB0_28
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=3
	movq	24(%r14), %rdi
	movl	$8, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_ff_rdt_subscribe_rule
	movl	(%r12), %eax
	xorl	%ecx, %ecx
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=3
	incl	%ebx
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=3
	incq	%r13
	movslq	%eax, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_27
LBB0_20:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r12), %rdx
	movq	(%rdx,%r13,8), %rdx
	cmpl	%r15d, 8(%rdx)
	jne	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	(%rdx), %rdx
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=3
	testl	%ecx, %ecx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	24(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$8, %edx
	callq	_av_strlcat
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r14), %rcx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	leaq	L_.str.4(%rip), %rdx
	callq	_av_strlcatf
	movl	96(%r14), %edx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	leaq	-1080(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_ff_rtsp_send_cmd
	movq	-1080(%rbp), %rdi
	movq	_RTSP_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_13
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, 16(%r14)
	movq	40(%r14), %rax
	movq	_RTSP_STATE_STREAMING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_rtsp_read_play
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	-1088(%rbp), %rsi               ## 8-byte Reload
	callq	_ff_rtsp_fetch_packet
	testl	%eax, %eax
	jns	LBB0_43
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r15d
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	jne	LBB0_51
## %bb.34:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 112(%r14)
	jne	LBB0_51
## %bb.35:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	48(%r14), %rax
	movq	_RTSP_LOWER_TRANSPORT_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_51
## %bb.36:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	56(%r14), %eax
	movq	_RTSP_LOWER_TRANSPORT_TCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_51
## %bb.37:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rdx
	callq	_av_log
	movq	%r12, %rdi
	callq	_rtsp_read_pause
	testq	%rax, %rax
	jne	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	_RTSP_SERVER_REAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	96(%r14), %edx
	movq	%r12, %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ecx, %ecx
	leaq	-1096(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_ff_rtsp_send_cmd
LBB0_40:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	64(%r14), %rax
	movb	$0, (%rax)
	movq	%r12, %rdi
	callq	_resetup_tcp
	testq	%rax, %rax
	jne	LBB0_51
## %bb.41:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_RTSP_STATE_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movl	$1, 16(%r14)
	movq	%r12, %rdi
	callq	_rtsp_read_play
	testq	%rax, %rax
	je	LBB0_1
LBB0_42:
	movl	$-1, %r15d
	jmp	LBB0_51
LBB0_43:
	incl	112(%r14)
	movq	_RTSP_FLAG_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, 72(%r14)
	jne	LBB0_51
## %bb.44:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_av_gettime_relative
	subl	76(%r14), %eax
	cltq
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	movl	80(%r14), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jge	LBB0_46
## %bb.45:
	cmpq	$0, 88(%r14)
	je	LBB0_51
LBB0_46:
	movq	(%r14), %rax
	movq	_RTSP_SERVER_WMS@GOTPCREL(%rip), %rcx
	leaq	L_.str.7(%rip), %rsi
	cmpq	(%rcx), %rax
	je	LBB0_50
## %bb.47:
	movq	_RTSP_SERVER_REAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_49
## %bb.48:
	cmpq	$0, 104(%r14)
	jne	LBB0_50
LBB0_49:
	leaq	L_.str.8(%rip), %rsi
LBB0_50:
	movl	96(%r14), %edx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_ff_rtsp_send_cmd_async
	movq	$0, 88(%r14)
	jmp	LBB0_51
LBB0_13:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_rtsp_averror
	movl	%eax, %r15d
LBB0_51:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.52:
	movl	%r15d, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_53:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTSP_SERVER_REAL,8,3           ## @RTSP_SERVER_REAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsubscribe: %s\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"SET_PARAMETER"

	.comm	_RTSP_STATUS_OK,8,3             ## @RTSP_STATUS_OK
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"Subscribe: "

	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
L_.str.3:                               ## @.str.3
	.asciz	","

L_.str.4:                               ## @.str.4
	.asciz	"%s\r\n"

	.comm	_RTSP_STATE_STREAMING,8,3       ## @RTSP_STATE_STREAMING
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_RTSP_LOWER_TRANSPORT_UDP,8,3   ## @RTSP_LOWER_TRANSPORT_UDP
	.comm	_RTSP_LOWER_TRANSPORT_TCP,4,2   ## @RTSP_LOWER_TRANSPORT_TCP
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.5:                               ## @.str.5
	.asciz	"UDP timeout, retrying with TCP\n"

L_.str.6:                               ## @.str.6
	.asciz	"TEARDOWN"

	.comm	_RTSP_STATE_IDLE,8,3            ## @RTSP_STATE_IDLE
	.comm	_RTSP_FLAG_LISTEN,4,2           ## @RTSP_FLAG_LISTEN
	.comm	_RTSP_SERVER_WMS,8,3            ## @RTSP_SERVER_WMS
L_.str.7:                               ## @.str.7
	.asciz	"GET_PARAMETER"

L_.str.8:                               ## @.str.8
	.asciz	"OPTIONS"

	.no_dead_strip	_rtsp_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_read_packet
_rtsp_read_packet:                      ; @rtsp_read_packet
	.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
	sub	sp, sp, #1072
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x23, _RTSP_SERVER_REAL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RTSP_SERVER_REAL@GOTPAGEOFF]
	ldr	x27, [x0, #16]
Lloh5:
	adrp	x22, _AVDISCARD_ALL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh7:
	adrp	x24, l_.str.3@PAGE
Lloh8:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh9:
	adrp	x26, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ETIMEDOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
	ldr	x8, [x27]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x27, #8]
	mov	x11, x8
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x9], #8
	ldr	x12, [x12]
	str	x12, [x10], #8
	subs	x11, x11, #1
	b.ne	LBB0_4
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x27, #16]
	cbnz	w9, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x27, #8]
	ldr	w1, [x27, #116]
	lsl	w2, w8, #2
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27, #24]
	str	x8, [sp]
	add	x0, sp, #32
	mov	w1, #1024
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	ldr	w2, [x27, #96]
	add	x3, sp, #32
	add	x4, sp, #24
	mov	x0, x19
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x5, #0
	bl	_ff_rtsp_send_cmd
	ldr	x0, [sp, #24]
Lloh15:
	adrp	x8, _RTSP_STATUS_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTSP_STATUS_OK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_39
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #1
	str	w8, [x27, #16]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27, #16]
	cbz	w8, LBB0_26
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x27, #116]
	ldr	x1, [x27, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x8, [x27, #24]
	strb	wzr, [x8]
	add	x0, sp, #32
	mov	w1, #1024
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
	ldr	w10, [x27, #32]
	cmp	w10, #1
	b.lt	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w28, #0
	ldr	w8, [x19]
	mov	w9, #1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w10, [x27, #32]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	w28, w28, #1
	cmp	w28, w10
	b.ge	LBB0_23
LBB0_14:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x25, #0
	mov	w21, #0
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=3
	ldr	x0, [x27, #24]
	mov	w1, #8
	mov	x2, x28
	mov	x3, x21
	bl	_ff_rdt_subscribe_rule
	mov	w9, #0
	ldr	w8, [x19]
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=3
	add	w21, w21, #1
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=3
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_12
LBB0_19:                                ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x25, lsl #3]
	ldr	w11, [x10, #8]
	cmp	w11, w28
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x10, [x10]
	ldr	x11, [x22]
	cmp	x10, x11
	b.eq	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=3
	cbnz	w9, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=3
	ldr	x0, [x27, #24]
	mov	x1, x24
	mov	w2, #8
	bl	_av_strlcat
	b	LBB0_16
LBB0_23:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x3, [x27, #24]
	add	x0, sp, #32
	mov	w1, #1024
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_strlcatf
	ldr	w2, [x27, #96]
	add	x3, sp, #32
	add	x4, sp, #24
	mov	x0, x19
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x5, #0
	bl	_ff_rtsp_send_cmd
	ldr	x0, [sp, #24]
Lloh24:
	adrp	x8, _RTSP_STATUS_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RTSP_STATUS_OK@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_39
; %bb.24:                               ;   in Loop: Header=BB0_1 Depth=1
	str	wzr, [x27, #16]
	ldr	x8, [x27, #40]
Lloh27:
	adrp	x9, _RTSP_STATE_STREAMING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RTSP_STATE_STREAMING@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_rtsp_read_play
LBB0_26:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ff_rtsp_fetch_packet
	tbz	w0, #31, LBB0_37
; %bb.27:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, x0
	ldr	w0, [x26]
	bl	_AVERROR
	cmp	w28, w0
	b.ne	LBB0_48
; %bb.28:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27, #112]
	cbnz	w8, LBB0_48
; %bb.29:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27, #48]
Lloh30:
	adrp	x9, _RTSP_LOWER_TRANSPORT_UDP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RTSP_LOWER_TRANSPORT_UDP@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_48
; %bb.30:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27, #56]
Lloh33:
	adrp	x9, _RTSP_LOWER_TRANSPORT_TCP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RTSP_LOWER_TRANSPORT_TCP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_48
; %bb.31:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh36:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_av_log
	mov	x0, x19
	bl	_rtsp_read_pause
	cbnz	x0, LBB0_36
; %bb.32:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x27, #96]
	add	x4, sp, #16
	mov	x0, x19
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x3, #0
	mov	x5, #0
	bl	_ff_rtsp_send_cmd
LBB0_34:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27, #64]
	strb	wzr, [x8]
	mov	x0, x19
	bl	_resetup_tcp
	cbnz	x0, LBB0_48
; %bb.35:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh43:
	adrp	x8, _RTSP_STATE_IDLE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RTSP_STATE_IDLE@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	str	x8, [x27, #40]
	mov	w8, #1
	str	w8, [x27, #16]
	mov	x0, x19
	bl	_rtsp_read_play
	cbz	x0, LBB0_1
LBB0_36:
	mov	w28, #-1
	b	LBB0_48
LBB0_37:
	ldr	w8, [x27, #112]
	add	w8, w8, #1
	str	w8, [x27, #112]
	ldr	w8, [x27, #72]
Lloh46:
	adrp	x9, _RTSP_FLAG_LISTEN@GOTPAGE
Lloh47:
	ldr	x9, [x9, _RTSP_FLAG_LISTEN@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
LBB0_38:
	mov	w28, #0
	b	LBB0_48
LBB0_39:
Lloh49:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	bl	_ff_rtsp_averror
	mov	x28, x0
	b	LBB0_48
LBB0_40:
	bl	_av_gettime_relative
	ldp	w8, w9, [x27, #76]
	sub	w8, w0, w8
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	b.ge	LBB0_42
; %bb.41:
	ldr	x8, [x27, #88]
	cbz	x8, LBB0_38
LBB0_42:
	ldr	x8, [x27]
Lloh52:
	adrp	x9, _RTSP_SERVER_WMS@GOTPAGE
Lloh53:
	ldr	x9, [x9, _RTSP_SERVER_WMS@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_45
; %bb.43:
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_46
; %bb.44:
	ldr	x8, [x27, #104]
	cbz	x8, LBB0_46
LBB0_45:
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_47
LBB0_46:
Lloh57:
	adrp	x1, l_.str.8@PAGE
Lloh58:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_47:
	ldr	w2, [x27, #96]
	mov	x0, x19
	mov	x3, #0
	bl	_ff_rtsp_send_cmd_async
	mov	w28, #0
	str	xzr, [x27, #88]
LBB0_48:
	ldur	x8, [x29, #-96]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.49:
	mov	x0, x28
	add	sp, sp, #1072
	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
LBB0_50:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_RTSP_SERVER_REAL,8,3           ; @RTSP_SERVER_REAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsubscribe: %s\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"SET_PARAMETER"

	.comm	_RTSP_STATUS_OK,8,3             ; @RTSP_STATUS_OK
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"Subscribe: "

	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
l_.str.3:                               ; @.str.3
	.asciz	","

l_.str.4:                               ; @.str.4
	.asciz	"%s\r\n"

	.comm	_RTSP_STATE_STREAMING,8,3       ; @RTSP_STATE_STREAMING
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_RTSP_LOWER_TRANSPORT_UDP,8,3   ; @RTSP_LOWER_TRANSPORT_UDP
	.comm	_RTSP_LOWER_TRANSPORT_TCP,4,2   ; @RTSP_LOWER_TRANSPORT_TCP
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.5:                               ; @.str.5
	.asciz	"UDP timeout, retrying with TCP\n"

l_.str.6:                               ; @.str.6
	.asciz	"TEARDOWN"

	.comm	_RTSP_STATE_IDLE,8,3            ; @RTSP_STATE_IDLE
	.comm	_RTSP_FLAG_LISTEN,4,2           ; @RTSP_FLAG_LISTEN
	.comm	_RTSP_SERVER_WMS,8,3            ; @RTSP_SERVER_WMS
l_.str.7:                               ; @.str.7
	.asciz	"GET_PARAMETER"

l_.str.8:                               ; @.str.8
	.asciz	"OPTIONS"

	.no_dead_strip	_rtsp_read_packet
.subsections_via_symbols
