	.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	%r12
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	-144(%rbp), %rdi
	movl	$96, %esi
	callq	_bzero
	cmpl	$6, %ebx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	leaq	-168(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -168(%rbp)
	movq	8(%r12), %rdi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
LBB0_32:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_52
LBB0_4:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_54
## %bb.5:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	cmpq	%rcx, %rsi
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, %rsi
	je	LBB0_9
## %bb.53:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_6
LBB0_54:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_7:
	leaq	-80(%rbp), %rdi
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	callq	_memcpy
	movl	$0, -144(%rbp)
	jmp	LBB0_10
LBB0_9:
	leaq	-64(%rbp), %rdi
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	callq	_memcpy
	movl	$1, -144(%rbp)
LBB0_10:
	cmpq	$0, -48(%rbp)
	je	LBB0_54
## %bb.11:
	movq	%rbx, %rdi
	callq	_freeaddrinfo
	movq	16(%r12), %rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r15
	testq	%rax, %rax
	jle	LBB0_13
## %bb.12:
	cmpq	$65536, %r15                    ## imm = 0x10000
	jl	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_usage
LBB0_14:
	movq	-40(%rbp), %r14
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_17
## %bb.15:
	cmpb	$45, %al
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_usage
LBB0_17:
	cmpl	$0, -144(%rbp)
	leaq	-80(%rbp), %rax
	leaq	-56(%rbp), %rbx
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	callq	_htons
	movq	%rax, (%rbx)
	movq	%r15, -128(%rbp)
	movq	%r15, -136(%rbp)
	cmpb	$45, (%r14)
	jne	LBB0_22
## %bb.18:
	incq	%r14
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %rbx
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	jg	LBB0_20
## %bb.19:
	cmpq	%rbx, -136(%rbp)
	jle	LBB0_21
LBB0_20:
	xorl	%eax, %eax
	callq	_usage
LBB0_21:
	movq	%rbx, -128(%rbp)
LBB0_22:
	movq	24(%r12), %rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r14
	testq	%rax, %rax
	js	LBB0_24
## %bb.23:
	movq	-40(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_25
LBB0_24:
	xorl	%eax, %eax
	callq	_usage
LBB0_25:
	cmpq	$32769, %r14                    ## imm = 0x8001
	jl	LBB0_27
## %bb.26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_52
LBB0_27:
	movq	%r14, -120(%rbp)
	movq	32(%r12), %rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r15
	testq	%rax, %rax
	js	LBB0_29
## %bb.28:
	movq	-40(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_30
LBB0_29:
	xorl	%eax, %eax
	callq	_usage
LBB0_30:
	movq	_MAX_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%r15, %rdx
	jge	LBB0_33
## %bb.31:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_32
LBB0_33:
	movq	40(%r12), %rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, -104(%rbp)
	movq	-40(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_35
## %bb.34:
	xorl	%eax, %eax
	callq	_usage
LBB0_35:
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, -88(%rbp)
	testq	%rax, %rax
	je	LBB0_36
## %bb.38:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_bzero
	cmpq	$1, %r15
	je	LBB0_41
## %bb.39:
	testq	%r15, %r15
	jne	LBB0_42
## %bb.40:
	movl	$0, -96(%rbp)
	xorl	%ecx, %ecx
	jmp	LBB0_45
LBB0_41:
	movl	$1, -96(%rbp)
	movl	$1, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_46
LBB0_42:
	movl	$0, -96(%rbp)
	movq	%r15, %rax
	shrq	$32, %rax
	je	LBB0_43
## %bb.44:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	idivq	%r15
	movq	%rax, %rcx
	jmp	LBB0_45
LBB0_43:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	divl	%r15d
	movl	%eax, %ecx
LBB0_45:
	xorl	%edx, %edx
LBB0_46:
	movl	%ecx, -92(%rbp)
	movq	-104(%rbp), %r8
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_printf
	cmpl	$0, -144(%rbp)
	jne	LBB0_47
## %bb.48:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	jmp	LBB0_49
LBB0_47:
	movq	_PF_INET6@GOTPCREL(%rip), %rax
LBB0_49:
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, -112(%rbp)
	cmpl	$-1, %eax
	je	LBB0_50
## %bb.51:
	leaq	-144(%rbp), %rdi
	callq	_timing_loop
LBB0_52:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_37
LBB0_50:
	leaq	L_.str.5(%rip), %rdi
LBB0_37:
	callq	_perror
	movl	$-1, %eax
	jmp	LBB0_52
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't resolv %s\n"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
L_.str.1:                               ## @.str.1
	.asciz	"payloadsize > 32768\n"

	.comm	_MAX_RATE,8,3                   ## @MAX_RATE
L_.str.2:                               ## @.str.2
	.asciz	"packet rate at most %d\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Sending packet of payload size %ld every %jd.%09lds for %ld seconds\n"

	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_PF_INET,4,2                    ## @PF_INET
L_.str.5:                               ## @.str.5
	.asciz	"socket"

.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, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #40
	mov	w1, #96
	bl	_bzero
	cmp	w20, #6
	b.eq	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x0, [x19, #8]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x1, #0
	bl	_getaddrinfo
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_34
LBB0_4:
	ldr	x20, [sp, #8]
	cbz	x20, LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _AF_INET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
Lloh11:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x8]
	mov	x8, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	cmp	x11, x9
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x11, x10
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, #8]
	str	x8, [sp, #8]
	cbnz	x8, LBB0_6
LBB0_9:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_10:
	add	x9, sp, #40
	add	x0, x9, #64
	ldp	w2, w1, [x8, #16]
	bl	_memcpy
	str	wzr, [sp, #40]
	b	LBB0_12
LBB0_11:
	add	x9, sp, #40
	add	x0, x9, #80
	ldp	w2, w1, [x8, #16]
	bl	_memcpy
	mov	w8, #1
	str	w8, [sp, #40]
LBB0_12:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.13:
	mov	x0, x20
	bl	_freeaddrinfo
	ldr	x0, [x19, #16]
	sub	x1, x29, #40
	mov	w2, #10
	bl	_strtoul
	mov	x20, x0
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.14:
	cmp	x20, #16, lsl #12               ; =65536
	b.lt	LBB0_16
LBB0_15:
	bl	_usage
LBB0_16:
	ldur	x21, [x29, #-40]
	ldrb	w8, [x21]
	cbz	w8, LBB0_19
; %bb.17:
	cmp	w8, #45
	b.eq	LBB0_19
; %bb.18:
	bl	_usage
LBB0_19:
	ldr	w22, [sp, #40]
	mov	x0, x20
	bl	_htons
	cmp	w22, #0
	mov	w8, #88
	mov	w9, #64
	csel	x8, x9, x8, eq
	add	x9, sp, #40
	str	x0, [x9, x8]
	stp	x20, x20, [sp, #48]
	ldrb	w8, [x21]
	cmp	w8, #45
	b.ne	LBB0_24
; %bb.20:
	add	x0, x21, #1
	sub	x1, x29, #40
	mov	w2, #10
	bl	_strtoul
	mov	x20, x0
	cmp	x0, #16, lsl #12                ; =65536
	b.ge	LBB0_22
; %bb.21:
	ldr	x8, [sp, #48]
	cmp	x8, x20
	b.le	LBB0_23
LBB0_22:
	bl	_usage
LBB0_23:
	str	x20, [sp, #56]
LBB0_24:
	ldr	x0, [x19, #24]
	sub	x1, x29, #40
	mov	w2, #10
	bl	_strtoul
	mov	x20, x0
	tbnz	x0, #63, LBB0_26
; %bb.25:
	ldur	x8, [x29, #-40]
	ldrb	w8, [x8]
	cbz	w8, LBB0_27
LBB0_26:
	bl	_usage
LBB0_27:
	cmp	x20, #8, lsl #12                ; =32768
	b.le	LBB0_29
; %bb.28:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_34
LBB0_29:
	str	x20, [sp, #64]
	ldr	x0, [x19, #32]
	sub	x1, x29, #40
	mov	w2, #10
	bl	_strtoul
	mov	x21, x0
	tbnz	x0, #63, LBB0_31
; %bb.30:
	ldur	x8, [x29, #-40]
	ldrb	w8, [x8]
	cbz	w8, LBB0_32
LBB0_31:
	bl	_usage
LBB0_32:
Lloh24:
	adrp	x8, _MAX_RATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_RATE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ge	LBB0_37
; %bb.33:
Lloh27:
	adrp	x9, _stderr@GOTPAGE
Lloh28:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_34:
	bl	_fprintf
LBB0_35:
	mov	w0, #-1
LBB0_36:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_37:
	ldr	x0, [x19, #40]
	sub	x1, x29, #40
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #80]
	ldur	x8, [x29, #-40]
	ldrb	w8, [x8]
	cbz	w8, LBB0_39
; %bb.38:
	bl	_usage
LBB0_39:
	mov	x0, x20
	bl	_malloc
	str	x0, [sp, #96]
	cbz	x0, LBB0_47
; %bb.40:
	mov	x1, x20
	bl	_bzero
	cmp	x21, #1
	b.eq	LBB0_43
; %bb.41:
	cbnz	x21, LBB0_44
; %bb.42:
	mov	w3, #0
	mov	w2, #0
	str	wzr, [sp, #88]
	b	LBB0_45
LBB0_43:
	mov	w3, #0
	mov	w2, #1
	str	w2, [sp, #88]
	b	LBB0_45
LBB0_44:
	mov	w2, #0
	str	wzr, [sp, #88]
	mov	w8, #51712
	movk	w8, #15258, lsl #16
	sdiv	x3, x8, x21
LBB0_45:
	str	w3, [sp, #92]
	ldr	x4, [sp, #80]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_printf
	ldr	w8, [sp, #40]
Lloh34:
	adrp	x9, _PF_INET@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PF_INET@GOTPAGEOFF]
Lloh36:
	adrp	x10, _PF_INET6@GOTPAGE
Lloh37:
	ldr	x10, [x10, _PF_INET6@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [sp, #72]
	cmn	w0, #1
	b.eq	LBB0_48
; %bb.46:
	add	x0, sp, #40
	bl	_timing_loop
	b	LBB0_36
LBB0_47:
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_49
LBB0_48:
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_49:
	bl	_perror
	b	LBB0_35
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't resolv %s\n"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
l_.str.1:                               ; @.str.1
	.asciz	"payloadsize > 32768\n"

	.comm	_MAX_RATE,8,3                   ; @MAX_RATE
l_.str.2:                               ; @.str.2
	.asciz	"packet rate at most %d\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Sending packet of payload size %ld every %jd.%09lds for %ld seconds\n"

	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_PF_INET,4,2                    ; @PF_INET
l_.str.5:                               ; @.str.5
	.asciz	"socket"

.subsections_via_symbols
