	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sap_write_header
_sap_write_header:                      ## @sap_write_header
	.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	$3240, %rsp                     ## imm = 0xCA8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -3152(%rbp)
	movaps	%xmm0, -3168(%rbp)
	movaps	%xmm0, -3184(%rbp)
	movw	$0, -3136(%rbp)
	movl	$5004, -3188(%rbp)              ## imm = 0x138C
	movq	$0, -3240(%rbp)
	movl	$8, -3244(%rbp)
	movl	28(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_ff_network_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	40(%r15), %eax
	leaq	-2096(%rbp), %rbx
	leaq	-3188(%rbp), %r10
	xorl	%ecx, %ecx
	movq	%rcx, -3232(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1024, %r9d                     ## imm = 0x400
	pushq	%rax
	pushq	$1024                           ## imm = 0x400
	pushq	%rbx
	pushq	%r10
	callq	_av_url_split
	addq	$32, %rsp
	cmpl	$0, -3188(%rbp)
	jns	LBB0_3
## %bb.2:
	movl	$5004, -3188(%rbp)              ## imm = 0x138C
LBB0_3:
	leaq	-2096(%rbp), %rdi
	movl	$63, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdx
	leaq	-3120(%rbp), %rdi
	movl	$50, %esi
	movq	%rax, %rcx
	callq	_av_find_info_tag
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	-3120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, -3204(%rbp)               ## 4-byte Spill
	jmp	LBB0_10
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_62
## %bb.7:
	addq	$3240, %rsp                     ## imm = 0xCA8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movl	$9875, -3204(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x2693
	movl	$255, %eax
	movq	%rax, -3224(%rbp)               ## 8-byte Spill
	jmp	LBB0_18
LBB0_9:
	movl	$9875, -3204(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x2693
LBB0_10:
	leaq	L_.str.2(%rip), %rdx
	leaq	-3120(%rbp), %rdi
	movl	$50, %esi
	movq	%rbx, %rcx
	callq	_av_find_info_tag
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	-3120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	movq	%rax, -3232(%rbp)               ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdx
	leaq	-3120(%rbp), %rdi
	movl	$50, %esi
	movq	%rbx, %rcx
	callq	_av_find_info_tag
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	-3120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_16
LBB0_15:
	movl	$255, %eax
LBB0_16:
	movq	%rax, -3224(%rbp)               ## 8-byte Spill
	leaq	L_.str.4(%rip), %rdx
	leaq	-3120(%rbp), %rdi
	movl	$50, %esi
	movq	%rbx, %rcx
	callq	_av_find_info_tag
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	-3184(%rbp), %rdi
	leaq	-3120(%rbp), %rsi
	movl	$50, %edx
	callq	_av_strlcpy
LBB0_18:
	cmpb	$0, -3184(%rbp)
	je	LBB0_23
LBB0_19:
	movq	%r12, -3256(%rbp)               ## 8-byte Spill
	movl	(%r15), %edi
	movl	$8, %esi
	callq	_av_mallocz_array
	movq	%rax, -3240(%rbp)
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movq	%rax, %r12
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.21:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.22:
	cmpl	$0, (%r15)
	jg	LBB0_27
	jmp	LBB0_37
LBB0_23:
	movq	$0, -3112(%rbp)
	movq	$0, -3200(%rbp)
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -3120(%rbp)
	leaq	-1072(%rbp), %rdi
	leaq	-3120(%rbp), %rdx
	leaq	-3200(%rbp), %rcx
	xorl	%esi, %esi
	callq	_getaddrinfo
	testq	%rax, %rax
	je	LBB0_41
## %bb.24:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_45
LBB0_25:
	movq	%r15, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_48
LBB0_26:
	xorl	%eax, %eax
	callq	_av_gettime
	movq	%rax, 8(%r15)
	cmpl	$0, (%r15)
	jle	LBB0_37
LBB0_27:
	movq	%r14, -3264(%rbp)               ## 8-byte Spill
	leaq	24(%r15), %rax
	movq	%rax, -3272(%rbp)               ## 8-byte Spill
	xorl	%r14d, %r14d
	leaq	-3120(%rbp), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	-3188(%rbp), %r9d
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	leaq	L_.str.8(%rip), %rdx
	xorl	%ecx, %ecx
	leaq	-1072(%rbp), %r8
	pushq	-3224(%rbp)                     ## 8-byte Folded Reload
	leaq	L_.str.9(%rip), %rax
	pushq	%rax
	callq	_ff_url_join
	addq	$16, %rsp
	cmpl	$0, -3232(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	addl	$2, -3188(%rbp)
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r15), %eax
	movl	20(%r15), %r9d
	leaq	-3200(%rbp), %rdi
	movq	%r13, %rsi
	movq	-3272(%rbp), %rcx               ## 8-byte Reload
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_43
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	leaq	(%r12,%r14), %rdi
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	-3200(%rbp), %rcx
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_ff_rtp_chain_mux_open
	testl	%eax, %eax
	js	LBB0_51
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	(%r12,%rbx,8), %rax
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%rax, 8(%rdx)
	movq	(%r12,%rbx,8), %rax
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_av_strdup
	testq	%rax, %rax
	je	LBB0_52
## %bb.33:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	(%r12,%rbx,8), %rdi
	movq	%rax, %rsi
	callq	_ff_format_set_url
	incq	%rbx
	movslq	(%r15), %rax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jl	LBB0_28
## %bb.34:
	testl	%eax, %eax
	movq	-3264(%rbp), %r14               ## 8-byte Reload
	jle	LBB0_37
## %bb.35:
	cmpq	$0, -3256(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_37
## %bb.36:
	movq	(%r12), %rdi
	addq	$28, %rdi
	movq	-3256(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_37:
	movq	%r12, -3216(%rbp)               ## 8-byte Spill
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.10(%rip), %rdx
	leaq	-3120(%rbp), %r12
	leaq	-3184(%rbp), %r8
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%ecx, %ecx
	movl	-3204(%rbp), %r9d               ## 4-byte Reload
	pushq	-3224(%rbp)                     ## 8-byte Folded Reload
	pushq	%rax
	callq	_ff_url_join
	addq	$16, %rsp
	leaq	16(%r14), %rbx
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	24(%r15), %rcx
	movl	16(%r15), %eax
	movl	20(%r15), %r9d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_39
## %bb.38:
	movq	(%rbx), %rdi
	callq	_ffurl_get_file_handle
	leaq	-3200(%rbp), %rsi
	leaq	-3244(%rbp), %rdx
	movl	%eax, %edi
	callq	_getsockname
	testq	%rax, %rax
	je	LBB0_53
LBB0_39:
	movq	%r15, %r14
LBB0_40:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	movq	-3216(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_48
LBB0_41:
	movq	-3200(%rbp), %rdi
	movq	(%rdi), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_44
## %bb.42:
	leaq	L_.str.6(%rip), %rsi
	leaq	-3184(%rbp), %rdi
	movl	$50, %edx
	callq	_av_strlcpy
	movq	-3200(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_19
LBB0_43:
	movq	%r15, %r14
	movq	%r12, %rbx
	jmp	LBB0_46
LBB0_44:
	callq	_freeaddrinfo
	leaq	L_.str.7(%rip), %rdx
LBB0_45:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-1072(%rbp), %rcx
	movq	%r15, %r14
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_46:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_47:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_48:
	movq	%rbx, %rdi
	callq	_av_free
	movq	%r14, %rdi
	callq	_sap_write_close
LBB0_49:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_62
## %bb.50:
	movl	%r13d, %eax
	addq	$3240, %rsp                     ## imm = 0xCA8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	movl	%eax, %r13d
	movq	%r15, %r14
	movq	%r12, %rbx
	jmp	LBB0_48
LBB0_52:
	movq	%r15, %r14
	movq	%r12, %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_53:
	movq	-3200(%rbp), %rax
	movq	_AF_INET@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_59
## %bb.54:
	movl	$8192, (%r14)                   ## imm = 0x2000
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_av_mallocz
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_39
## %bb.55:
	movq	%rax, %rbx
	movq	$32, (%rax)
	addq	$8, %rbx
	xorl	%eax, %eax
	callq	_av_get_random_seed
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_AV_WB16
	movq	-3200(%rbp), %rax
	movl	$4, %ebx
	cmpq	(%r12), %rax
	jne	LBB0_57
## %bb.56:
	movq	8(%r14), %rdi
	addq	$16, %rdi
	leaq	-3200(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$8, %ebx
LBB0_57:
	movl	%ebx, %r13d
	leaq	(,%r13,4), %rdi
	addq	8(%r14), %rdi
	movl	(%r14), %edx
	subl	%ebx, %edx
	leaq	L_.str.13(%rip), %rsi
	callq	_av_strlcpy
	movq	8(%r14), %r12
	leaq	(%r12,%r13,4), %rdi
	callq	_strlen
	orl	$1, %ebx
	addl	%eax, %ebx
	movl	(%r15), %esi
	movslq	%ebx, %r13
	leaq	(%r12,%r13,4), %rdx
	movl	(%r14), %ecx
	subl	%r13d, %ecx
	movq	-3216(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_av_sdp_create
	testq	%rax, %rax
	movq	%r15, %r12
	je	LBB0_60
## %bb.58:
	movq	%r12, %r14
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_48
LBB0_59:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.12(%rip), %rdx
	movq	%r15, %r14
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_40
LBB0_60:
	leaq	-3240(%rbp), %rdi
	callq	_av_freep
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(,%r13,4), %rbx
	movq	8(%r14), %rcx
	addq	%rbx, %rcx
	leaq	L_.str.14(%rip), %rdx
	movq	%r13, %r15
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	addq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	addl	%eax, %r15d
	movl	%r15d, (%r14)
	movq	16(%r14), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_49
## %bb.61:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.15(%rip), %rdx
	xorl	%r13d, %r13d
	movq	%r12, %r14
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	-3240(%rbp), %rbx
	jmp	LBB0_48
LBB0_62:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"title"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"announce_port"

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

L_.str.3:                               ## @.str.3
	.asciz	"ttl"

L_.str.4:                               ## @.str.4
	.asciz	"announce_addr"

	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"Unable to resolve %s\n"

	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.6:                               ## @.str.6
	.asciz	"224.2.127.254"

L_.str.7:                               ## @.str.7
	.asciz	"Host %s resolved to unsupported address family\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
L_.str.8:                               ## @.str.8
	.asciz	"rtp"

L_.str.9:                               ## @.str.9
	.asciz	"?ttl=%d"

	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
L_.str.10:                              ## @.str.10
	.asciz	"udp"

L_.str.11:                              ## @.str.11
	.asciz	"?ttl=%d&connect=1"

L_.str.12:                              ## @.str.12
	.asciz	"Unsupported protocol family\n"

L_.str.13:                              ## @.str.13
	.asciz	"application/sdp"

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

L_.str.15:                              ## @.str.15
	.asciz	"Announcement too large to send in one packet\n"

	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.no_dead_strip	_sap_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sap_write_header
lCPI0_0:
	.long	32                              ; 0x20
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sap_write_header:                      ; @sap_write_header
	.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, #3216
	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]
	ldr	x25, [x0, #48]
	strh	wzr, [sp, #112]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #80]
	str	q0, [sp, #64]
	mov	w8, #5004
	str	w8, [sp, #60]
	str	xzr, [sp, #48]
	mov	w8, #8
	str	w8, [sp, #36]
	ldr	w0, [x0, #28]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	mov	x21, x0
	bl	_ff_network_init
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x19, #40]
	mov	w9, #1024
	stp	w9, w8, [sp]
	add	x4, sp, #2176
	add	x6, sp, #60
	add	x7, sp, #1152
	mov	x0, #0
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w5, #1024
	bl	_av_url_split
	ldr	w8, [sp, #60]
	tbz	w8, #31, LBB0_3
; %bb.2:
	mov	w8, #5004
	str	w8, [sp, #60]
LBB0_3:
	add	x0, sp, #1152
	mov	w1, #63
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #128
	mov	w1, #50
	mov	x3, x20
	bl	_av_find_info_tag
	cbz	x0, LBB0_9
; %bb.5:
	add	x0, sp, #128
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x22, x0
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_60
; %bb.7:
	add	sp, sp, #3216
	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
	b	_AVERROR
LBB0_8:
	mov	w24, #0
	mov	w22, #9875
	mov	w23, #255
	b	LBB0_18
LBB0_9:
	mov	w22, #9875
LBB0_10:
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #128
	mov	w1, #50
	mov	x3, x20
	bl	_av_find_info_tag
	cbz	x0, LBB0_12
; %bb.11:
	add	x0, sp, #128
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x24, x0
	b	LBB0_13
LBB0_12:
	mov	w24, #0
LBB0_13:
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #128
	mov	w1, #50
	mov	x3, x20
	bl	_av_find_info_tag
	cbz	x0, LBB0_15
; %bb.14:
	add	x0, sp, #128
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x23, x0
	b	LBB0_16
LBB0_15:
	mov	w23, #255
LBB0_16:
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #128
	mov	w1, #50
	mov	x3, x20
	bl	_av_find_info_tag
	cbz	x0, LBB0_18
; %bb.17:
	add	x0, sp, #64
	add	x1, sp, #128
	mov	w2, #50
	bl	_av_strlcpy
LBB0_18:
	ldrb	w8, [sp, #64]
	cbz	w8, LBB0_40
LBB0_19:
	ldr	w0, [x19]
	mov	w1, #8
	bl	_av_mallocz_array
	mov	x20, x0
	str	x0, [sp, #48]
	cbz	x0, LBB0_42
; %bb.20:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_22
; %bb.21:
Lloh19:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
LBB0_22:
	bl	_av_gettime
	str	x0, [x19, #8]
LBB0_23:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.24:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	stp	x21, x25, [sp, #16]             ; 16-byte Folded Spill
	mov	x21, #0
	mov	x25, #0
	add	x26, x19, #24
Lloh22:
	adrp	x27, l_.str.8@PAGE
Lloh23:
	add	x27, x27, l_.str.8@PAGEOFF
Lloh24:
	adrp	x28, l_.str.9@PAGE
Lloh25:
	add	x28, x28, l_.str.9@PAGEOFF
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w5, [sp, #60]
	add	x0, sp, #128
	add	x4, sp, #2176
	mov	w1, #1024
	mov	x2, x27
	mov	x3, #0
	mov	x6, x28
	mov	x7, x23
	bl	_ff_url_join
	cbnz	w24, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [sp, #60]
	add	w8, w8, #2
	str	w8, [sp, #60]
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=1
Lloh26:
	adrp	x8, _AVIO_FLAG_WRITE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	ldp	w6, w5, [x19, #16]
	add	x0, sp, #40
	add	x1, sp, #128
	mov	x3, x26
	mov	x4, #0
	mov	x7, #0
	bl	_ffurl_open_whitelist
	cbnz	w0, LBB0_48
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x0, x20, x21
	ldr	x8, [x19, #32]
	ldr	x2, [x8, x25, lsl #3]
	ldr	x3, [sp, #40]
	mov	x1, x19
	mov	w4, #0
	mov	x5, x25
	bl	_ff_rtp_chain_mux_open
	tbnz	w0, #31, LBB0_50
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	lsl	x8, x25, #3
	ldr	x9, [x20, x8]
	ldr	x10, [x19, #32]
	ldr	x11, [x10, x8]
	str	x9, [x11, #8]
	ldr	x9, [x20, x8]
	ldr	x9, [x9, #32]
	ldr	x9, [x9]
	ldr	w9, [x9]
	ldr	x8, [x10, x8]
	str	w9, [x8]
	add	x0, sp, #128
	bl	_av_strdup
	cbz	x0, LBB0_42
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x1, x0
	ldr	x0, [x20, x25, lsl #3]
	bl	_ff_format_set_url
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x21, x21, #8
	cmp	x25, x8
	b.lt	LBB0_25
; %bb.31:
	cmp	w8, #1
	ldp	x9, x25, [sp, #16]              ; 16-byte Folded Reload
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	b.lt	LBB0_34
; %bb.32:
	cbz	x9, LBB0_34
; %bb.33:
	ldr	x8, [x20]
	add	x0, x8, #28
	ldr	w2, [x9]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #0
	bl	_av_dict_set
LBB0_34:
Lloh31:
	adrp	x2, l_.str.10@PAGE
Lloh32:
	add	x2, x2, l_.str.10@PAGEOFF
Lloh33:
	adrp	x6, l_.str.11@PAGE
Lloh34:
	add	x6, x6, l_.str.11@PAGEOFF
	add	x0, sp, #128
	add	x4, sp, #64
	mov	w1, #1024
	mov	x3, #0
	mov	x5, x22
	mov	x7, x23
	bl	_ff_url_join
	add	x21, x25, #16
Lloh35:
	adrp	x8, _AVIO_FLAG_WRITE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	add	x3, x19, #24
	ldp	w6, w5, [x19, #16]
	add	x1, sp, #128
	mov	x0, x21
	mov	x4, #0
	mov	x7, #0
	bl	_ffurl_open_whitelist
	cbnz	w0, LBB0_48
; %bb.35:
	ldr	x0, [x21]
	bl	_ffurl_get_file_handle
	add	x1, sp, #40
	add	x2, sp, #36
	bl	_getsockname
	cbnz	x0, LBB0_48
; %bb.36:
	ldr	x8, [sp, #40]
Lloh38:
	adrp	x22, _AF_INET@GOTPAGE
Lloh39:
	ldr	x22, [x22, _AF_INET@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.37:
	mov	w8, #8192
	str	w8, [x25]
	mov	w0, #8192
	bl	_av_mallocz
	str	x0, [x25, #8]
	cbz	x0, LBB0_48
; %bb.38:
	mov	x21, x0
Lloh40:
	adrp	x8, lCPI0_0@PAGE
Lloh41:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21], #8
	bl	_av_get_random_seed
	mov	x1, x0
	mov	x0, x21
	bl	_AV_WB16
	ldr	x8, [sp, #40]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_54
; %bb.39:
	ldr	x8, [x25, #8]
	add	x0, x8, #16
	add	x1, sp, #40
	mov	w2, #4
	bl	_memcpy
	mov	w21, #8
	b	LBB0_55
LBB0_40:
	str	xzr, [sp, #40]
Lloh42:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	stp	x8, xzr, [sp, #128]
	add	x20, sp, #2176
	add	x0, sp, #2176
	add	x2, sp, #128
	add	x3, sp, #40
	mov	x1, #0
	bl	_getaddrinfo
	cbz	x0, LBB0_43
; %bb.41:
Lloh45:
	adrp	x2, l_.str.5@PAGE
Lloh46:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_46
LBB0_42:
Lloh47:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_49
LBB0_43:
	ldr	x0, [sp, #40]
	ldr	x8, [x0]
Lloh49:
	adrp	x9, _AF_INET@GOTPAGE
Lloh50:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_45
; %bb.44:
Lloh52:
	adrp	x1, l_.str.6@PAGE
Lloh53:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #64
	mov	w2, #50
	bl	_av_strlcpy
	ldr	x0, [sp, #40]
	bl	_freeaddrinfo
	b	LBB0_19
LBB0_45:
	bl	_freeaddrinfo
Lloh54:
	adrp	x2, l_.str.7@PAGE
Lloh55:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_46:
Lloh56:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	str	x20, [sp]
	mov	x0, x19
	bl	_av_log
Lloh59:
	adrp	x8, _EIO@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	mov	x20, #0
	b	LBB0_51
LBB0_47:
Lloh62:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
Lloh65:
	adrp	x2, l_.str.12@PAGE
Lloh66:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_48:
Lloh67:
	adrp	x8, _EIO@GOTPAGE
Lloh68:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_49:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_50:
	mov	x22, x0
LBB0_51:
	mov	x0, x20
	bl	_av_free
	mov	x0, x19
	bl	_sap_write_close
LBB0_52:
	ldur	x8, [x29, #-96]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_60
; %bb.53:
	mov	x0, x22
	add	sp, sp, #3216
	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_54:
	mov	w21, #4
LBB0_55:
	ldr	x8, [x25, #8]
	mov	w9, w21
	lsl	x22, x9, #2
	add	x0, x8, x22
	ldr	w8, [x25]
	sub	w2, w8, w21
Lloh72:
	adrp	x1, l_.str.13@PAGE
Lloh73:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_av_strlcpy
	ldr	x23, [x25, #8]
	add	x0, x23, x22
	bl	_strlen
	orr	w8, w21, #0x1
	ldr	w1, [x19]
	ldr	w9, [x25]
	add	w21, w8, w0
	sub	w3, w9, w21
	add	x2, x23, w21, sxtw #2
	mov	x0, x20
	bl	_av_sdp_create
	cbz	x0, LBB0_57
; %bb.56:
Lloh74:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh75:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh76:
	ldr	w22, [x8]
	b	LBB0_51
LBB0_57:
	sxtw	x20, w21
	add	x0, sp, #48
	bl	_av_freep
Lloh77:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh78:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	ldr	x8, [x25, #8]
	lsl	x21, x20, #2
	add	x8, x8, x21
	str	x8, [sp]
Lloh80:
	adrp	x2, l_.str.14@PAGE
Lloh81:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x8, [x25, #8]
	add	x0, x8, x21
	bl	_strlen
	add	w8, w20, w0
	str	w8, [x25]
	ldr	x9, [x25, #16]
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_59
; %bb.58:
Lloh82:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh83:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
Lloh85:
	adrp	x2, l_.str.15@PAGE
Lloh86:
	add	x2, x2, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w22, #0
	ldr	x20, [sp, #48]
	b	LBB0_51
LBB0_59:
	mov	w22, #0
	b	LBB0_52
LBB0_60:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdr	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"title"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"announce_port"

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

l_.str.3:                               ; @.str.3
	.asciz	"ttl"

l_.str.4:                               ; @.str.4
	.asciz	"announce_addr"

	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"Unable to resolve %s\n"

	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.6:                               ; @.str.6
	.asciz	"224.2.127.254"

l_.str.7:                               ; @.str.7
	.asciz	"Host %s resolved to unsupported address family\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
l_.str.8:                               ; @.str.8
	.asciz	"rtp"

l_.str.9:                               ; @.str.9
	.asciz	"?ttl=%d"

	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
l_.str.10:                              ; @.str.10
	.asciz	"udp"

l_.str.11:                              ; @.str.11
	.asciz	"?ttl=%d&connect=1"

l_.str.12:                              ; @.str.12
	.asciz	"Unsupported protocol family\n"

l_.str.13:                              ; @.str.13
	.asciz	"application/sdp"

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

l_.str.15:                              ; @.str.15
	.asciz	"Announcement too large to send in one packet\n"

	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.no_dead_strip	_sap_write_header
.subsections_via_symbols
