	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_AF_UNIX@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	movl	%ebx, %edi
	callq	_fcntl_tests_0
	movl	%ebx, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	movl	%ebx, %edi
	callq	_fcntl_tests_1
	movl	%ebx, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	movl	%ebx, %edi
	callq	_fcntl_tests_2
	movl	%ebx, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_CHECK
	movl	%r14d, %edi
	callq	_fcntl_tests_0
	movl	%r14d, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_sleep
LBB0_1:
	movl	%r14d, %edi
	callq	_fcntl_tests_0
	movl	%r14d, %edi
LBB0_15:
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	xorl	%edi, %edi
	callq	_exit
LBB0_4:
	movl	%r14d, %edi
	callq	_fcntl_tests_0
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_CHECK
	movl	%r14d, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pdfork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movl	-44(%rbp), %edi
	callq	_pdwait
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	%r14d, %edi
	callq	_fcntl_tests_1
	movl	%r14d, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pdfork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.6:
	movl	$1, %edi
	callq	_sleep
LBB0_7:
	movl	%r14d, %edi
	callq	_fcntl_tests_1
	xorl	%edi, %edi
	callq	_exit
LBB0_8:
	movl	%r14d, %edi
	callq	_fcntl_tests_1
	movl	-44(%rbp), %edi
	callq	_pdwait
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	%r14d, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_CHECK
	movl	%r14d, %edi
	callq	_fcntl_tests_2
	movl	%r14d, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_CHECK
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.10:
	movl	$1, %edi
	callq	_sleep
LBB0_11:
	movl	%r14d, %edi
	callq	_fcntl_tests_2
	xorl	%edi, %edi
	callq	_exit
LBB0_12:
	movl	%r14d, %edi
	callq	_fcntl_tests_2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_CHECK
	movl	%r14d, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	leaq	-40(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	jne	LBB0_16
## %bb.13:
	movl	-40(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	-36(%rbp), %edi
	callq	_fcntl_tests_recv_0
	jmp	LBB0_14
LBB0_16:
	movl	-36(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	-40(%rbp), %edi
	callq	_fcntl_tests_send_0
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_CHECK
	movl	-40(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	(%r15), %edi
	movl	(%r12), %esi
	leaq	-40(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	movq	%rax, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CHECK
	testq	%rbx, %rbx
	jne	LBB0_18
## %bb.17:
	movl	-40(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	-36(%rbp), %edi
	callq	_fcntl_tests_send_0
LBB0_14:
	movl	-36(%rbp), %edi
	jmp	LBB0_15
LBB0_18:
	movl	-36(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movl	-40(%rbp), %edi
	callq	_fcntl_tests_recv_0
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_CHECK
	movl	-40(%rbp), %edi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"1..870"

.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x21, _AF_UNIX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AF_UNIX@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	adrp	x22, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	mov	x0, x19
	bl	_fcntl_tests_0
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	mov	x0, x19
	bl	_fcntl_tests_1
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	mov	x0, x19
	bl	_fcntl_tests_2
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	bl	_fork
	mov	x20, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbz	x20, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x20
	cset	w0, eq
	bl	_CHECK
	mov	x0, x19
	bl	_fcntl_tests_0
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	bl	_fork
	mov	x20, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbnz	x20, LBB0_5
; %bb.2:
	mov	w0, #1
	bl	_sleep
LBB0_3:
	mov	x0, x19
	bl	_fcntl_tests_0
	mov	x0, x19
LBB0_4:
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	mov	w0, #0
	bl	_exit
LBB0_5:
	mov	x0, x19
	bl	_fcntl_tests_0
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x20
	cset	w0, eq
	bl	_CHECK
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	add	x0, sp, #12
	mov	w1, #0
	bl	_pdfork
	mov	x20, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbz	x20, LBB0_8
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_pdwait
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	mov	x0, x19
	bl	_fcntl_tests_1
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	add	x0, sp, #12
	mov	w1, #0
	bl	_pdfork
	mov	x20, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbnz	x20, LBB0_9
; %bb.7:
	mov	w0, #1
	bl	_sleep
LBB0_8:
	mov	x0, x19
	bl	_fcntl_tests_1
	mov	w0, #0
	bl	_exit
LBB0_9:
	mov	x0, x19
	bl	_fcntl_tests_1
	ldr	w0, [sp, #12]
	bl	_pdwait
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	bl	_fork
	mov	x20, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbz	x20, LBB0_12
; %bb.10:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x20
	cset	w0, eq
	bl	_CHECK
	mov	x0, x19
	bl	_fcntl_tests_2
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_CHECK
	bl	_fork
	mov	x20, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbnz	x20, LBB0_13
; %bb.11:
	mov	w0, #1
	bl	_sleep
LBB0_12:
	mov	x0, x19
	bl	_fcntl_tests_2
	mov	w0, #0
	bl	_exit
LBB0_13:
	mov	x0, x19
	bl	_fcntl_tests_2
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x20
	cset	w0, eq
	bl	_CHECK
	mov	x0, x19
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	add	x3, sp, #4
	mov	w2, #0
	bl	_socketpair
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	bl	_fork
	mov	x19, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbnz	x19, LBB0_15
; %bb.14:
	ldr	w0, [sp, #4]
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [sp, #8]
	bl	_fcntl_tests_recv_0
	b	LBB0_17
LBB0_15:
	ldr	w0, [sp, #8]
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [sp, #4]
	bl	_fcntl_tests_send_0
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x19
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [sp, #4]
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [x21]
	ldr	w1, [x22]
	add	x3, sp, #4
	mov	w2, #0
	bl	_socketpair
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	bl	_fork
	mov	x19, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_CHECK
	cbnz	x19, LBB0_18
; %bb.16:
	ldr	w0, [sp, #4]
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [sp, #8]
	bl	_fcntl_tests_send_0
LBB0_17:
	ldr	w0, [sp, #8]
	b	LBB0_4
LBB0_18:
	ldr	w0, [sp, #8]
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [sp, #4]
	bl	_fcntl_tests_recv_0
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmp	x0, x19
	cset	w0, eq
	bl	_CHECK
	ldr	w0, [sp, #4]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"1..870"

.subsections_via_symbols
