	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ATH_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_4:
	movq	(%rbx), %rax
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.2(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$105, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_5
LBB0_7:
	leaq	-44(%rbp), %rbx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_get_survey_stats
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	leaq	-44(%rbp), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_process_survey_stats
	movl	$1, %edi
	callq	_sleep
	incl	%ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_get_survey_stats
	decl	%r13d
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	$2987803337, %ecx               ## imm = 0xB21642C9
	imulq	%rcx, %rax
	shrq	$36, %rax
	leal	(%rax,%rax,2), %ecx
	shll	$3, %ecx
	subl	%eax, %ecx
	addl	%r13d, %ecx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r15, %r12
	movl	%r14d, %r15d
	leaq	L_.str.4(%rip), %r14
	movq	%r14, %rdi
	callq	_printf
	movq	%r14, %rdi
	movl	%r15d, %r14d
	movq	%r12, %r15
	leaq	-44(%rbp), %r12
	callq	_printf
	leaq	L_.str.5(%rip), %rdi
	callq	_printf
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

L_.str.1:                               ## @.str.1
	.asciz	"ATH"

	.comm	_ATH_DEFAULT,8,3                ## @ATH_DEFAULT
	.comm	_progname,8,3                   ## @progname
L_.str.2:                               ## @.str.2
	.asciz	"i:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
L_.str.4:                               ## @.str.4
	.asciz	"  tx%%  rx%%  bc%%  ec%%  "

L_.str.5:                               ## @.str.5
	.asciz	"  tx%%  rx%%  bc%%  ec%%\n"

L_str:                                  ## @str
	.asciz	"         min                   avg                   max"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh10:
	adrp	x8, _ATH_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x20, x8, x0, eq
Lloh13:
	adrp	x8, _progname@GOTPAGE
Lloh14:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh15:
	str	x9, [x8]
Lloh16:
	adrp	x23, l_.str.2@PAGE
Lloh17:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh18:
	adrp	x24, _optarg@GOTPAGE
Lloh19:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	cmp	w0, #105
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x24]
	b	LBB0_3
LBB0_7:
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_get_survey_stats
	cbz	x0, LBB0_12
; %bb.8:
	mov	w24, #0
	mov	w25, #0
	mov	w26, #17097
	movk	w26, #45590, lsl #16
	mov	w27, #23
Lloh20:
	adrp	x21, l_str@PAGE
Lloh21:
	add	x21, x21, l_str@PAGEOFF
Lloh22:
	adrp	x22, l_.str.4@PAGE
Lloh23:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh24:
	adrp	x23, l_.str.5@PAGE
Lloh25:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #12
	bl	_process_survey_stats
	mov	w0, #1
	bl	_sleep
	add	w25, w25, #1
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_get_survey_stats
	sub	w24, w24, #1
	cbz	x0, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	umull	x8, w25, w26
	lsr	x8, x8, #36
	madd	w8, w8, w27, w24
	cbnz	w8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	bl	_puts
	mov	x0, x22
	bl	_printf
	mov	x0, x22
	bl	_printf
	mov	x0, x23
	bl	_printf
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

l_.str.1:                               ; @.str.1
	.asciz	"ATH"

	.comm	_ATH_DEFAULT,8,3                ; @ATH_DEFAULT
	.comm	_progname,8,3                   ; @progname
l_.str.2:                               ; @.str.2
	.asciz	"i:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
l_.str.4:                               ; @.str.4
	.asciz	"  tx%%  rx%%  bc%%  ec%%  "

l_.str.5:                               ; @.str.5
	.asciz	"  tx%%  rx%%  bc%%  ec%%\n"

l_str:                                  ; @str
	.asciz	"         min                   avg                   max"

.subsections_via_symbols
