	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple
_simple:                                ## @simple
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_rump_sys_getpid
	movl	%eax, %r14d
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_rump_sys_open
	movl	%eax, -20(%rbp)
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_rump_sys_write
	cmpl	$4, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	xorl	%eax, %eax
	callq	_rumpclient_prefork
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_27
LBB0_9:
	movq	%rbx, %rdi
	callq	_rumpclient_fork_init
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_11:
	xorl	%eax, %eax
	callq	_rump_sys_getpid
	movl	%eax, %ebx
	cmpl	$1, %eax
	jg	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	cmpl	%ebx, %r14d
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_15:
	movl	-20(%rbp), %edi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_rump_sys_write
	cmpl	$4, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_17:
	movl	-20(%rbp), %edi
	callq	_rump_sys_close
	jmp	LBB0_27
LBB0_18:
	movl	-20(%rbp), %edi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_rump_sys_write
	cmpl	$4, %eax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_20:
	leaq	-24(%rbp), %rdi
	callq	_wait
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_22:
	movl	-24(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	-24(%rbp), %edi
	callq	_WEXITSTATUS
	testl	%eax, %eax
	je	LBB0_25
LBB0_24:
	movl	-24(%rbp), %edx
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_25:
	movl	-20(%rbp), %edi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_rump_sys_write
	cmpl	$4, %eax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_27:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected pid %d"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/null"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"write newlyopened /dev/null"

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

L_.str.4:                               ## @.str.4
	.asciz	"fork"

L_.str.5:                               ## @.str.5
	.asciz	"postfork init failed"

L_.str.6:                               ## @.str.6
	.asciz	"child and parent pids are equal"

L_.str.7:                               ## @.str.7
	.asciz	"write child /dev/null"

L_.str.8:                               ## @.str.8
	.asciz	"write parent /dev/null"

L_.str.9:                               ## @.str.9
	.asciz	"wait failed"

L_.str.10:                              ## @.str.10
	.asciz	"child exited with status %d"

	.no_dead_strip	_simple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple
_simple:                                ; @simple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_rump_sys_getpid
	mov	x19, x0
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	str	x19, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rump_sys_open
	str	w0, [sp, #12]
	add	x1, sp, #12
	mov	w2, #4
	bl	_rump_sys_write
	cmp	w0, #4
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	bl	_rumpclient_prefork
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.5:
	bl	_fork
	cbz	w0, LBB0_9
LBB0_6:
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.7:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_27
LBB0_8:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
	bl	_fork
	cbnz	w0, LBB0_6
LBB0_9:
	mov	x0, x20
	bl	_rumpclient_fork_init
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_11:
	bl	_rump_sys_getpid
	mov	x20, x0
	cmp	w0, #1
	b.gt	LBB0_13
; %bb.12:
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	cmp	w19, w20
	b.ne	LBB0_15
; %bb.14:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_15:
	ldr	w0, [sp, #12]
	add	x1, sp, #12
	mov	w2, #4
	bl	_rump_sys_write
	cmp	w0, #4
	b.eq	LBB0_17
; %bb.16:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_17:
	ldr	w0, [sp, #12]
	bl	_rump_sys_close
	b	LBB0_27
LBB0_18:
	ldr	w0, [sp, #12]
	add	x1, sp, #12
	mov	w2, #4
	bl	_rump_sys_write
	cmp	w0, #4
	b.eq	LBB0_20
; %bb.19:
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_20:
	add	x0, sp, #8
	bl	_wait
	cmn	w0, #1
	b.ne	LBB0_22
; %bb.21:
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_22:
	ldr	w0, [sp, #8]
	bl	_WIFEXITED
	cbz	w0, LBB0_24
; %bb.23:
	ldr	w0, [sp, #8]
	bl	_WEXITSTATUS
	cbz	w0, LBB0_25
LBB0_24:
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_25:
	ldr	w0, [sp, #12]
	add	x1, sp, #12
	mov	w2, #4
	bl	_rump_sys_write
	cmp	w0, #4
	b.eq	LBB0_27
; %bb.26:
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_27:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected pid %d"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/null"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"write newlyopened /dev/null"

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

l_.str.4:                               ; @.str.4
	.asciz	"fork"

l_.str.5:                               ; @.str.5
	.asciz	"postfork init failed"

l_.str.6:                               ; @.str.6
	.asciz	"child and parent pids are equal"

l_.str.7:                               ; @.str.7
	.asciz	"write child /dev/null"

l_.str.8:                               ; @.str.8
	.asciz	"write parent /dev/null"

l_.str.9:                               ; @.str.9
	.asciz	"wait failed"

l_.str.10:                              ; @.str.10
	.asciz	"child exited with status %d"

	.no_dead_strip	_simple
.subsections_via_symbols
