	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r13d, %r13d
	cmpl	$2, %edi
	jl	LBB0_2
## %bb.1:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_atoi
	movl	%eax, %r13d
LBB0_2:
	leal	1(%r13), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rdi
	callq	_sprintf
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_SAY
	xorl	%eax, %eax
	callq	_rumpclient_init
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	testl	%r13d, %r13d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	xorl	%eax, %eax
	callq	_rump_sys_getpid
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.5:
	movq	_canreturn@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_wrk@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_P2_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leaq	-124(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	movq	_errno@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_7:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	movl	$37, -116(%rbp)
	movq	_P2_1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-116(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_rump_sys_write
	movl	-124(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	movq	_P1_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_rump_sys_read
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r15), %rax
	movq	_EBADF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_9:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_10:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	leaq	-120(%rbp), %rsi
	movl	%r14d, %edi
	callq	_getproc
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	movslq	-120(%rbp), %rdx
	cmpq	$2, %rdx
	je	LBB0_12
## %bb.11:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_12:
	cmpl	$11, %r13d
	jge	LBB0_50
## %bb.13:
	movq	_P2_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rump_sys_close
	movl	(%r12), %edi
	callq	_rump_sys_close
LBB0_14:
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	leaq	-88(%rbp), %rdi
	callq	_rump_sys_pipe
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.14(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_16:
	movl	-88(%rbp), %edx
	movl	-84(%rbp), %ecx
	movq	_P1_0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_18
## %bb.17:
	movq	_P1_1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_19
LBB0_18:
	leaq	L_.str.15(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_19:
	leaq	-96(%rbp), %rdi
	callq	_rump_sys_pipe
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.14(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_21:
	movl	-96(%rbp), %eax
	movq	_P2_0@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.22:
	movl	-92(%rbp), %eax
	movq	_P2_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_24
LBB0_23:
	leaq	L_.str.16(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_24:
	movl	%r14d, -128(%rbp)               ## 4-byte Spill
	movl	-88(%rbp), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_rump_sys_fcntl
	cmpl	$-1, %eax
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.17(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_26:
	movl	-84(%rbp), %edi
	movl	(%r14), %esi
	movl	(%rbx), %edx
	callq	_rump_sys_fcntl
	cmpl	$-1, %eax
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.17(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_28:
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	movl	$0, -116(%rbp)
	movq	_NTHR@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_38
## %bb.29:
	movq	_wrk@GOTPCREL(%rip), %r12
	leaq	-124(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %r15
	leaq	L_.str.19(%rip), %r13
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	-116(%rbp), %ecx
	incl	%ecx
	movl	%ecx, -116(%rbp)
	movl	(%r14), %eax
	cmpl	%eax, %ecx
	jge	LBB0_33
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movslq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-116(%rbp), %edx
	movl	$1, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_32
LBB0_33:
	movl	$0, -116(%rbp)
	testl	%eax, %eax
	jle	LBB0_38
## %bb.34:
	leaq	-124(%rbp), %rbx
	leaq	L_.str.20(%rip), %r13
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_35 Depth=1
	movl	-116(%rbp), %eax
	incl	%eax
	movl	%eax, -116(%rbp)
	cmpl	(%r14), %eax
	jge	LBB0_38
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movslq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	-116(%rbp), %edx
	movl	$1, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_37
LBB0_38:
	leaq	L_.str.21(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	leaq	-120(%rbp), %rsi
	movl	-128(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	callq	_getproc
	leaq	L_.str.22(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	movl	(%r14), %eax
	addl	%eax, %eax
	addl	$2, %eax
	cmpl	%eax, -120(%rbp)
	je	LBB0_41
## %bb.39:
	leaq	-120(%rbp), %r13
	leaq	L_.str.22(%rip), %r15
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_usleep
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_getproc
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SAY
	movl	(%r14), %eax
	addl	%eax, %eax
	addl	$2, %eax
	cmpl	%eax, -120(%rbp)
	jne	LBB0_40
LBB0_41:
	leaq	L_.str.23(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	movl	$0, -116(%rbp)
	cmpl	$0, (%r14)
	jle	LBB0_46
## %bb.42:
	movq	_wrk@GOTPCREL(%rip), %r12
	leaq	-124(%rbp), %r13
	movq	_errno@GOTPCREL(%rip), %rbx
	leaq	L_.str.24(%rip), %r15
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_43 Depth=1
	movl	-116(%rbp), %eax
	incl	%eax
	movl	%eax, -116(%rbp)
	movl	(%r14), %ecx
	leal	(%rcx,%rcx,2), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_46
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movslq	-88(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movl	-116(%rbp), %edx
	movl	$1, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_45
LBB0_46:
	leaq	L_.str.25(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rdi, -80(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
	leaq	-80(%rbp), %rsi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	callq	_rumpclient_exec
	cmpl	$-1, %eax
	jne	LBB0_48
## %bb.47:
	leaq	L_.str.26(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_48:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_51
## %bb.49:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	callq	___stack_chk_fail
LBB0_50:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_SAY
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"execd: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"init execd"

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

L_.str.4:                               ## @.str.4
	.asciz	"rumpclient_init finished.\n"

	.comm	_canreturn,4,2                  ## @canreturn
	.comm	_wrk,4,2                        ## @wrk
	.comm	_P2_0,4,2                       ## @P2_0
	.comm	_errno,8,3                      ## @errno
L_.str.5:                               ## @.str.5
	.asciz	"exec pthread_create"

L_.str.6:                               ## @.str.6
	.asciz	"startup pthread_create finished.\n"

	.comm	_P2_1,4,2                       ## @P2_1
L_.str.7:                               ## @.str.7
	.asciz	"startup pthread_join finished.\n"

	.comm	_P1_0,4,2                       ## @P1_0
	.comm	_EBADF,8,3                      ## @EBADF
L_.str.8:                               ## @.str.8
	.asciz	"post-exec cloexec works"

L_.str.9:                               ## @.str.9
	.asciz	"startup rump_sys_read finished.\n"

L_.str.10:                              ## @.str.10
	.asciz	"startup getproc finished.\n"

L_.str.11:                              ## @.str.11
	.asciz	"invalid nlwps: %lld"

L_.str.12:                              ## @.str.12
	.asciz	"done.\n"

L_.str.13:                              ## @.str.13
	.asciz	"making pipes...\n"

L_.str.14:                              ## @.str.14
	.asciz	"pipe1"

	.comm	_P1_1,4,2                       ## @P1_1
L_.str.15:                              ## @.str.15
	.asciz	"p1 assumptions failed %d %d"

L_.str.16:                              ## @.str.16
	.asciz	"p2 assumptions failed"

	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
L_.str.17:                              ## @.str.17
	.asciz	"cloexec"

L_.str.18:                              ## @.str.18
	.asciz	"making threads...\n"

	.comm	_NTHR,4,2                       ## @NTHR
L_.str.19:                              ## @.str.19
	.asciz	"pthread_create 1 %d"

L_.str.20:                              ## @.str.20
	.asciz	"pthread_create 2 %d"

L_.str.21:                              ## @.str.21
	.asciz	"waiting for threads to start...\n"

L_.str.22:                              ## @.str.22
	.asciz	"getproc finished.\n"

L_.str.23:                              ## @.str.23
	.asciz	"making some more threads start...\n"

L_.str.24:                              ## @.str.24
	.asciz	"pthread_create 3 %d"

L_.str.25:                              ## @.str.25
	.asciz	"calling exec...\n"

L_.str.26:                              ## @.str.26
	.asciz	"exec"

.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	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
	bl	_atoi
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	add	w2, w22, #1
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #32
	bl	_sprintf
	str	x22, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SAY
	bl	_rumpclient_init
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w22, #0
	csel	x1, x9, x8, eq
	mov	w0, #1
	bl	_err
LBB0_5:
	bl	_rump_sys_getpid
	mov	x21, x0
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_SAY
Lloh13:
	adrp	x27, _P1_0@GOTPAGE
Lloh14:
	ldr	x27, [x27, _P1_0@GOTPAGEOFF]
Lloh15:
	adrp	x26, _P2_0@GOTPAGE
Lloh16:
	ldr	x26, [x26, _P2_0@GOTPAGEOFF]
Lloh17:
	adrp	x23, _wrk@GOTPAGE
Lloh18:
	ldr	x23, [x23, _wrk@GOTPAGEOFF]
Lloh19:
	adrp	x24, _errno@GOTPAGE
Lloh20:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh21:
	adrp	x25, _P2_1@GOTPAGE
Lloh22:
	ldr	x25, [x25, _P2_1@GOTPAGEOFF]
	cbz	w22, LBB0_15
; %bb.6:
Lloh23:
	adrp	x8, _canreturn@GOTPAGE
Lloh24:
	ldr	x8, [x8, _canreturn@GOTPAGEOFF]
	mov	w9, #1
Lloh25:
	str	w9, [x8]
	ldr	w2, [x23]
	ldrsw	x3, [x26]
	add	x0, sp, #20
	mov	x1, #0
	bl	_pthread_create
	str	x0, [x24]
	cbz	x0, LBB0_8
; %bb.7:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_SAY
	mov	w8, #37
	str	w8, [sp, #16]
	ldr	w0, [x25]
	add	x1, sp, #16
	mov	w2, #4
	bl	_rump_sys_write
	ldr	w0, [sp, #20]
	mov	x1, #0
	bl	_pthread_join
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_SAY
	ldr	w0, [x27]
	add	x1, sp, #16
	mov	w2, #4
	bl	_rump_sys_read
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x24]
Lloh32:
	adrp	x9, _EBADF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EBADF@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_10:
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_11:
Lloh37:
	adrp	x0, l_.str.9@PAGE
Lloh38:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_SAY
	add	x1, sp, #24
	mov	x0, x21
	bl	_getproc
Lloh39:
	adrp	x0, l_.str.10@PAGE
Lloh40:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_SAY
	ldrsw	x8, [sp, #24]
	cmp	w8, #2
	b.eq	LBB0_13
; %bb.12:
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.11@PAGE
Lloh42:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	cmp	w22, #11
	b.ge	LBB0_51
; %bb.14:
	ldr	w0, [x26]
	bl	_rump_sys_close
	ldr	w0, [x25]
	bl	_rump_sys_close
LBB0_15:
Lloh43:
	adrp	x0, l_.str.13@PAGE
Lloh44:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_SAY
	add	x0, sp, #56
	bl	_rump_sys_pipe
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:
Lloh45:
	adrp	x1, l_.str.14@PAGE
Lloh46:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_17:
	ldr	w10, [x27]
	ldp	w8, w9, [sp, #56]
Lloh47:
	adrp	x11, _P1_1@GOTPAGE
Lloh48:
	ldr	x11, [x11, _P1_1@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x11]
	cmp	w8, w10
	ccmp	w9, w11, #0, eq
	b.eq	LBB0_19
; %bb.18:
	stp	x8, x9, [sp]
Lloh50:
	adrp	x1, l_.str.15@PAGE
Lloh51:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_19:
	add	x0, sp, #48
	bl	_rump_sys_pipe
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.20:
Lloh52:
	adrp	x1, l_.str.14@PAGE
Lloh53:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_21:
	ldr	w8, [sp, #48]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.22:
	ldr	w8, [sp, #52]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_24
LBB0_23:
Lloh54:
	adrp	x1, l_.str.16@PAGE
Lloh55:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_24:
	ldr	w0, [sp, #56]
Lloh56:
	adrp	x22, _F_SETFD@GOTPAGE
Lloh57:
	ldr	x22, [x22, _F_SETFD@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh58:
	adrp	x25, _FD_CLOEXEC@GOTPAGE
Lloh59:
	ldr	x25, [x25, _FD_CLOEXEC@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_rump_sys_fcntl
	cmn	w0, #1
	b.ne	LBB0_26
; %bb.25:
Lloh60:
	adrp	x1, l_.str.17@PAGE
Lloh61:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_26:
	ldr	w0, [sp, #60]
	ldr	w1, [x22]
	ldr	w2, [x25]
	bl	_rump_sys_fcntl
	cmn	w0, #1
	b.ne	LBB0_28
; %bb.27:
Lloh62:
	adrp	x1, l_.str.17@PAGE
Lloh63:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_28:
Lloh64:
	adrp	x0, l_.str.18@PAGE
Lloh65:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_SAY
	str	wzr, [sp, #16]
Lloh66:
	adrp	x25, _NTHR@GOTPAGE
Lloh67:
	ldr	x25, [x25, _NTHR@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_38
; %bb.29:
Lloh68:
	adrp	x22, l_.str.19@PAGE
Lloh69:
	add	x22, x22, l_.str.19@PAGEOFF
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	w8, [sp, #16]
	add	w9, w8, #1
	str	w9, [sp, #16]
	ldr	w8, [x25]
	cmp	w9, w8
	b.ge	LBB0_33
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	ldrsw	x3, [sp, #56]
	add	x0, sp, #20
	mov	x1, #0
	bl	_pthread_create
	str	x0, [x24]
	cbz	x0, LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w8, [sp, #16]
	str	x8, [sp]
	mov	w0, #1
	mov	x1, x22
	bl	_err
	b	LBB0_30
LBB0_33:
	str	wzr, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_38
; %bb.34:
Lloh70:
	adrp	x22, l_.str.20@PAGE
Lloh71:
	add	x22, x22, l_.str.20@PAGEOFF
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	ldr	w8, [sp, #16]
	add	w8, w8, #1
	str	w8, [sp, #16]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ge	LBB0_38
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	ldrsw	x3, [sp, #48]
	add	x0, sp, #20
	mov	x1, #0
	bl	_pthread_create
	str	x0, [x24]
	cbz	x0, LBB0_35
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	w8, [sp, #16]
	str	x8, [sp]
	mov	w0, #1
	mov	x1, x22
	bl	_err
	b	LBB0_35
LBB0_38:
Lloh72:
	adrp	x0, l_.str.21@PAGE
Lloh73:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_SAY
	add	x1, sp, #24
	mov	x0, x21
	bl	_getproc
Lloh74:
	adrp	x0, l_.str.22@PAGE
Lloh75:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_SAY
	ldr	w8, [sp, #24]
	ldr	w9, [x25]
	lsl	w9, w9, #1
	add	w9, w9, #2
	cmp	w8, w9
	b.eq	LBB0_41
; %bb.39:
Lloh76:
	adrp	x22, l_.str.22@PAGE
Lloh77:
	add	x22, x22, l_.str.22@PAGEOFF
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #10000
	bl	_usleep
	add	x1, sp, #24
	mov	x0, x21
	bl	_getproc
	mov	x0, x22
	bl	_SAY
	ldr	w8, [sp, #24]
	ldr	w9, [x25]
	lsl	w9, w9, #1
	add	w9, w9, #2
	cmp	w8, w9
	b.ne	LBB0_40
LBB0_41:
Lloh78:
	adrp	x0, l_.str.23@PAGE
Lloh79:
	add	x0, x0, l_.str.23@PAGEOFF
	bl	_SAY
	str	wzr, [sp, #16]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.42:
Lloh80:
	adrp	x21, l_.str.24@PAGE
Lloh81:
	add	x21, x21, l_.str.24@PAGEOFF
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	w8, [sp, #16]
	add	w8, w8, #1
	str	w8, [sp, #16]
	ldr	w9, [x25]
	add	w9, w9, w9, lsl #1
	cmp	w8, w9
	b.ge	LBB0_46
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	ldrsw	x3, [sp, #56]
	add	x0, sp, #20
	mov	x1, #0
	bl	_pthread_create
	str	x0, [x24]
	cbz	x0, LBB0_43
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	w8, [sp, #16]
	str	x8, [sp]
	mov	w0, #1
	mov	x1, x21
	bl	_err
	b	LBB0_43
LBB0_46:
Lloh82:
	adrp	x0, l_.str.25@PAGE
Lloh83:
	add	x0, x0, l_.str.25@PAGEOFF
	bl	_SAY
	ldr	x0, [x20]
	add	x8, sp, #32
	stp	x0, x8, [sp, #64]
	str	xzr, [sp, #80]
	add	x1, sp, #64
	mov	x2, x19
	bl	_rumpclient_exec
	cmn	w0, #1
	b.ne	LBB0_48
; %bb.47:
Lloh84:
	adrp	x1, l_.str.26@PAGE
Lloh85:
	add	x1, x1, l_.str.26@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_48:
	ldr	x8, [sp, #88]
Lloh86:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh87:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.49:
	mov	w0, #0
	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	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_50:
	bl	___stack_chk_fail
LBB0_51:
Lloh89:
	adrp	x0, l_.str.12@PAGE
Lloh90:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_SAY
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"execd: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"init execd"

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

l_.str.4:                               ; @.str.4
	.asciz	"rumpclient_init finished.\n"

	.comm	_canreturn,4,2                  ; @canreturn
	.comm	_wrk,4,2                        ; @wrk
	.comm	_P2_0,4,2                       ; @P2_0
	.comm	_errno,8,3                      ; @errno
l_.str.5:                               ; @.str.5
	.asciz	"exec pthread_create"

l_.str.6:                               ; @.str.6
	.asciz	"startup pthread_create finished.\n"

	.comm	_P2_1,4,2                       ; @P2_1
l_.str.7:                               ; @.str.7
	.asciz	"startup pthread_join finished.\n"

	.comm	_P1_0,4,2                       ; @P1_0
	.comm	_EBADF,8,3                      ; @EBADF
l_.str.8:                               ; @.str.8
	.asciz	"post-exec cloexec works"

l_.str.9:                               ; @.str.9
	.asciz	"startup rump_sys_read finished.\n"

l_.str.10:                              ; @.str.10
	.asciz	"startup getproc finished.\n"

l_.str.11:                              ; @.str.11
	.asciz	"invalid nlwps: %lld"

l_.str.12:                              ; @.str.12
	.asciz	"done.\n"

l_.str.13:                              ; @.str.13
	.asciz	"making pipes...\n"

l_.str.14:                              ; @.str.14
	.asciz	"pipe1"

	.comm	_P1_1,4,2                       ; @P1_1
l_.str.15:                              ; @.str.15
	.asciz	"p1 assumptions failed %d %d"

l_.str.16:                              ; @.str.16
	.asciz	"p2 assumptions failed"

	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
l_.str.17:                              ; @.str.17
	.asciz	"cloexec"

l_.str.18:                              ; @.str.18
	.asciz	"making threads...\n"

	.comm	_NTHR,4,2                       ; @NTHR
l_.str.19:                              ; @.str.19
	.asciz	"pthread_create 1 %d"

l_.str.20:                              ; @.str.20
	.asciz	"pthread_create 2 %d"

l_.str.21:                              ; @.str.21
	.asciz	"waiting for threads to start...\n"

l_.str.22:                              ; @.str.22
	.asciz	"getproc finished.\n"

l_.str.23:                              ; @.str.23
	.asciz	"making some more threads start...\n"

l_.str.24:                              ; @.str.24
	.asciz	"pthread_create 3 %d"

l_.str.25:                              ; @.str.25
	.asciz	"calling exec...\n"

l_.str.26:                              ; @.str.26
	.asciz	"exec"

.subsections_via_symbols
