	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libsrt_setup
_libsrt_setup:                          ## @libsrt_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
	subq	$3448, %rsp                     ## imm = 0xD78
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -3472(%rbp)
	movaps	%xmm0, -3488(%rbp)
	movq	16(%rdi), %r13
	xorl	%eax, %eax
	callq	_srt_epoll_create
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	%ebx, -3420(%rbp)               ## 4-byte Spill
	movl	%eax, (%r13)
	leaq	-3376(%rbp), %rax
	leaq	-3396(%rbp), %r10
	leaq	-2352(%rbp), %rbx
	leaq	-1328(%rbp), %r14
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movl	$1024, %r9d                     ## imm = 0x400
	pushq	%r15
	pushq	$1024                           ## imm = 0x400
	pushq	%rax
	pushq	%r10
	callq	_av_url_split
	addq	$32, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	$-65536, %eax                   ## imm = 0xFFFF0000
	addl	-3396(%rbp), %eax
	cmpl	$-65536, %eax                   ## imm = 0xFFFF0000
	ja	LBB0_10
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.7:
	movl	%ebx, %eax
	addq	$3448, %rsp                     ## imm = 0xD78
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.9:
	movq	%r12, %rdi
	addq	$3448, %rsp                     ## imm = 0xD78
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_libsrt_neterrno                ## TAILCALL
LBB0_10:
	movq	%r15, %rdi
	movl	$63, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdx
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%rax, %rcx
	callq	_av_find_info_tag
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	-304(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, 8(%r13)
LBB0_13:
	leaq	L_.str.3(%rip), %rdx
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%rbx, %rcx
	callq	_av_find_info_tag
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	-304(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, 48(%r13)
LBB0_15:
	movq	8(%r13), %rax
	testq	%rax, %rax
	js	LBB0_17
## %bb.16:
	movl	%eax, (%r12)
	cltq
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$38, %rcx
	addl	%eax, %ecx
	movq	%rcx, -3408(%rbp)               ## 8-byte Spill
	jmp	LBB0_18
LBB0_17:
	movl	$5000, %eax                     ## imm = 0x1388
	movq	%rax, -3408(%rbp)               ## 8-byte Spill
LBB0_18:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -3468(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -3472(%rbp)
	movl	-3396(%rbp), %ecx
	leaq	L_.str.4(%rip), %rdx
	leaq	-3386(%rbp), %rdi
	movl	$10, %esi
	callq	_snprintf
	movq	16(%r13), %rax
	movq	_SRT_MODE_LISTENER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -3464(%rbp)
LBB0_20:
	xorl	%eax, %eax
	cmpb	$0, -1328(%rbp)
	cmoveq	%rax, %r14
	leaq	-3386(%rbp), %rsi
	leaq	-3488(%rbp), %rdx
	leaq	-3416(%rbp), %rcx
	movq	%r14, %rdi
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.5(%rip), %rdx
	leaq	-1328(%rbp), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_22:
	movq	-3416(%rbp), %r15
	leaq	24(%r13), %rax
	movq	%rax, -3448(%rbp)               ## 8-byte Spill
	leaq	32(%r13), %rax
	movq	%rax, -3440(%rbp)               ## 8-byte Spill
	movq	%r13, -3432(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	xorl	%edx, %edx
	callq	_srt_socket
	movl	%eax, %r14d
	movq	%r12, %rdi
	testl	%eax, %eax
	js	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%r14d, %esi
	callq	_libsrt_set_options_pre
	testl	%eax, %eax
	js	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-3448(%rbp), %rcx               ## 8-byte Reload
	cmpq	$0, (%rcx)
	jle	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SRTO_UDP_RCVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$8, %r8d
	callq	_srt_setsockopt
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	-3440(%rbp), %rcx               ## 8-byte Reload
	cmpq	$0, (%rcx)
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SRTO_UDP_SNDBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$8, %r8d
	callq	_srt_setsockopt
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	16(%r13), %rax
	movq	_SRT_MODE_LISTENER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	(%r13), %edi
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	movl	%r14d, %esi
	movq	%r12, %r8
	movq	-3408(%rbp), %r9                ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_libsrt_listen
	movl	%eax, %r13d
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_37
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_23 Depth=1
	callq	_libsrt_neterrno
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_39
LBB0_33:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	_SRT_MODE_RENDEZVOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movl	%r14d, %edi
	callq	_srt_bind
	testl	%eax, %eax
	jne	LBB0_51
LBB0_35:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	(%r13), %edi
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	xorl	%eax, %eax
	cmpq	$0, (%r15)
	setne	%al
	subq	$8, %rsp
	movl	%r14d, %esi
	movq	-3408(%rbp), %r8                ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%r12, %r9
	pushq	%rax
	callq	_libsrt_listen_connect
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%r14d, %r13d
LBB0_37:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_libsrt_set_options_post
	testl	%eax, %eax
	jns	LBB0_46
## %bb.38:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%eax, %ebx
	movl	%r13d, %r14d
LBB0_39:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	(%r15), %r15
	testq	%r15, %r15
	je	LBB0_43
## %bb.40:                              ##   in Loop: Header=BB0_23 Depth=1
	testl	%r14d, %r14d
	movq	-3432(%rbp), %r13               ## 8-byte Reload
	js	LBB0_23
## %bb.41:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%r14d, %edi
	callq	_srt_close
	jmp	LBB0_23
LBB0_42:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%eax, %ebx
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_39
	jmp	LBB0_44
LBB0_43:
	testl	%r14d, %r14d
	js	LBB0_45
LBB0_44:
	movl	%r14d, %edi
	callq	_srt_close
LBB0_45:
	movq	-3416(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_6
LBB0_46:
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	-3420(%rbp), %ecx               ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_50
## %bb.47:
	movl	$0, -3392(%rbp)
	movl	$4, -3424(%rbp)
	movq	_SRTO_PAYLOADSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rcx
	leaq	-3392(%rbp), %r8
	leaq	-3424(%rbp), %r9
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_libsrt_getsockopt
	testl	%eax, %eax
	js	LBB0_52
## %bb.48:
	movl	-3392(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_50
## %bb.49:
	movl	%eax, 4(%r12)
LBB0_50:
	movl	$1, 8(%r12)
	movq	-3432(%rbp), %rax               ## 8-byte Reload
	movl	%r13d, 40(%rax)
	movq	-3416(%rbp), %rdi
	callq	_freeaddrinfo
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_51:
	movl	%eax, %ebx
	jmp	LBB0_44
LBB0_52:
	movl	%eax, %ebx
	movl	%r13d, %r14d
	jmp	LBB0_44
LBB0_53:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"srt"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Port missing in uri\n"

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

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

	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.4:                               ## @.str.4
	.asciz	"%d"

	.comm	_SRT_MODE_LISTENER,8,3          ## @SRT_MODE_LISTENER
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
L_.str.5:                               ## @.str.5
	.asciz	"Failed to resolve hostname %s: %s\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SRTO_UDP_RCVBUF,4,2            ## @SRTO_UDP_RCVBUF
	.comm	_SRTO_UDP_SNDBUF,4,2            ## @SRTO_UDP_SNDBUF
	.comm	_SRT_MODE_RENDEZVOUS,8,3        ## @SRT_MODE_RENDEZVOUS
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_SRTO_PAYLOADSIZE,4,2           ## @SRTO_PAYLOADSIZE
L_.str.6:                               ## @.str.6
	.asciz	"SRTO_PAYLOADSIZE"

	.no_dead_strip	_libsrt_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libsrt_setup
_libsrt_setup:                          ; @libsrt_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
	sub	sp, sp, #3440
	mov	x20, x2
	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, #-96]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	ldr	x27, [x0, #16]
	bl	_srt_epoll_create
	tbnz	w0, #31, LBB0_8
; %bb.1:
	str	w0, [x27]
	str	x21, [sp, #8]
	mov	w8, #1024
	str	w8, [sp]
	add	x0, sp, #1120
	add	x4, sp, #2144
	add	x6, sp, #36
	add	x7, sp, #96
	mov	w1, #1024
	mov	x2, #0
	mov	w3, #0
	mov	w5, #1024
	bl	_av_url_split
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #1120
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #36]
	sub	w8, w8, #16, lsl #12            ; =65536
	cmn	w8, #16, lsl #12                ; =65536
	b.hi	LBB0_10
; %bb.3:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x25, x0
LBB0_6:
	ldur	x8, [x29, #-96]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.7:
	mov	x0, x25
	add	sp, sp, #3440
	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_8:
	ldur	x8, [x29, #-96]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.9:
	mov	x0, x19
	add	sp, sp, #3440
	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	_libsrt_neterrno
LBB0_10:
	mov	x0, x21
	mov	w1, #63
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.11:
	mov	x21, x0
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #3168
	mov	w1, #256
	mov	x3, x21
	bl	_av_find_info_tag
	cbz	x0, LBB0_13
; %bb.12:
	add	x0, sp, #3168
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	str	x0, [x27, #8]
LBB0_13:
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #3168
	mov	w1, #256
	mov	x3, x21
	bl	_av_find_info_tag
	cbz	x0, LBB0_15
; %bb.14:
	add	x0, sp, #3168
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	str	x0, [x27, #48]
LBB0_15:
	ldr	x8, [x27, #8]
	tbnz	x8, #63, LBB0_17
; %bb.16:
	str	w8, [x19]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w21, w8, w9
	b	LBB0_18
LBB0_17:
	mov	w21, #5000
LBB0_18:
Lloh22:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #64]
	ldr	w3, [sp, #36]
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #86
	mov	w1, #10
	bl	_snprintf
	ldr	x8, [x27, #16]
Lloh30:
	adrp	x9, _SRT_MODE_LISTENER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SRT_MODE_LISTENER@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
Lloh33:
	adrp	x8, _AI_PASSIVE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AI_PASSIVE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [sp, #72]
	orr	w8, w9, w8
	str	w8, [sp, #72]
LBB0_20:
	ldrb	w8, [sp, #2144]
	cmp	w8, #0
	add	x22, sp, #2144
	csel	x0, xzr, x22, eq
	add	x1, sp, #86
	add	x2, sp, #48
	add	x3, sp, #40
	bl	_getaddrinfo
	cbz	w0, LBB0_22
; %bb.21:
Lloh36:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w20, [x8]
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_22:
	ldr	x28, [sp, #40]
	add	x22, x27, #24
	add	x23, x27, #32
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x28, #16]
	mov	w2, #0
	bl	_srt_socket
	mov	x24, x0
	tbnz	w0, #31, LBB0_31
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_libsrt_set_options_pre
	tbnz	w0, #31, LBB0_32
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh43:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _SRTO_UDP_RCVBUF@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SRTO_UDP_RCVBUF@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x3, x22
	mov	w4, #8
	bl	_srt_setsockopt
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh49:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _SRTO_UDP_SNDBUF@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SRTO_UDP_SNDBUF@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x3, x23
	mov	w4, #8
	bl	_srt_setsockopt
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x27, #16]
Lloh55:
	adrp	x9, _SRT_MODE_LISTENER@GOTPAGE
Lloh56:
	ldr	x9, [x9, _SRT_MODE_LISTENER@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x27]
	ldp	w3, w2, [x28, #8]
	mov	x1, x24
	mov	x4, x19
	mov	x5, x21
	bl	_libsrt_listen
	mov	x26, x0
	mov	x25, x0
	tbz	w0, #31, LBB0_37
	b	LBB0_44
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x19
	bl	_libsrt_neterrno
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x25, x0
	b	LBB0_39
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=1
Lloh58:
	adrp	x9, _SRT_MODE_RENDEZVOUS@GOTPAGE
Lloh59:
	ldr	x9, [x9, _SRT_MODE_RENDEZVOUS@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	w2, w1, [x28, #8]
	mov	x0, x24
	bl	_srt_bind
	cbnz	w0, LBB0_51
LBB0_35:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x27]
	ldp	w3, w2, [x28, #8]
	ldr	x8, [x28]
	cmp	x8, #0
	cset	w6, ne
	mov	x1, x24
	mov	x4, x21
	mov	x5, x19
	bl	_libsrt_listen_connect
	tbnz	w0, #31, LBB0_42
; %bb.36:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x26, x24
LBB0_37:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_libsrt_set_options_post
	tbz	w0, #31, LBB0_46
; %bb.38:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x25, x0
	mov	x24, x26
LBB0_39:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x28, [x28]
	cbz	x28, LBB0_43
; %bb.40:                               ;   in Loop: Header=BB0_23 Depth=1
	tbnz	w24, #31, LBB0_23
; %bb.41:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x24
	bl	_srt_close
	b	LBB0_23
LBB0_42:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x25, x0
Lloh61:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_39
	b	LBB0_44
LBB0_43:
	tbnz	w24, #31, LBB0_45
LBB0_44:
	mov	x0, x24
	bl	_srt_close
LBB0_45:
	ldr	x0, [sp, #40]
	bl	_freeaddrinfo
	b	LBB0_6
LBB0_46:
Lloh64:
	adrp	x8, _AVIO_FLAG_WRITE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_50
; %bb.47:
	mov	w8, #4
	stp	w8, wzr, [sp, #28]
Lloh67:
	adrp	x8, _SRTO_PAYLOADSIZE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SRTO_PAYLOADSIZE@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
Lloh70:
	adrp	x3, l_.str.6@PAGE
Lloh71:
	add	x3, x3, l_.str.6@PAGEOFF
	add	x4, sp, #32
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x26
	bl	_libsrt_getsockopt
	tbnz	w0, #31, LBB0_52
; %bb.48:
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_50
; %bb.49:
	str	w8, [x19, #4]
LBB0_50:
	mov	w8, #1
	str	w8, [x19, #8]
	str	w26, [x27, #40]
	ldr	x0, [sp, #40]
	bl	_freeaddrinfo
	mov	w25, #0
	b	LBB0_6
LBB0_51:
	mov	x25, x0
	b	LBB0_44
LBB0_52:
	mov	x25, x0
	mov	x24, x26
	b	LBB0_44
LBB0_53:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"srt"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Port missing in uri\n"

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

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

	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.4:                               ; @.str.4
	.asciz	"%d"

	.comm	_SRT_MODE_LISTENER,8,3          ; @SRT_MODE_LISTENER
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
l_.str.5:                               ; @.str.5
	.asciz	"Failed to resolve hostname %s: %s\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SRTO_UDP_RCVBUF,4,2            ; @SRTO_UDP_RCVBUF
	.comm	_SRTO_UDP_SNDBUF,4,2            ; @SRTO_UDP_SNDBUF
	.comm	_SRT_MODE_RENDEZVOUS,8,3        ; @SRT_MODE_RENDEZVOUS
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_SRTO_PAYLOADSIZE,4,2           ; @SRTO_PAYLOADSIZE
l_.str.6:                               ; @.str.6
	.asciz	"SRTO_PAYLOADSIZE"

	.no_dead_strip	_libsrt_setup
.subsections_via_symbols
