	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function juggle
_juggle:                                ## @juggle
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_clock_gettime
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	movq	_NUMCYCLES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	_NUMCYCLES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_19
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_5
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	decl	%ebx
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	callq	_message_send
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	$-1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	testl	%eax, %eax
	jg	LBB0_9
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	decl	%r14d
	je	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	callq	_message_recv
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$-1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%r15d, %edi
	callq	_message_send
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$-1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	decl	%ebx
	je	LBB0_18
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	callq	_message_recv
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	$-1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
	jmp	LBB0_17
LBB0_19:
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_clock_gettime
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_21:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rdi, %rdx
	callq	_timespecsub
	movl	-48(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"juggle: clock_gettime"

	.comm	_NUMCYCLES,4,2                  ## @NUMCYCLES
L_.str.1:                               ## @.str.1
	.asciz	"message_send fd1"

L_.str.2:                               ## @.str.2
	.asciz	"message_recv fd2"

L_.str.3:                               ## @.str.3
	.asciz	"message_send fd2"

L_.str.4:                               ## @.str.4
	.asciz	"message_recv fd1"

	.no_dead_strip	_juggle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function juggle
_juggle:                                ; @juggle
	.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	x26, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_clock_gettime
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
Lloh5:
	adrp	x27, _NUMCYCLES@GOTPAGE
Lloh6:
	ldr	x27, [x27, _NUMCYCLES@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.3:
	mov	w28, #0
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh9:
	adrp	x23, l_.str.2@PAGE
Lloh10:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh11:
	adrp	x24, l_.str.3@PAGE
Lloh12:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh13:
	adrp	x25, l_.str.4@PAGE
Lloh14:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w28, w28, #1
	ldr	w8, [x27]
	cmp	w28, w8
	b.ge	LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	mov	x19, x26
	cmp	w26, #1
	b.ge	LBB0_7
	b	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	subs	w19, w19, #1
	b.eq	LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_message_send
	tbz	x0, #63, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w0, #-1
	mov	x1, x22
	bl	_err
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x26
	cmp	w26, #1
	b.ge	LBB0_11
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	subs	w19, w19, #1
	b.eq	LBB0_15
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_message_recv
	tbz	x0, #63, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	w0, #-1
	mov	x1, x23
	bl	_err
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	bl	_message_send
	tbz	x0, #63, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	w0, #-1
	mov	x1, x24
	bl	_err
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x26
	cmp	w26, #1
	b.ge	LBB0_17
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	subs	w19, w19, #1
	b.eq	LBB0_4
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_message_recv
	tbz	x0, #63, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	w0, #-1
	mov	x1, x25
	bl	_err
	b	LBB0_16
LBB0_19:
Lloh15:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_clock_gettime
	tbz	x0, #63, LBB0_21
; %bb.20:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_21:
	add	x0, sp, #8
	mov	x1, sp
	add	x2, sp, #8
	bl	_timespecsub
	ldr	w0, [sp, #8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"juggle: clock_gettime"

	.comm	_NUMCYCLES,4,2                  ; @NUMCYCLES
l_.str.1:                               ; @.str.1
	.asciz	"message_send fd1"

l_.str.2:                               ; @.str.2
	.asciz	"message_recv fd2"

l_.str.3:                               ; @.str.3
	.asciz	"message_send fd2"

l_.str.4:                               ; @.str.4
	.asciz	"message_recv fd1"

	.no_dead_strip	_juggle
.subsections_via_symbols
