	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_for_dest
_fd_for_dest:                           ## @fd_for_dest
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	32(%rdi), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leaq	24(%rdi), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	$1000, %r15d                    ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -124(%rbp)
	movl	$0, -120(%rbp)
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	-116(%rbp), %esi                ## 4-byte Reload
	callq	_addr_is_ip6
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	testq	%rsi, %rsi
	jne	LBB0_8
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rsi
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %edi
	callq	_ub_random_max
	movq	(%rbx), %r14
	cltq
	leaq	(%rax,%rax,4), %rbx
	movl	32(%r14,%rbx,8), %r13d
	movl	16(%r12), %edi
	movq	(%r14,%rbx,8), %rsi
	callq	_ub_random_max
	movl	%eax, %ecx
	subl	8(%r14,%rbx,8), %ecx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14,%rbx,8), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rax
	shlq	$2, %rax
	addq	16(%r14,%rbx,8), %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx,8), %rbx
	addq	$36, %rbx
	movl	(%rax), %r14d
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	-116(%rbp), %esi                ## 4-byte Reload
	callq	_addr_is_ip6
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	%rax, -112(%rbp)
	movl	%r14d, %edi
	callq	_htons
	movq	%rax, -112(%rbp)
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_htons
	movq	%rax, (%rbx)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ecx
	movl	$1, %r8d
	leaq	-120(%rbp), %r9
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	leaq	-124(%rbp), %rax
	pushq	%rax
	callq	_create_udp_sock
	addq	$64, %rsp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -120(%rbp)
	movl	$-1, %ebx
	je	LBB0_17
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r15d
	jne	LBB0_2
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_err
	jmp	LBB0_17
LBB0_4:
	leaq	-112(%rbp), %rbx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	-116(%rbp), %esi                ## 4-byte Reload
	movq	%rbx, %rdx
	movl	$64, %ecx
	callq	_addr_to_str
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	leaq	-112(%rbp), %rbx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	-116(%rbp), %esi                ## 4-byte Reload
	movq	%rbx, %rdx
	movl	$64, %ecx
	callq	_addr_to_str
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdx
	callq	_verbose
	movl	$-1, %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"need ipv6 to send, but no ipv6 outgoing interfaces, for %s"

L_.str.1:                               ## @.str.1
	.asciz	"need ipv4 to send, but no ipv4 outgoing interfaces, for %s"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.2:                               ## @.str.2
	.asciz	"cannot send probe, ports are in use"

	.no_dead_strip	_fd_for_dest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fd_for_dest
_fd_for_dest:                           ; @fd_for_dest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x25, x0, #32
	add	x8, x0, #24
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w27, #1000
	mov	w28, #40
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_addr_is_ip6
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x21]
	mov	x22, x25
	cbnz	x1, LBB0_4
	b	LBB0_14
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x21, #8]
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	cbz	x1, LBB0_15
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21, #16]
	bl	_ub_random_max
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x24, [x22]
	sxtw	x26, w0
	smaddl	x23, w0, w28, x24
	ldr	w22, [x23, #32]
	ldr	w0, [x21, #16]
	ldr	x1, [x23]
	bl	_ub_random_max
	ldr	w8, [x23, #8]
	subs	w8, w0, w8
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	madd	x8, x26, x28, x24
	ldr	x8, [x8, #24]
	ldr	x8, [x8, w0, sxtw #3]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	madd	x9, x26, x28, x24
	ldr	x9, [x9, #16]
	add	x8, x9, w8, sxtw #2
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x23, x23, #36
	ldr	w24, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_addr_is_ip6
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x23]
	str	x8, [sp, #56]
	mov	x0, x24
	bl	_htons
	str	x0, [sp, #56]
Lloh3:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	stp	xzr, xzr, [sp]
	add	x2, sp, #56
	add	x5, sp, #48
	add	x6, sp, #52
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_htons
	str	x0, [x23]
Lloh9:
	adrp	x8, _AF_INET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	stp	xzr, xzr, [sp]
	add	x5, sp, #48
	add	x6, sp, #52
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	mov	x2, x23
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x3, x22
	mov	w4, #1
	mov	w7, #0
	bl	_create_udp_sock
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	subs	w27, w27, #1
	b.ne	LBB0_1
; %bb.13:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
	b	LBB0_17
LBB0_14:
	add	x2, sp, #56
	mov	x0, x20
	mov	x1, x19
	mov	w3, #64
	bl	_addr_to_str
Lloh17:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
	add	x2, sp, #56
	mov	x0, x20
	mov	x1, x19
	mov	w3, #64
	bl	_addr_to_str
Lloh22:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	add	x2, sp, #56
	bl	_verbose
LBB0_17:
	mov	w0, #-1
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"need ipv6 to send, but no ipv6 outgoing interfaces, for %s"

l_.str.1:                               ; @.str.1
	.asciz	"need ipv4 to send, but no ipv4 outgoing interfaces, for %s"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.2:                               ; @.str.2
	.asciz	"cannot send probe, ports are in use"

	.no_dead_strip	_fd_for_dest
.subsections_via_symbols
