	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function own
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x408f400000000000              ## double 1000
LCPI0_2:
	.quad	0x3feccccccccccccd              ## double 0.90000000000000002
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_own
	.p2align	4, 0x90
_own:                                   ## @own
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_pps@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm2, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	leal	(%rax,%rax), %ecx
	xorl	%r15d, %r15d
	cmpl	$5001, %eax                     ## imm = 0x1389
	leal	(%rcx,%rcx,4), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %ecx
	cmovgel	%eax, %ecx
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_poll_rate@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm2
	movsd	%xmm2, -120(%rbp)               ## 8-byte Spill
	setl	%r12b
	movq	$0, -152(%rbp)
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	movl	%eax, -160(%rbp)
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	cvttsd2si	-120(%rbp), %r13d       ## 8-byte Folded Reload
	testl	%r13d, %r13d
	jle	LBB0_2
## %bb.6:
	movb	%r12b, %r15b
	leal	(%r15,%r15,8), %r12d
	incl	%r12d
	leaq	-112(%rbp), %r15
	movl	%r13d, -124(%rbp)               ## 4-byte Spill
	movl	%r12d, -120(%rbp)               ## 4-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	decl	%r13d
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$6, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movl	$4, %r9d
	callq	_sendto
	cmpl	$6, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	decl	%r12d
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	callq	_nanosleep
	movl	-120(%rbp), %r12d               ## 4-byte Reload
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	callq	_own.cold.2
	jmp	LBB0_4
LBB0_2:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_14
LBB0_8:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_4
LBB0_13:
	movl	-124(%rbp), %eax                ## 4-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
LBB0_14:
	movsd	%xmm0, -120(%rbp)               ## 8-byte Spill
	leaq	-136(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.16:
	movsd	-136(%rbp), %xmm1               ## xmm1 = mem[0],zero
	subsd	-144(%rbp), %xmm1
	movsd	-120(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	leaq	L_.str.3(%rip), %rdi
	movb	$1, %al
	callq	_printf
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.5:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	callq	_own.cold.1
	jmp	LBB0_4
LBB0_15:
	callq	_own.cold.3
	jmp	LBB0_4
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function own.cold.1
_own.cold.1:                            ## @own.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function own.cold.2
_own.cold.2:                            ## @own.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function own.cold.3
_own.cold.3:                            ## @own.cold.3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pps,8,3                        ## @pps
	.comm	_poll_rate,8,3                  ## @poll_rate
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gettimeofday()"

L_.str.2:                               ## @.str.2
	.asciz	"nanosleep()"

L_.str.3:                               ## @.str.3
	.asciz	"Sent %.03f p/s\n"

L_str:                                  ## @str
	.asciz	"messed up a bit"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_own                            ; -- Begin function own
	.p2align	2
_own:                                   ; @own
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x1
	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, #-72]
Lloh3:
	adrp	x8, _pps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pps@GOTPAGEOFF]
Lloh5:
	ldr	d8, [x8]
	fmov	d0, #1.00000000
	fdiv	d0, d0, d8
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	add	w9, w8, w8, lsl #2
	lsl	w9, w9, #1
	scvtf	d0, w9
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	movk	x9, #16364, lsl #48
	fmov	d1, x9
	fmul	d0, d0, d1
	fcvtzs	w9, d0
	mov	w10, #5001
	cmp	w8, w10
	csel	w8, w9, w8, lt
	mov	w9, #10
Lloh6:
	adrp	x10, _poll_rate@GOTPAGE
Lloh7:
	ldr	x10, [x10, _poll_rate@GOTPAGEOFF]
	csinc	w21, w9, wzr, lt
Lloh8:
	ldr	d9, [x10]
	str	xzr, [sp, #16]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [sp, #8]
	add	x0, sp, #32
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.1:
	fmul	d0, d8, d9
	fcvtzs	w22, d0
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x23, x22
	mov	x24, x21
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	w23, w23, #1
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #6
	mov	w3, #0
	mov	x4, x19
	mov	w5, #4
	bl	_sendto
	cmp	w0, #6
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w24, w24, #1
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, #0
	bl	_nanosleep
	mov	x24, x21
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.7:
	bl	_own.cold.2
LBB0_8:
	movi	d8, #0000000000000000
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_13
LBB0_10:
	ucvtf	d8, w22
LBB0_11:
	add	x0, sp, #24
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.12:
	ldp	d0, d1, [sp, #24]
	fsub	d0, d0, d1
	fdiv	d0, d8, d0
	str	d0, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	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
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_15:
	bl	_own.cold.1
LBB0_16:
	bl	___stack_chk_fail
LBB0_17:
	bl	_own.cold.3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function own.cold.1
_own.cold.1:                            ; @own.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function own.cold.2
_own.cold.2:                            ; @own.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function own.cold.3
_own.cold.3:                            ; @own.cold.3
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0:                   ; @OUTLINED_FUNCTION_0 Thunk
	.cfi_startproc
; %bb.0:
	mov	w0, #1
	b	_exit
	.cfi_endproc
                                        ; -- End function
	.comm	_pps,8,3                        ; @pps
	.comm	_poll_rate,8,3                  ; @poll_rate
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gettimeofday()"

l_.str.2:                               ; @.str.2
	.asciz	"nanosleep()"

l_.str.3:                               ; @.str.3
	.asciz	"Sent %.03f p/s\n"

l_str:                                  ; @str
	.asciz	"messed up a bit"

.subsections_via_symbols
