	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jle	LBB0_1
## %bb.2:
	movq	8(%rsi), %rdi
	callq	_atoi
	movl	%eax, %esi
	movq	_pps@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	jmp	LBB0_3
LBB0_1:
	movq	_pps@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_PF_INET@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)
	movl	$6969, %edi                     ## imm = 0x1B39
	callq	_htons
	movl	%eax, -52(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_6
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_6:
	movl	%ebx, %r14d
	incl	%r14d
	movb	$1, %r13b
	leaq	-64(%rbp), %r15
	leaq	-72(%rbp), %r12
	jmp	LBB0_7
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-56(%rbp), %edi
	callq	_inet_ntoa
	leaq	-96(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strcpy
	xorl	%r13d, %r13d
	leaq	L_.str.7(%rip), %rdi
	leaq	-96(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.8(%rip), %rdi
	leaq	-96(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	callq	_own
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_assert
	movl	$12, -68(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$10000, -64(%rbp)               ## imm = 0x2710
	movq	%r12, %rdi
	callq	_FD_ZERO
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_FD_SET
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_select
	cmpl	$1, %eax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_18
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	leaq	-160(%rbp), %rsi
	movl	$64, %edx
	xorl	%ecx, %ecx
	leaq	-56(%rbp), %r8
	leaq	-68(%rbp), %r9
	callq	_recvfrom
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$5, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	-160(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r13b
	movb	$1, %r13b
	jne	LBB0_7
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.8(%rip), %rdi
	leaq	-96(%rbp), %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	callq	_own
	leaq	L_str(%rip), %rdi
	callq	_puts
	movb	$1, %r13b
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
LBB0_11:
	callq	_perror
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pps,4,2                        ## @pps
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packets per second=%d\n"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
L_.str.1:                               ## @.str.1
	.asciz	"socket()"

	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
L_.str.2:                               ## @.str.2
	.asciz	"bind()"

L_.str.3:                               ## @.str.3
	.asciz	"select()"

L_.str.4:                               ## @.str.4
	.asciz	"read died"

L_.str.5:                               ## @.str.5
	.asciz	"sorbo"

L_.str.7:                               ## @.str.7
	.asciz	"Got signal from %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Sending stuff to %s\n"

L_str:                                  ## @str
	.asciz	"Stopping send"

.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, #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
	cmp	w0, #1
	b.le	LBB0_2
; %bb.1:
	ldr	x0, [x1, #8]
	bl	_atoi
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _pps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pps@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _pps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pps@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_3:
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh8:
	adrp	x20, _PF_INET@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PF_INET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	ldr	w8, [x20]
	stur	w8, [x29, #-88]
	mov	w0, #6969
	bl	_htons
Lloh18:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w8, w0, [x29, #-96]
	mov	w25, #12
	sub	x1, x29, #96
	mov	x0, x19
	mov	w2, #12
	bl	_bind
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_7:
	add	w20, w19, #1
	mov	w8, #1
	mov	w26, #10000
Lloh23:
	adrp	x21, l_.str.5@PAGE
Lloh24:
	add	x21, x21, l_.str.5@PAGEOFF
	add	x27, sp, #19
Lloh25:
	adrp	x22, l_.str.7@PAGE
Lloh26:
	add	x22, x22, l_.str.7@PAGEOFF
Lloh27:
	adrp	x23, l_.str.8@PAGE
Lloh28:
	add	x23, x23, l_.str.8@PAGEOFF
Lloh29:
	adrp	x24, l_str@PAGE
Lloh30:
	add	x24, x24, l_str@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldur	w0, [x29, #-96]
	bl	_inet_ntoa
	mov	x1, x0
	add	x0, sp, #19
	bl	_strcpy
	str	x27, [sp]
	mov	x0, x22
	bl	_printf
	str	x27, [sp]
	mov	x0, x23
	bl	_printf
	sub	x1, x29, #96
	mov	x0, x19
	bl	_own
	mov	w8, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	mov	w0, #1
	bl	_assert
	stur	w25, [x29, #-100]
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w26, [sp, #40]
	add	x0, sp, #36
	bl	_FD_ZERO
	add	x1, sp, #36
	mov	x0, x19
	bl	_FD_SET
	add	x1, sp, #36
	add	x4, sp, #40
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	w0, #1
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmn	w0, #1
	b.ne	LBB0_15
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #36
	mov	x0, x19
	bl	_FD_ISSET
	cbz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #44
	sub	x4, x29, #96
	sub	x5, x29, #100
	mov	x0, x19
	mov	w2, #64
	mov	w3, #0
	bl	_recvfrom
	tbnz	w0, #31, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w0, #5
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #44
	mov	x1, x21
	mov	w2, #5
	bl	_memcmp
	cbz	x0, LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #1
	tbnz	w28, #0, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x27, [sp]
	mov	x0, x23
	bl	_printf
	sub	x1, x29, #96
	mov	x0, x19
	bl	_own
	mov	x0, x24
	bl	_puts
	mov	w8, #1
	b	LBB0_9
LBB0_17:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_19:
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_pps,4,2                        ; @pps
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packets per second=%d\n"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
l_.str.1:                               ; @.str.1
	.asciz	"socket()"

	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
l_.str.2:                               ; @.str.2
	.asciz	"bind()"

l_.str.3:                               ; @.str.3
	.asciz	"select()"

l_.str.4:                               ; @.str.4
	.asciz	"read died"

l_.str.5:                               ; @.str.5
	.asciz	"sorbo"

l_.str.7:                               ; @.str.7
	.asciz	"Got signal from %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Sending stuff to %s\n"

l_str:                                  ; @str
	.asciz	"Stopping send"

.subsections_via_symbols
