	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_connect_parallel            ## -- Begin function ff_connect_parallel
	.p2align	4, 0x90
_ff_connect_parallel:                   ## @ff_connect_parallel
	.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	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -592(%rbp)                 ## 8-byte Spill
	movq	%r8, -552(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %ebx
	movl	%esi, -540(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -512(%rbp)
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	%rax, -560(%rbp)                ## 8-byte Spill
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, -500(%rbp)
	leaq	-144(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	movl	%ebx, -516(%rbp)                ## 4-byte Spill
	cmpl	%ebx, %eax
	jge	LBB0_2
## %bb.1:
	leaq	-144(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	movl	%eax, -516(%rbp)                ## 4-byte Spill
	movq	-512(%rbp), %r14
LBB0_2:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_print_address_list
	movq	-512(%rbp), %rdi
	callq	_interleave_addrinfo
	movq	-512(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_print_address_list
	movq	-512(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	leaq	8(%r15), %rcx
	movq	%rcx, -584(%rbp)                ## 8-byte Spill
	movb	$1, %cl
	movl	$0, -536(%rbp)                  ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	movq	%r15, -568(%rbp)                ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
	cmpl	-516(%rbp), %r13d               ## 4-byte Folded Reload
	jge	LBB0_28
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, -504(%rbp)               ## 4-byte Spill
	movslq	%r13d, %rdx
	shlq	$5, %rdx
	movq	%rdx, -576(%rbp)                ## 8-byte Spill
	addq	%rbp, %rdx
	addq	$-144, %rdx
	movq	%rdx, -528(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %cl
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rsp)
	leaq	-464(%rbp), %r12
	movq	%r12, %rdx
	movl	$100, %ecx
	leaq	-496(%rbp), %r13
	movq	%r13, %r8
	movl	$20, %r9d
	callq	_getnameinfo
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_av_log
	movq	-528(%rbp), %rdi                ## 8-byte Reload
	leaq	-512(%rbp), %rsi
	movl	-540(%rbp), %edx                ## 4-byte Reload
	movq	%r15, %rcx
	movq	-592(%rbp), %r8                 ## 8-byte Reload
	movq	16(%rbp), %r9
	callq	_start_connect_attempt
	movl	%eax, -500(%rbp)
	testl	%eax, %eax
	jns	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%eax, %edi
	leaq	-352(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$100, %edx
	callq	_av_strerror
	movl	(%r14), %esi
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	-512(%rbp), %rax
	testq	%rax, %rax
	setne	%cl
	movl	-536(%rbp), %edx                ## 4-byte Reload
                                        ## kill: def $dl killed $dl killed $edx
	orb	%cl, %dl
	testb	$1, %dl
	jne	LBB0_8
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-504(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_28
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	jne	LBB0_21
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-528(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	movq	-576(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, -240(%rbp,%rcx)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -216(%rbp,%rcx)
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	_NEXT_ATTEMPT_DELAY_MS@GOTPCREL(%rip), %rcx
	imull	$1000, (%rcx), %ecx             ## imm = 0x3E8
	addl	%ecx, %eax
	movq	%rax, -560(%rbp)                ## 8-byte Spill
	movl	-504(%rbp), %r13d               ## 4-byte Reload
	incl	%r13d
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	testl	%r13d, %r13d
	setg	%dil
	callq	_av_assert0
	movl	-140(%rbp), %eax
	cmpl	-516(%rbp), %r13d               ## 4-byte Folded Reload
	jge	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -512(%rbp)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %edi
	movq	-560(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
LBB0_31:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%eax, %rbx
	xorl	%eax, %eax
	callq	_av_gettime_relative
	subq	%rax, %rbx
	movq	%rbx, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$7, %rdx
	addl	%eax, %edx
	leaq	-240(%rbp), %rdi
	movl	%r13d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	callq	_ff_poll_interrupt
	movl	%eax, -500(%rbp)
	testl	%eax, %eax
	jns	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ebx
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_13
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.34:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_35 Depth=2
	incl	%r12d
	cmpl	%r12d, %r13d
	jle	LBB0_4
LBB0_35:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$0, -500(%rbp)
	movslq	%r12d, %r14
	shlq	$5, %r14
	cmpq	$0, -224(%rbp,%r14)
	je	LBB0_47
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=2
	movl	$4, -544(%rbp)
	movl	-144(%rbp,%r14), %edi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-500(%rbp), %rcx
	leaq	-544(%rbp), %r8
	callq	_getsockopt
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=2
	xorl	%eax, %eax
	callq	_ff_neterrno
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	-500(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=2
	callq	_AVERROR
LBB0_40:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	%eax, -500(%rbp)
	testl	%eax, %eax
	je	LBB0_41
LBB0_47:                                ##   in Loop: Header=BB0_35 Depth=2
	movslq	-140(%rbp,%r14), %rbx
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	%rax, %rcx
	movl	-500(%rbp), %eax
	cmpq	%rbx, %rcx
	jle	LBB0_50
## %bb.48:                              ##   in Loop: Header=BB0_35 Depth=2
	testl	%eax, %eax
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, -500(%rbp)
LBB0_50:                                ##   in Loop: Header=BB0_35 Depth=2
	testl	%eax, %eax
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_35 Depth=2
	leaq	(%r14,%rbp), %rax
	addq	$-240, %rax
	movq	%rax, -536(%rbp)                ## 8-byte Spill
	leaq	-144(%rbp,%r14), %rax
	movq	%rax, -528(%rbp)                ## 8-byte Spill
	movq	-136(%rbp,%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rsp)
	leaq	-464(%rbp), %rdx
	movl	$100, %ecx
	movq	%r15, %rbx
	leaq	-496(%rbp), %r8
	movl	$20, %r9d
	callq	_getnameinfo
	movl	-500(%rbp), %edi
	movl	%r13d, %r15d
	leaq	-352(%rbp), %r13
	movq	%r13, %rsi
	movl	$100, %edx
	callq	_av_strerror
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rdx
	leaq	-464(%rbp), %rcx
	leaq	-496(%rbp), %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_av_log
	movq	-528(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_closesocket
	leaq	(%r14,%rbp), %rsi
	addq	$-112, %rsi
	movl	%r15d, %r13d
	movl	%r12d, %r15d
	notl	%r15d
	addl	%r13d, %r15d
	shll	$5, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_memmove
	leaq	(%r14,%rbp), %rsi
	addq	$-208, %rsi
	movq	-536(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %edx
	movq	-568(%rbp), %r15                ## 8-byte Reload
	callq	_memmove
	decl	%r12d
	decl	%r13d
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-512(%rbp), %rax
	testq	%rax, %rax
	setne	%cl
	testl	%r13d, %r13d
	setg	%dl
	movl	%edx, -536(%rbp)                ## 4-byte Spill
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_16
LBB0_41:
	leaq	(%r14,%rbp), %r15
	addq	$-144, %r15
	testl	%r13d, %r13d
	jle	LBB0_46
## %bb.42:
	movl	%r12d, %r12d
	movl	%r13d, %r13d
	shlq	$5, %r12
	shlq	$5, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_43 Depth=1
	addq	$32, %rbx
	cmpq	%rbx, %r13
	je	LBB0_46
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r12
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movl	-144(%rbp,%rbx), %edi
	callq	_closesocket
	jmp	LBB0_45
LBB0_46:
	movl	(%r15), %eax
	movq	-552(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-136(%rbp,%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rsp)
	leaq	-464(%rbp), %r14
	leaq	-496(%rbp), %r15
	movq	%r14, %rdx
	movl	$100, %ecx
	movq	%r15, %r8
	movl	$20, %r9d
	callq	_getnameinfo
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ebx, %ebx
	movq	-568(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_25
LBB0_12:
	movl	-504(%rbp), %r13d               ## 4-byte Reload
LBB0_13:
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.14:
	movl	%r13d, %r14d
	shlq	$5, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	-144(%rbp,%rbx), %edi
	callq	_closesocket
	addq	$32, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_15
LBB0_16:
	movl	-500(%rbp), %ebx
	testl	%ebx, %ebx
	js	LBB0_18
## %bb.17:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movl	%eax, -500(%rbp)
LBB0_18:
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_25
## %bb.19:
	leaq	-352(%rbp), %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$100, %edx
	callq	_av_strerror
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_av_log
	movl	-500(%rbp), %ebx
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.53:
	movl	%ebx, %eax
	addq	$568, %rsp                      ## imm = 0x238
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	-504(%rbp), %eax                ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_24
## %bb.22:
	movl	%eax, %r14d
	shlq	$5, %r14
	xorl	%ebx, %ebx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	-144(%rbp,%rbx), %edi
	callq	_closesocket
	addq	$32, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_23
LBB0_24:
	movq	-528(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	movq	-552(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Original list of addresses"

L_.str.1:                               ## @.str.1
	.asciz	"Interleaved list of addresses"

	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ## @NI_NUMERICSERV
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"Starting connection attempt to %s port %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Connected attempt failed: %s\n"

	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_NEXT_ATTEMPT_DELAY_MS,4,2      ## @NEXT_ATTEMPT_DELAY_MS
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"Successfully connected to %s port %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"Connection attempt to %s port %s failed: %s\n"

	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"Connection to %s failed: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_connect_parallel            ; -- Begin function ff_connect_parallel
	.p2align	2
_ff_connect_parallel:                   ; @ff_connect_parallel
	.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, #512
	stp	x5, x6, [sp, #48]               ; 16-byte Folded Spill
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	mov	x19, x3
	mov	x23, x2
	str	w1, [sp, #44]                   ; 4-byte Folded Spill
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	str	x0, [sp, #72]
	bl	_av_gettime_relative
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	str	w0, [sp, #68]
	sub	x0, x29, #192
	bl	_FF_ARRAY_ELEMS
	cmp	w0, w23
	b.ge	LBB0_2
; %bb.1:
	sub	x0, x29, #192
	bl	_FF_ARRAY_ELEMS
	mov	x23, x0
	ldr	x20, [sp, #72]
LBB0_2:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_print_address_list
	ldr	x0, [sp, #72]
	bl	_interleave_addrinfo
	ldr	x1, [sp, #72]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_print_address_list
	ldr	x8, [sp, #72]
	cbz	x8, LBB0_40
; %bb.3:
	mov	w20, #0
	mov	w26, #0
	add	x9, x19, #8
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	mov	w9, #1
	sub	x22, x29, #192
Lloh10:
	adrp	x24, _AV_LOG_VERBOSE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AV_LOG_VERBOSE@GOTPAGEOFF]
	add	x21, sp, #304
	str	w23, [sp, #40]                  ; 4-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	cmp	w26, w23
	b.ge	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x25, w26
	add	x27, x22, x25, lsl #5
Lloh12:
	adrp	x23, l_.str.2@PAGE
Lloh13:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w9, #0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldp	w1, w0, [x8]
Lloh14:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _NI_NUMERICSERV@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NI_NUMERICSERV@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w6, w9, w8
	add	x2, sp, #104
	add	x4, sp, #84
	mov	w3, #100
	mov	w5, #20
	bl	_getnameinfo
	ldr	w1, [x24]
	add	x8, sp, #84
	str	x8, [sp]
	add	x3, sp, #104
	mov	x0, x19
	mov	x2, x23
	bl	_av_log
	add	x1, sp, #72
	mov	x0, x27
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	mov	x3, x19
	ldp	x4, x5, [sp, #48]               ; 16-byte Folded Reload
	bl	_start_connect_attempt
	str	w0, [sp, #68]
	tbz	w0, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x1, sp, #204
	mov	w2, #100
	bl	_av_strerror
	ldr	w1, [x24]
	add	x3, sp, #204
	mov	x0, x19
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
	ldr	x8, [sp, #72]
	cmp	x8, #0
	cset	w9, ne
	orr	w10, w20, w9
	tbnz	w10, #0, LBB0_6
	b	LBB0_37
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w0, LBB0_46
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	add	x9, x21, x25, lsl #5
	str	w8, [x9]
Lloh22:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x9, #24]
	bl	_av_gettime_relative
Lloh25:
	adrp	x8, _NEXT_ATTEMPT_DELAY_MS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NEXT_ATTEMPT_DELAY_MS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	mov	w9, #1000
	madd	w8, w8, w9, w0
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	w26, w26, #1
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [sp, #40]                  ; 4-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #0
	cset	w0, gt
	bl	_av_assert0
	ldur	w0, [x29, #-188]
	cmp	w26, w23
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #72]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x20, w0
	bl	_av_gettime_relative
	sub	x8, x20, x0
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	smulh	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #7
	add	w2, w8, w9
	add	x0, sp, #304
	mov	x1, x26
	ldr	x3, [sp, #24]                   ; 8-byte Folded Reload
	bl	_ff_poll_interrupt
	str	w0, [sp, #68]
	tbz	w0, #31, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
Lloh28:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w20, w0
	b.ne	LBB0_37
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #1
	b.lt	LBB0_29
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	w25, w25, #1
	cmp	w26, w25
	b.le	LBB0_29
LBB0_20:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [sp, #68]
	sxtw	x28, w25
	add	x27, x21, x28, lsl #5
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	mov	w8, #4
	str	w8, [sp, #64]
	add	x20, x22, x28, lsl #5
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _SO_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SO_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	add	x3, sp, #68
	add	x4, sp, #64
	bl	_getsockopt
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	bl	_ff_neterrno
	str	w0, [sp, #68]
	cbnz	w0, LBB0_25
	b	LBB0_31
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	w0, [sp, #68]
	cbz	w0, LBB0_31
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=2
	bl	_AVERROR
	str	w0, [sp, #68]
	cbz	w0, LBB0_31
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x20, x22, x28, lsl #5
	ldrsw	x23, [x20, #4]
	bl	_av_gettime_relative
	mov	x8, x0
	ldr	w0, [sp, #68]
	cmp	x8, x23
	ccmp	w0, #0, #0, gt
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=2
Lloh37:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_AVERROR
	str	w0, [sp, #68]
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=2
	cbz	w0, LBB0_19
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=2
	lsl	x23, x28, #5
	add	x8, x22, x23
	ldr	x8, [x8, #8]
	ldp	w1, w0, [x8]
Lloh40:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _NI_NUMERICSERV@GOTPAGE
Lloh44:
	ldr	x9, [x9, _NI_NUMERICSERV@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w6, w9, w8
	add	x2, sp, #104
	add	x4, sp, #84
	mov	w3, #100
	mov	w5, #20
	bl	_getnameinfo
	ldr	w0, [sp, #68]
	add	x1, sp, #204
	mov	w2, #100
	bl	_av_strerror
	ldr	w1, [x24]
	add	x8, sp, #204
	str	x8, [sp, #8]
	add	x8, sp, #84
	str	x8, [sp]
	add	x3, sp, #104
	mov	x0, x19
Lloh46:
	adrp	x2, l_.str.5@PAGE
Lloh47:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_av_log
	ldr	w0, [x20]
	bl	_closesocket
	add	x23, x23, #32
	add	x1, x22, x23
	mvn	w8, w25
	add	w8, w26, w8
	lsl	w28, w8, #5
	mov	x0, x20
	mov	x2, x28
	bl	_memmove
	add	x1, x21, x23
	mov	x0, x27
	mov	x2, x28
	bl	_memmove
	sub	w25, w25, #1
	sub	w26, w26, #1
	b	LBB0_19
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #72]
	cmp	x8, #0
	cset	w9, ne
	cmp	w26, #0
	cset	w20, gt
	ldr	w23, [sp, #40]                  ; 4-byte Folded Reload
	b.gt	LBB0_4
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x8, LBB0_4
	b	LBB0_40
LBB0_31:
	cmp	w26, #1
	b.lt	LBB0_36
; %bb.32:
	mov	w21, w25
	sub	x22, x29, #192
	mov	w23, w26
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	sub	x21, x21, #1
	add	x22, x22, #32
	subs	x23, x23, #1
	b.eq	LBB0_36
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	w0, [x22]
	bl	_closesocket
	b	LBB0_33
LBB0_36:
	ldr	w8, [x20]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	sub	x8, x29, #192
	add	x8, x8, x28, lsl #5
	ldr	x8, [x8, #8]
	ldp	w1, w0, [x8]
Lloh48:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _NI_NUMERICSERV@GOTPAGE
Lloh52:
	ldr	x9, [x9, _NI_NUMERICSERV@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w6, w9, w8
	add	x20, sp, #84
	add	x2, sp, #104
	add	x4, sp, #84
	mov	w3, #100
	mov	w5, #20
	bl	_getnameinfo
	ldr	w1, [x24]
	str	x20, [sp]
Lloh54:
	adrp	x2, l_.str.4@PAGE
Lloh55:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x3, sp, #104
	mov	x0, x19
	bl	_av_log
	mov	w0, #0
	b	LBB0_44
LBB0_37:
	cmp	w26, #1
	b.lt	LBB0_40
; %bb.38:
	mov	w20, w26
	sub	x21, x29, #192
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21], #32
	bl	_closesocket
	subs	x20, x20, #1
	b.ne	LBB0_39
LBB0_40:
	ldr	w0, [sp, #68]
	tbnz	w0, #31, LBB0_42
; %bb.41:
Lloh56:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_AVERROR
	str	w0, [sp, #68]
LBB0_42:
Lloh59:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh60:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_44
; %bb.43:
	add	x20, sp, #204
	add	x1, sp, #204
	mov	w2, #100
	bl	_av_strerror
Lloh62:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	ldr	x3, [x19]
	str	x20, [sp]
Lloh65:
	adrp	x2, l_.str.6@PAGE
Lloh66:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w0, [sp, #68]
LBB0_44:
	ldur	x8, [x29, #-96]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.45:
	add	sp, sp, #512
	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_46:
	cmp	w26, #1
	b.lt	LBB0_49
; %bb.47:
	mov	w19, w26
	sub	x20, x29, #192
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20], #32
	bl	_closesocket
	subs	x19, x19, #1
	b.ne	LBB0_48
LBB0_49:
	mov	w0, #0
	ldr	w8, [x27]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_44
LBB0_50:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Original list of addresses"

l_.str.1:                               ; @.str.1
	.asciz	"Interleaved list of addresses"

	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ; @NI_NUMERICSERV
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"Starting connection attempt to %s port %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Connected attempt failed: %s\n"

	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_NEXT_ATTEMPT_DELAY_MS,4,2      ; @NEXT_ATTEMPT_DELAY_MS
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"Successfully connected to %s port %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"Connection attempt to %s port %s failed: %s\n"

	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"Connection to %s failed: %s\n"

.subsections_via_symbols
