	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtsp_setup_output_streams   ## -- Begin function ff_rtsp_setup_output_streams
	.p2align	4, 0x90
_ff_rtsp_setup_output_streams:          ## @ff_rtsp_setup_output_streams
	.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	$1096, %rsp                     ## imm = 0x448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r13
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_av_gettime
	movq	%rax, (%r14)
LBB0_3:
	movq	_SDP_MAX_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movaps	%xmm0, -1136(%rbp)
	movaps	%xmm1, -1120(%rbp)
	leaq	-1088(%rbp), %rdi
	movq	%rdi, -1128(%rbp)
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movl	$-1, %r9d
	pushq	$0
	callq	_ff_url_join
	addq	$16, %rsp
	leaq	-1136(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	(%r12), %ecx
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	callq	_av_sdp_create
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_av_free
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_17
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.7:
	addq	$1096, %rsp                     ## imm = 0x448
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_av_log
	movl	(%r13), %r12d
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	xorl	%r15d, %r15d
	leaq	-1104(%rbp), %r8
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_ff_rtsp_send_cmd_with_content
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_av_free
	movq	-1104(%rbp), %rdi
	movq	_RTSP_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_14
## %bb.9:
	cmpl	$0, 16(%r14)
	jle	LBB0_17
## %bb.10:
	leaq	8(%r13), %rax
	movq	%rax, -1096(%rbp)               ## 8-byte Spill
	movq	%r13, %r15
	leaq	4(%r13), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$8, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r13
	movq	-1096(%rbp), %rdi               ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_dynarray_add
	movl	%ebx, (%r13)
	movl	4(%r13), %edi
	movl	(%r15), %esi
	movl	$4, %edx
	callq	_av_strlcpy
	movl	4(%r13), %edi
	movl	$4, %esi
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %ecx
	callq	_av_strlcatf
	incl	%ebx
	cmpl	16(%r14), %ebx
	jl	LBB0_11
## %bb.13:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_rtsp_averror
	jmp	LBB0_16
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_16:
	movl	%eax, %r15d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r15d, %eax
	addq	$1096, %rsp                     ## imm = 0x448
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_SDP_MAX_SIZE,4,2               ## @SDP_MAX_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtsp"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"SDP:\n%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"ANNOUNCE"

L_.str.3:                               ## @.str.3
	.asciz	"Content-Type: application/sdp\r\n"

	.comm	_RTSP_STATUS_OK,8,3             ## @RTSP_STATUS_OK
L_.str.4:                               ## @.str.4
	.asciz	"/streamid=%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtsp_setup_output_streams   ; -- Begin function ff_rtsp_setup_output_streams
	.p2align	2
_ff_rtsp_setup_output_streams:          ; @ff_rtsp_setup_output_streams
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #1088
	mov	x21, 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, #-72]
	ldr	x25, [x0, #24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	bl	_av_gettime
	str	x0, [x19]
LBB0_2:
Lloh6:
	adrp	x22, _SDP_MAX_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SDP_MAX_SIZE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_av_mallocz
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	add	x8, sp, #48
	str	x8, [sp, #8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #48
	mov	w1, #1024
	mov	x3, #0
	mov	x4, x21
	mov	w5, #-1
	mov	x6, #0
	bl	_ff_url_join
	mov	x8, sp
	stur	x8, [x29, #-80]
	ldr	w3, [x22]
	sub	x0, x29, #80
	mov	w1, #1
	mov	x2, x20
	bl	_av_sdp_create
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_av_free
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.6:
	add	sp, sp, #1088
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_7:
Lloh19:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
	ldr	w21, [x25]
	mov	x0, x20
	bl	_strlen
	mov	x7, x0
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh26:
	adrp	x3, l_.str.3@PAGE
Lloh27:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x4, sp, #40
	mov	x0, x19
	mov	x2, x21
	mov	x5, #0
	mov	x6, x20
	bl	_ff_rtsp_send_cmd_with_content
	mov	x0, x20
	bl	_av_free
	ldr	x0, [sp, #40]
Lloh28:
	adrp	x8, _RTSP_STATUS_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RTSP_STATUS_OK@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.8:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	w20, #0
	add	x21, x25, #8
	add	x22, x25, #4
Lloh31:
	adrp	x23, l_.str.4@PAGE
Lloh32:
	add	x23, x23, l_.str.4@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #8
	bl	_av_mallocz
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_dynarray_add
	str	w20, [x24]
	ldr	w0, [x24, #4]
	ldr	w1, [x25]
	mov	w2, #4
	bl	_av_strlcpy
	ldr	w0, [x24, #4]
	mov	w1, #4
	mov	x2, x23
	mov	x3, x20
	bl	_av_strlcatf
	add	w20, w20, #1
	ldr	w8, [x19, #16]
	cmp	w20, w8
	b.lt	LBB0_10
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh33:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_ff_rtsp_averror
	b	LBB0_15
LBB0_14:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_15:
	ldur	x8, [x29, #-72]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #1088
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_SDP_MAX_SIZE,4,2               ; @SDP_MAX_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtsp"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"SDP:\n%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"ANNOUNCE"

l_.str.3:                               ; @.str.3
	.asciz	"Content-Type: application/sdp\r\n"

	.comm	_RTSP_STATUS_OK,8,3             ; @RTSP_STATUS_OK
l_.str.4:                               ; @.str.4
	.asciz	"/streamid=%d"

.subsections_via_symbols
