	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_dup
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_dup
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leal	1(%rbx), %ecx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	leaq	-104(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movl	$32, -104(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -88(%rbp)
	xorl	%eax, %eax
	callq	_srandomdev
	movq	_BIND_ATTEMPTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	leaq	-104(%rbp), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_random
	cltq
	imulq	$-2147450879, %rax, %rdi        ## imm = 0x80008001
	shrq	$32, %rdi
	addl	%eax, %edi
	movl	%edi, %ecx
	shrl	$31, %ecx
	sarl	$15, %edi
	addl	%ecx, %edi
	movl	%edi, %ecx
	shll	$16, %ecx
	subl	%ecx, %edi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1025, %esi                     ## imm = 0x401
	callq	_MAX
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_htons
	movq	%rax, -96(%rbp)
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	$32, %edx
	callq	_bind
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	callq	_warn
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	incl	%ebx
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jl	LBB0_7
	jmp	LBB0_10
LBB0_5:
                                        ## implicit-def: $r15d
LBB0_10:
	cmpl	%eax, %ebx
	jge	LBB0_68
LBB0_11:
	movl	%r12d, %edi
	movl	$-1, %esi
	callq	_listen
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movq	_F_GETFL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	%rax, %rbx
	cmpl	$-1, %ebx
	jne	LBB0_15
## %bb.14:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_15:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_17:
	movl	(%r14), %esi
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	%rax, %rbx
	cmpl	$-1, %ebx
	jne	LBB0_19
## %bb.18:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_19:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, %eax
	notl	%eax
	testl	%eax, (%r13)
	je	LBB0_21
## %bb.20:
	leaq	L_.str.8(%rip), %rsi
	movl	$-1, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_21:
	movq	_LOOPS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_28
## %bb.22:
	leaq	-52(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EAGAIN@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	incl	%r14d
	movq	_LOOPS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_28
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	$32, -52(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_accept
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	$-1, %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	(%r13), %rdi
	cmpq	(%r12), %rdi
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	callq	_strerror
	movl	$-1, %edi
	leaq	L_.str.10(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_27
LBB0_28:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dup
	movl	%eax, %ebx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %eax
	addl	$2, %eax
	cmpl	%eax, %ebx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jne	LBB0_29
## %bb.30:
	leaq	L_str.20(%rip), %rdi
	callq	_puts
	jmp	LBB0_31
LBB0_29:
	leaq	L_.str.11(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_printf
LBB0_31:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_F_GETFL@GOTPCREL(%rip), %r12
	movl	%ebx, %edi
	callq	_close
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_child_died@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %r13
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	js	LBB0_32
## %bb.57:
	jne	LBB0_33
## %bb.58:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_close
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	movl	%r14d, %edi
	callq	_close
	leaq	-104(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movl	$32, -104(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -88(%rbp)
	movl	%r15d, %edi
	callq	_htons
	movq	%rax, -96(%rbp)
	movq	_NUM_ATTEMPTS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_65
## %bb.59:
	movq	_errno@GOTPCREL(%rip), %r14
	leaq	-104(%rbp), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_60
LBB0_32:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.13(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_33:
	movl	(%r12), %esi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	%rax, %rbx
	cmpl	$-1, %ebx
	jne	LBB0_35
## %bb.34:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_35:
	movl	(%r13), %edx
	notl	%edx
	andl	%ebx, %edx
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_37:
	movl	(%r12), %esi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	%rax, %rbx
	cmpl	$-1, %ebx
	jne	LBB0_39
## %bb.38:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_39:
	testl	%ebx, (%r13)
	je	LBB0_41
## %bb.40:
	leaq	L_.str.15(%rip), %rsi
	movl	$-1, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_41:
	movq	_quit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_50
## %bb.42:
	movq	_NUM_ATTEMPTS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_50
## %bb.43:
	movl	$1, %ebx
	leaq	-52(%rbp), %r12
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EFAULT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movl	$32, -52(%rbp)
	movl	$256, %esi                      ## imm = 0x100
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_accept
	cmpl	$-1, %eax
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movl	$-1, %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_46:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	(%r15), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_44 Depth=1
	callq	_strerror
	movl	$-1, %edi
	leaq	L_.str.10(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_48:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	_quit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_44 Depth=1
	leal	1(%rbx), %eax
	cmpl	(%r14), %ebx
	movl	%eax, %ebx
	jl	LBB0_44
LBB0_50:
	leaq	-56(%rbp), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_waitpid
	testq	%rax, %rax
	jns	LBB0_52
## %bb.51:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.16(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_52:
	movl	-56(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_54
## %bb.53:
	movl	-56(%rbp), %edi
	callq	_WEXITSTATUS
	testq	%rax, %rax
	je	LBB0_55
LBB0_54:
	leaq	L_.str.17(%rip), %rdi
	callq	_warnx
LBB0_55:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dup
	cmpl	%ebx, %eax
	jne	LBB0_56
## %bb.66:
	leaq	L_str.21(%rip), %rdi
	callq	_puts
	jmp	LBB0_67
LBB0_56:
	leaq	L_.str.18(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_printf
LBB0_67:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jl	LBB0_11
LBB0_68:
	leaq	L_str.22(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_60 Depth=1
	movl	%ebx, %edi
	callq	_close
	incl	%r15d
	cmpl	(%r13), %r15d
	jge	LBB0_65
LBB0_60:                                ## =>This Inner Loop Header: Depth=1
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=1
	movq	(%r14), %rdi
	callq	_strerror
	movl	$-1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_62:                                ##   in Loop: Header=BB0_60 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	$32, %edx
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_60 Depth=1
	movq	(%r14), %rdi
	callq	_strerror
	movl	$-1, %edi
	leaq	L_.str.14(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_64
LBB0_65:
	xorl	%edi, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Non-sequential fd allocation\n"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.2:                               ## @.str.2
	.asciz	"socket: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
	.comm	_BIND_ATTEMPTS,4,2              ## @BIND_ATTEMPTS
L_.str.3:                               ## @.str.3
	.asciz	"bind with %d failed"

L_.str.5:                               ## @.str.5
	.asciz	"listen: %s"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
L_.str.6:                               ## @.str.6
	.asciz	"ioctl(F_GETFL): %s"

	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
L_.str.7:                               ## @.str.7
	.asciz	"ioctl(F_SETFL): %s"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to set O_NONBLOCK (i=0x%x)\n"

	.comm	_LOOPS,4,2                      ## @LOOPS
L_.str.9:                               ## @.str.9
	.asciz	"accept succeeded\n"

	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.10:                              ## @.str.10
	.asciz	"accept: %s"

L_.str.11:                              ## @.str.11
	.asciz	"not ok 1 - (%d, %d, %d)\n"

	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_child_died,4,2                 ## @child_died
L_.str.13:                              ## @.str.13
	.asciz	"fork: %s"

	.comm	_NUM_ATTEMPTS,4,2               ## @NUM_ATTEMPTS
L_.str.14:                              ## @.str.14
	.asciz	"connect: %s"

L_.str.15:                              ## @.str.15
	.asciz	"Failed to clear O_NONBLOCK (i=0x%x)\n"

	.comm	_quit,4,2                       ## @quit
	.comm	_EFAULT,8,3                     ## @EFAULT
L_.str.16:                              ## @.str.16
	.asciz	"waitpid: %s"

L_.str.17:                              ## @.str.17
	.asciz	"child process died"

L_.str.18:                              ## @.str.18
	.asciz	"not ok 2 - (%d, %d, %d)\n"

L_str:                                  ## @str
	.asciz	"1..2"

L_str.20:                               ## @str.20
	.asciz	"ok 1"

L_str.21:                               ## @str.21
	.asciz	"ok 2"

L_str.22:                               ## @str.22
	.asciz	"Bail out!"

.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
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x20, _STDIN_FILENO@GOTPAGE
Lloh3:
	ldr	x20, [x20, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_dup
	mov	x19, x0
	ldr	w0, [x20]
	bl	_dup
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp, #40]              ; 16-byte Folded Spill
	add	w8, w19, #1
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_2:
Lloh6:
	adrp	x8, _PF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
Lloh12:
	adrp	x25, _errno@GOTPAGE
Lloh13:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_4:
	mov	w19, #32
	add	x0, sp, #64
	mov	w1, #32
	bl	_bzero
Lloh16:
	adrp	x8, _AF_INET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
	str	w19, [sp, #64]
Lloh18:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh19:
	adrp	x8, _INADDR_LOOPBACK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INADDR_LOOPBACK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [sp, #80]
	bl	_srandomdev
Lloh22:
	adrp	x24, _BIND_ATTEMPTS@GOTPAGE
Lloh23:
	ldr	x24, [x24, _BIND_ATTEMPTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w19, #0
	mov	w26, #32769
	movk	w26, #32768, lsl #16
Lloh24:
	adrp	x23, l_.str.3@PAGE
Lloh25:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_random
	smull	x8, w0, w26
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #15
	add	w8, w9, w8, lsr #31
	sub	w8, w8, w8, lsl #16
	add	w0, w0, w8
	mov	w1, #1025
	bl	_MAX
	mov	x22, x0
	bl	_htons
	str	x0, [sp, #72]
	add	x1, sp, #64
	mov	x0, x21
	mov	w2, #32
	bl	_bind
	cbz	x0, LBB0_60
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_warn
	mov	w0, #1000
	bl	_usleep
	add	w19, w19, #1
	ldr	w8, [x24]
	cmp	w19, w8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	w19, #0
                                        ; implicit-def: $w22
LBB0_9:
	cmp	w19, w8
	b.ge	LBB0_61
LBB0_10:
	mov	x0, x21
	mov	w1, #-1
	bl	_listen
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_12:
Lloh28:
	adrp	x19, _F_GETFL@GOTPAGE
Lloh29:
	ldr	x19, [x19, _F_GETFL@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x21
	bl	_fcntl
	mov	x23, x0
	cmn	w23, #1
	b.ne	LBB0_14
; %bb.13:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_14:
Lloh32:
	adrp	x28, _O_NONBLOCK@GOTPAGE
Lloh33:
	ldr	x28, [x28, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w8, [x28]
	orr	w8, w8, w23
Lloh34:
	adrp	x9, _F_SETFL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _F_SETFL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x9]
	str	x8, [sp]
	mov	x0, x21
	bl	_fcntl
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_16:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_fcntl
	mov	x23, x0
	cmn	w23, #1
	b.ne	LBB0_18
; %bb.17:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_18:
	ldr	w8, [x28]
	bics	wzr, w8, w23
	b.eq	LBB0_20
; %bb.19:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_20:
Lloh43:
	adrp	x26, _LOOPS@GOTPAGE
Lloh44:
	ldr	x26, [x26, _LOOPS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.21:
	mov	w20, #0
	mov	w19, #32
Lloh45:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh46:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
Lloh47:
	adrp	x23, l_.str.10@PAGE
Lloh48:
	add	x23, x23, l_.str.10@PAGEOFF
Lloh49:
	adrp	x24, l_.str.9@PAGE
Lloh50:
	add	x24, x24, l_.str.9@PAGEOFF
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	w20, w20, #1
	ldr	w8, [x26]
	cmp	w20, w8
	b.ge	LBB0_27
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	str	w19, [sp, #60]
	add	x1, sp, #64
	add	x2, sp, #60
	mov	x0, x21
	bl	_accept
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w0, #-1
	mov	x1, x24
	bl	_errx
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x0, [x25]
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	w0, #-1
	mov	x1, x23
	bl	_errx
	b	LBB0_22
LBB0_27:
Lloh51:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh52:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	bl	_dup
	mov	x23, x0
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	w20, w8, #2
	cmp	w0, w20
	b.ne	LBB0_29
; %bb.28:
Lloh54:
	adrp	x0, l_str.20@PAGE
Lloh55:
	add	x0, x0, l_str.20@PAGEOFF
	bl	_puts
	b	LBB0_30
LBB0_29:
	stp	x8, x23, [sp, #8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh56:
	adrp	x0, l_.str.11@PAGE
Lloh57:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
LBB0_30:
Lloh58:
	adrp	x19, _F_GETFL@GOTPAGE
Lloh59:
	ldr	x19, [x19, _F_GETFL@GOTPAGEOFF]
	mov	x0, x23
	bl	_close
Lloh60:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
Lloh63:
	adrp	x8, _child_died@GOTPAGE
Lloh64:
	ldr	x8, [x8, _child_died@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	bl	_signal
	bl	_fork
	mov	x23, x0
	tbnz	x0, #63, LBB0_34
; %bb.31:
	cbnz	x23, LBB0_35
; %bb.32:
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_close
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_close
	mov	x0, x21
	bl	_close
	mov	w19, #32
	add	x0, sp, #64
	mov	w1, #32
	bl	_bzero
	str	w19, [sp, #64]
Lloh66:
	adrp	x8, _AF_INET@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	str	x8, [sp, #88]
Lloh69:
	adrp	x8, _INADDR_LOOPBACK@GOTPAGE
Lloh70:
	ldr	x8, [x8, _INADDR_LOOPBACK@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [sp, #80]
	mov	x0, x22
	bl	_htons
	str	x0, [sp, #72]
Lloh72:
	adrp	x22, _NUM_ATTEMPTS@GOTPAGE
Lloh73:
	ldr	x22, [x22, _NUM_ATTEMPTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
Lloh74:
	adrp	x24, _PF_INET@GOTPAGE
Lloh75:
	ldr	x24, [x24, _PF_INET@GOTPAGEOFF]
Lloh76:
	adrp	x26, _SOCK_STREAM@GOTPAGE
Lloh77:
	ldr	x26, [x26, _SOCK_STREAM@GOTPAGEOFF]
	b.lt	LBB0_67
; %bb.33:
	mov	w23, #0
Lloh78:
	adrp	x19, l_.str.2@PAGE
Lloh79:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh80:
	adrp	x20, l_.str.14@PAGE
Lloh81:
	add	x20, x20, l_.str.14@PAGEOFF
	b	LBB0_63
LBB0_34:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh82:
	adrp	x1, l_.str.13@PAGE
Lloh83:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_35:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_fcntl
	mov	x22, x0
	cmn	w22, #1
	b.ne	LBB0_37
; %bb.36:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh84:
	adrp	x1, l_.str.6@PAGE
Lloh85:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_37:
	ldr	w8, [x28]
	bic	w8, w22, w8
Lloh86:
	adrp	x9, _F_SETFL@GOTPAGE
Lloh87:
	ldr	x9, [x9, _F_SETFL@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x9]
	str	x8, [sp]
	mov	x0, x21
	bl	_fcntl
	cbz	x0, LBB0_39
; %bb.38:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh89:
	adrp	x1, l_.str.7@PAGE
Lloh90:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_39:
	str	w20, [sp, #36]                  ; 4-byte Folded Spill
	ldr	w1, [x19]
	mov	x0, x21
	bl	_fcntl
	mov	x22, x0
	cmn	w22, #1
	b.ne	LBB0_41
; %bb.40:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh91:
	adrp	x1, l_.str.6@PAGE
Lloh92:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_41:
	ldr	w8, [x28]
	tst	w8, w22
	b.eq	LBB0_43
; %bb.42:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh93:
	adrp	x1, l_.str.15@PAGE
Lloh94:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_43:
Lloh95:
	adrp	x19, _quit@GOTPAGE
Lloh96:
	ldr	x19, [x19, _quit@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_51
; %bb.44:
Lloh97:
	adrp	x27, _NUM_ATTEMPTS@GOTPAGE
Lloh98:
	ldr	x27, [x27, _NUM_ATTEMPTS@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_51
; %bb.45:
	mov	w28, #1
	mov	w20, #32
Lloh99:
	adrp	x26, _EFAULT@GOTPAGE
Lloh100:
	ldr	x26, [x26, _EFAULT@GOTPAGEOFF]
Lloh101:
	adrp	x22, l_.str.10@PAGE
Lloh102:
	add	x22, x22, l_.str.10@PAGEOFF
Lloh103:
	adrp	x24, l_.str.9@PAGE
Lloh104:
	add	x24, x24, l_.str.9@PAGEOFF
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x27]
	cmp	w8, #0
	ccmp	w28, w9, #0, eq
	add	w28, w28, #1
	b.ge	LBB0_51
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	str	w20, [sp, #60]
	add	x2, sp, #60
	mov	x0, x21
	mov	w1, #256
	bl	_accept
	cmn	w0, #1
	b.eq	LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	w0, #-1
	mov	x1, x24
	bl	_errx
LBB0_49:                                ;   in Loop: Header=BB0_47 Depth=1
	ldr	x0, [x25]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_46
; %bb.50:                               ;   in Loop: Header=BB0_47 Depth=1
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	w0, #-1
	mov	x1, x22
	bl	_errx
	b	LBB0_46
LBB0_51:
	add	x1, sp, #56
	mov	x0, x23
	mov	w2, #0
	bl	_waitpid
	tbz	x0, #63, LBB0_53
; %bb.52:
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh105:
	adrp	x1, l_.str.16@PAGE
Lloh106:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_53:
	ldr	w0, [sp, #56]
	bl	_WIFEXITED
	ldr	w19, [sp, #36]                  ; 4-byte Folded Reload
	cbz	w0, LBB0_55
; %bb.54:
	ldr	w0, [sp, #56]
	bl	_WEXITSTATUS
	cbz	x0, LBB0_56
LBB0_55:
Lloh107:
	adrp	x0, l_.str.17@PAGE
Lloh108:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_warnx
LBB0_56:
Lloh109:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh110:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh111:
	ldr	w0, [x8]
	bl	_dup
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w19
	b.ne	LBB0_58
; %bb.57:
Lloh112:
	adrp	x0, l_str.21@PAGE
Lloh113:
	add	x0, x0, l_str.21@PAGEOFF
	bl	_puts
	b	LBB0_59
LBB0_58:
	ldp	x9, x8, [sp, #40]               ; 16-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x8, x0, [sp, #8]
	str	x9, [sp]
Lloh114:
	adrp	x0, l_.str.18@PAGE
Lloh115:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_printf
LBB0_59:
	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_60:
	ldr	w8, [x24]
	cmp	w19, w8
	b.lt	LBB0_10
LBB0_61:
Lloh116:
	adrp	x0, l_str.22@PAGE
Lloh117:
	add	x0, x0, l_str.22@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
LBB0_62:                                ;   in Loop: Header=BB0_63 Depth=1
	mov	x0, x21
	bl	_close
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.ge	LBB0_67
LBB0_63:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x26]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_65
; %bb.64:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	w0, #-1
	mov	x1, x19
	bl	_errx
LBB0_65:                                ;   in Loop: Header=BB0_63 Depth=1
	add	x1, sp, #64
	mov	x0, x21
	mov	w2, #32
	bl	_connect
	tbz	x0, #63, LBB0_62
; %bb.66:                               ;   in Loop: Header=BB0_63 Depth=1
	ldr	x0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	w0, #-1
	mov	x1, x20
	bl	_errx
	b	LBB0_62
LBB0_67:
	mov	w0, #0
	bl	__exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpAdd	Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Non-sequential fd allocation\n"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.2:                               ; @.str.2
	.asciz	"socket: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
	.comm	_BIND_ATTEMPTS,4,2              ; @BIND_ATTEMPTS
l_.str.3:                               ; @.str.3
	.asciz	"bind with %d failed"

l_.str.5:                               ; @.str.5
	.asciz	"listen: %s"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
l_.str.6:                               ; @.str.6
	.asciz	"ioctl(F_GETFL): %s"

	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
l_.str.7:                               ; @.str.7
	.asciz	"ioctl(F_SETFL): %s"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to set O_NONBLOCK (i=0x%x)\n"

	.comm	_LOOPS,4,2                      ; @LOOPS
l_.str.9:                               ; @.str.9
	.asciz	"accept succeeded\n"

	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.10:                              ; @.str.10
	.asciz	"accept: %s"

l_.str.11:                              ; @.str.11
	.asciz	"not ok 1 - (%d, %d, %d)\n"

	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_child_died,4,2                 ; @child_died
l_.str.13:                              ; @.str.13
	.asciz	"fork: %s"

	.comm	_NUM_ATTEMPTS,4,2               ; @NUM_ATTEMPTS
l_.str.14:                              ; @.str.14
	.asciz	"connect: %s"

l_.str.15:                              ; @.str.15
	.asciz	"Failed to clear O_NONBLOCK (i=0x%x)\n"

	.comm	_quit,4,2                       ; @quit
	.comm	_EFAULT,8,3                     ; @EFAULT
l_.str.16:                              ; @.str.16
	.asciz	"waitpid: %s"

l_.str.17:                              ; @.str.17
	.asciz	"child process died"

l_.str.18:                              ; @.str.18
	.asciz	"not ok 2 - (%d, %d, %d)\n"

l_str:                                  ; @str
	.asciz	"1..2"

l_str.20:                               ; @str.20
	.asciz	"ok 1"

l_str.21:                               ; @str.21
	.asciz	"ok 2"

l_str.22:                               ; @str.22
	.asciz	"Bail out!"

.subsections_via_symbols
