	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movq	_DEFAULT_HOOKNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_sl_init
	movq	_msgs@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	leaq	L_.str(%rip), %r15
	leaq	LJTI0_0(%rip), %r12
	xorl	%r14d, %r14d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_outfd@GOTPCREL(%rip), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%rcx)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-83(%rax), %edx
	cmpl	$32, %edx
	ja	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ecx
	movslq	(%r12,%rdx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_infd@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	callq	_NgSetDebug
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_NgSetDebug
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_msgs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sl_add
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_err
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	je	LBB0_16
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_Usage
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_16:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r13d
	leaq	(%rbx,%rax,8), %r15
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_Usage
LBB0_19:
	cmpl	$2, %r13d
	jg	LBB0_21
## %bb.20:
	xorl	%eax, %eax
	callq	_Usage
LBB0_21:
	movq	(%r15), %r13
	movq	8(%r15), %r12
	addq	$16, %r15
LBB0_28:
	leaq	-60(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%edi, %edi
	callq	_NgMkSockNode
	testq	%rax, %rax
	jns	LBB0_30
## %bb.29:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_30:
	movl	-80(%rbp), %edi
	leaq	L_.str.3(%rip), %rbx
	movl	$4, %esi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movl	-84(%rbp), %edi
	movq	_NG_SOCK_HOOK_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	-88(%rbp), %edi
	movl	$4, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movl	-60(%rbp), %edi
	movq	_NGM_GENERIC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NGM_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	leaq	-88(%rbp), %r8
	movl	$12, %r9d
	callq	_NgSendMsg
	testq	%rax, %rax
	js	LBB0_31
## %bb.32:
	testl	%r14d, %r14d
	je	LBB0_36
LBB0_33:
	xorl	%edi, %edi
	callq	_close
	movl	$1, %edi
	callq	_close
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_35
## %bb.34:
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	callq	_dup2
LBB0_35:
	movl	-48(%rbp), %edi
	movl	$1, %esi
	callq	_dup2
	movl	-60(%rbp), %edi
	movq	%r13, %rsi
	callq	_send_msgs
	movq	(%r15), %rdi
	movq	%r15, %rsi
	callq	_execv
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_37
LBB0_22:
	cmpl	$1, %r13d
	je	LBB0_23
## %bb.24:
	cmpl	$2, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_27
## %bb.25:
	movq	8(%r15), %r12
	movq	(%r15), %r13
	jmp	LBB0_28
LBB0_31:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	testl	%r14d, %r14d
	jne	LBB0_33
LBB0_36:
	movl	-60(%rbp), %edi
	movq	%r13, %rsi
	callq	_send_msgs
LBB0_37:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	_infd@GOTPCREL(%rip), %r13
	je	LBB0_39
## %bb.38:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fclose
LBB0_39:
	leaq	-92(%rbp), %r14
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_61:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_64:                                ##   in Loop: Header=BB0_40 Depth=1
	movl	-48(%rbp), %edi
	movq	_NG_SOCK_HOOK_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_NgSendData
	testq	%rax, %rax
	js	LBB0_65
LBB0_66:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	%r12, %rsp
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_FD_ZERO
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_FD_SET
LBB0_42:                                ##   in Loop: Header=BB0_40 Depth=1
	movl	-48(%rbp), %edi
	movq	%r14, %rsi
	callq	_FD_SET
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testq	%rax, %rax
	jns	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_44:                                ##   in Loop: Header=BB0_40 Depth=1
	movl	-48(%rbp), %edi
	movq	%r14, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_59
## %bb.45:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	%rsp, %r12
	movq	_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	-48(%rbp), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_NgRecvData
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_40 Depth=1
	jne	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_49:                                ##   in Loop: Header=BB0_40 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_51
LBB0_50:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_WriteAscii
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_56
	jmp	LBB0_58
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_66
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_50
LBB0_51:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	_outfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_write
	cmpl	%r13d, %eax
	je	LBB0_55
## %bb.52:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %eax
	js	LBB0_53
## %bb.54:                              ##   in Loop: Header=BB0_40 Depth=1
	leaq	L_.str.10(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_40 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_58
LBB0_56:                                ##   in Loop: Header=BB0_40 Depth=1
	movl	-48(%rbp), %edi
	movq	_NG_SOCK_HOOK_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_NgSendData
	testq	%rax, %rax
	jns	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_58:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	%r12, %rsp
	movq	_infd@GOTPCREL(%rip), %r13
LBB0_59:                                ##   in Loop: Header=BB0_40 Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_40
## %bb.60:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	%rsp, %r12
	movq	_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r13), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_61
## %bb.62:                              ##   in Loop: Header=BB0_40 Depth=1
	jne	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_64
LBB0_53:                                ##   in Loop: Header=BB0_40 Depth=1
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_56
	jmp	LBB0_58
LBB0_23:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	(%r15), %r13
	jmp	LBB0_28
LBB0_27:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_Usage
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_DEFAULT_HOOKNAME,8,3           ## @DEFAULT_HOOKNAME
	.comm	_msgs,8,3                       ## @msgs
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aedlm:nsS"

	.comm	_optarg,4,2                     ## @optarg
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_outfd,4,2                      ## @outfd
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_infd,4,2                       ## @infd
	.comm	_optind,8,3                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"conflicting options\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't get sockets"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.comm	_NG_SOCK_HOOK_NAME,8,3          ## @NG_SOCK_HOOK_NAME
L_.str.4:                               ## @.str.4
	.asciz	"."

	.comm	_NGM_GENERIC_COOKIE,4,2         ## @NGM_GENERIC_COOKIE
	.comm	_NGM_CONNECT,4,2                ## @NGM_CONNECT
L_.str.5:                               ## @.str.5
	.asciz	"can't connect to node"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
L_.str.6:                               ## @.str.6
	.asciz	"select"

	.comm	_BUF_SIZE,4,2                   ## @BUF_SIZE
L_.str.7:                               ## @.str.7
	.asciz	"read(hook)"

L_.str.8:                               ## @.str.8
	.asciz	"read EOF from hook?!"

L_.str.9:                               ## @.str.9
	.asciz	"write(stdout)"

L_.str.10:                              ## @.str.10
	.asciz	"stdout: read %d, wrote %d"

L_.str.11:                              ## @.str.11
	.asciz	"write(hook)"

L_.str.12:                              ## @.str.12
	.asciz	"read(stdin)"

L_.str.13:                              ## @.str.13
	.asciz	"EOF(stdin)"

.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DEFAULT_HOOKNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_HOOKNAME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	bl	_sl_init
Lloh3:
	adrp	x8, _msgs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _msgs@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
Lloh6:
	adrp	x24, _EX_OSERR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EX_OSERR@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x24]
	mov	x1, #0
	bl	_err
LBB0_2:
	mov	w22, #0
	mov	w25, #0
	stur	wzr, [x29, #-112]               ; 4-byte Folded Spill
	mov	w8, #0
Lloh8:
	adrp	x26, _infd@GOTPAGE
Lloh9:
	ldr	x26, [x26, _infd@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
Lloh12:
	adrp	x27, _STDIN_FILENO@GOTPAGE
Lloh13:
	ldr	x27, [x27, _STDIN_FILENO@GOTPAGEOFF]
Lloh14:
	adrp	x28, lJTI0_0@PAGE
Lloh15:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x26]
	mov	x8, x23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	sub	w9, w0, #83
	cmp	w9, #32
	b.hi	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	adr	x10, LBB0_3
	ldrb	w11, [x28, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #-1
	bl	_NgSetDebug
	add	w0, w0, #1
	bl	_NgSetDebug
	mov	x8, x23
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #1
	mov	x8, x23
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-112]                ; 4-byte Folded Spill
	mov	x8, x23
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x8, _msgs@GOTPAGE
Lloh20:
	ldr	x8, [x8, _msgs@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
Lloh22:
	adrp	x8, _optarg@GOTPAGE
Lloh23:
	ldr	x8, [x8, _optarg@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_sl_add
	mov	x8, x23
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, #0
	bl	_err
	mov	x8, x23
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #1
	mov	x8, x23
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
Lloh25:
	adrp	x9, _outfd@GOTPAGE
Lloh26:
	ldr	x9, [x9, _outfd@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
	mov	x8, x23
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_Usage
	mov	x8, x23
	b	LBB0_4
LBB0_15:
Lloh28:
	adrp	x8, _optind@GOTPAGE
Lloh29:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	sub	w20, w20, w8
	add	x19, x19, x8, lsl #3
	cbz	w22, LBB0_57
; %bb.16:
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	orr	w8, w23, w8
	cbz	w8, LBB0_18
; %bb.17:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	bl	_Usage
LBB0_18:
	cmp	w20, #2
	b.gt	LBB0_20
; %bb.19:
	bl	_Usage
LBB0_20:
	ldp	x27, x28, [x19], #16
LBB0_21:
	sub	x1, x29, #100
	sub	x2, x29, #104
	mov	x0, #0
	bl	_NgMkSockNode
	tbz	x0, #63, LBB0_23
; %bb.22:
	ldr	w0, [x24]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
LBB0_23:
	ldur	w0, [x29, #-88]
	str	x27, [sp, #-16]!
Lloh38:
	adrp	x21, l_.str.3@PAGE
Lloh39:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	w1, #4
	mov	x2, x21
	bl	_snprintf
	add	sp, sp, #16
	ldur	w0, [x29, #-92]
Lloh40:
	adrp	x20, _NG_SOCK_HOOK_NAME@GOTPAGE
Lloh41:
	ldr	x20, [x20, _NG_SOCK_HOOK_NAME@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	w1, #4
	bl	_snprintf
	ldur	w0, [x29, #-96]
	str	x28, [sp, #-16]!
	mov	w1, #4
	mov	x2, x21
	bl	_snprintf
	add	sp, sp, #16
	ldur	w0, [x29, #-100]
Lloh42:
	adrp	x8, _NGM_GENERIC_COOKIE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _NGM_GENERIC_COOKIE@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x8, _NGM_CONNECT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _NGM_CONNECT@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x4, x29, #96
	mov	w5, #12
	bl	_NgSendMsg
	tbnz	x0, #63, LBB0_60
; %bb.24:
	cbz	w22, LBB0_61
LBB0_25:
	mov	w0, #0
	bl	_close
	mov	w0, #1
	bl	_close
	cbnz	w25, LBB0_27
; %bb.26:
	ldur	w0, [x29, #-104]
	mov	w1, #0
	bl	_dup2
LBB0_27:
	ldur	w0, [x29, #-104]
	mov	w1, #1
	bl	_dup2
	ldur	w0, [x29, #-100]
	mov	x1, x27
	bl	_send_msgs
	ldr	x0, [x19]
	mov	x1, x19
	bl	_execv
	ldr	w0, [x24]
	ldr	x8, [x19]
	str	x8, [sp, #-16]!
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
	add	sp, sp, #16
	cbz	w25, LBB0_29
LBB0_28:
Lloh52:
	adrp	x8, _stdin@GOTPAGE
Lloh53:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_fclose
LBB0_29:
Lloh55:
	adrp	x19, _FD_SETSIZE@GOTPAGE
Lloh56:
	ldr	x19, [x19, _FD_SETSIZE@GOTPAGEOFF]
Lloh57:
	adrp	x21, _BUF_SIZE@GOTPAGE
Lloh58:
	ldr	x21, [x21, _BUF_SIZE@GOTPAGEOFF]
	b	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x24]
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_err
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=1
	ldur	w0, [x29, #-104]
	ldr	x1, [x20]
	mov	x2, x27
	mov	x3, x28
	bl	_NgSendData
	tbnz	x0, #63, LBB0_43
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	sp, x22
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #108
	bl	_FD_ZERO
	cbnz	w25, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x26]
	sub	x1, x29, #108
	bl	_FD_SET
LBB0_35:                                ;   in Loop: Header=BB0_33 Depth=1
	ldur	w0, [x29, #-104]
	sub	x1, x29, #108
	bl	_FD_SET
	ldr	w0, [x19]
	sub	x1, x29, #108
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	tbz	x0, #63, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x24]
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_err
LBB0_37:                                ;   in Loop: Header=BB0_33 Depth=1
	ldur	w0, [x29, #-104]
	sub	x1, x29, #108
	bl	_FD_ISSET
	cbz	x0, LBB0_52
; %bb.38:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, sp
	ldr	w2, [x21]
	mov	x9, x2
Lloh63:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh64:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x27, x8, x9
	mov	sp, x27
	ldur	w0, [x29, #-104]
	mov	x1, x27
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, #0
	bl	_NgRecvData
	mov	x28, x0
	tbnz	w0, #31, LBB0_44
; %bb.39:                               ;   in Loop: Header=BB0_33 Depth=1
	cbnz	w28, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x24]
Lloh65:
	adrp	x1, l_.str.8@PAGE
Lloh66:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_errx
LBB0_41:                                ;   in Loop: Header=BB0_33 Depth=1
	cbz	w23, LBB0_45
LBB0_42:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x27
	mov	x1, x28
	bl	_WriteAscii
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	cbnz	w8, LBB0_49
	b	LBB0_51
LBB0_43:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x24]
Lloh67:
	adrp	x1, l_.str.11@PAGE
Lloh68:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_err
	b	LBB0_32
LBB0_44:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x24]
Lloh69:
	adrp	x1, l_.str.7@PAGE
Lloh70:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_err
	cbnz	w23, LBB0_42
LBB0_45:                                ;   in Loop: Header=BB0_33 Depth=1
Lloh71:
	adrp	x8, _outfd@GOTPAGE
Lloh72:
	ldr	x8, [x8, _outfd@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	mov	x1, x27
	mov	x2, x28
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w28
	b.eq	LBB0_48
; %bb.46:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w8, [x24]
	tbnz	w0, #31, LBB0_56
; %bb.47:                               ;   in Loop: Header=BB0_33 Depth=1
	stp	x28, x0, [sp, #-16]!
	mov	x0, x8
Lloh74:
	adrp	x1, l_.str.10@PAGE
Lloh75:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_errx
	add	sp, sp, #16
LBB0_48:                                ;   in Loop: Header=BB0_33 Depth=1
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	cbz	w8, LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_33 Depth=1
	ldur	w0, [x29, #-104]
	ldr	x1, [x20]
	mov	x2, x27
	mov	x3, x28
	bl	_NgSendData
	tbz	x0, #63, LBB0_51
; %bb.50:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x24]
Lloh76:
	adrp	x1, l_.str.11@PAGE
Lloh77:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_err
LBB0_51:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	sp, x22
LBB0_52:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x26]
	sub	x1, x29, #108
	bl	_FD_ISSET
	cbz	x0, LBB0_33
; %bb.53:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, sp
	ldr	w2, [x21]
	mov	x9, x2
Lloh78:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh79:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x27, x8, x9
	mov	sp, x27
	ldr	w0, [x26]
	mov	x1, x27
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_read
	mov	x28, x0
	tbnz	w0, #31, LBB0_30
; %bb.54:                               ;   in Loop: Header=BB0_33 Depth=1
	cbnz	w28, LBB0_31
; %bb.55:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x24]
Lloh80:
	adrp	x1, l_.str.13@PAGE
Lloh81:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_errx
	b	LBB0_31
LBB0_56:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x8
Lloh82:
	adrp	x1, l_.str.9@PAGE
Lloh83:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_err
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	cbnz	w8, LBB0_49
	b	LBB0_51
LBB0_57:
	cmp	w20, #1
	b.eq	LBB0_62
; %bb.58:
	cmp	w20, #2
	ldur	x28, [x29, #-120]               ; 8-byte Folded Reload
	b.ne	LBB0_63
; %bb.59:
	ldp	x27, x28, [x19]
	b	LBB0_21
LBB0_60:
	ldr	w0, [x24]
Lloh84:
	adrp	x1, l_.str.5@PAGE
Lloh85:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
	cbnz	w22, LBB0_25
LBB0_61:
	ldur	w0, [x29, #-100]
	mov	x1, x27
	bl	_send_msgs
	cbnz	w25, LBB0_28
	b	LBB0_29
LBB0_62:
	ldur	x28, [x29, #-120]               ; 8-byte Folded Reload
	ldr	x27, [x19]
	b	LBB0_21
LBB0_63:
	bl	_Usage
	mov	x27, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_DEFAULT_HOOKNAME,8,3           ; @DEFAULT_HOOKNAME
	.comm	_msgs,8,3                       ; @msgs
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aedlm:nsS"

	.comm	_optarg,4,2                     ; @optarg
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_outfd,4,2                      ; @outfd
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_infd,4,2                       ; @infd
	.comm	_optind,8,3                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"conflicting options\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't get sockets"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.comm	_NG_SOCK_HOOK_NAME,8,3          ; @NG_SOCK_HOOK_NAME
l_.str.4:                               ; @.str.4
	.asciz	"."

	.comm	_NGM_GENERIC_COOKIE,4,2         ; @NGM_GENERIC_COOKIE
	.comm	_NGM_CONNECT,4,2                ; @NGM_CONNECT
l_.str.5:                               ; @.str.5
	.asciz	"can't connect to node"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
l_.str.6:                               ; @.str.6
	.asciz	"select"

	.comm	_BUF_SIZE,4,2                   ; @BUF_SIZE
l_.str.7:                               ; @.str.7
	.asciz	"read(hook)"

l_.str.8:                               ; @.str.8
	.asciz	"read EOF from hook?!"

l_.str.9:                               ; @.str.9
	.asciz	"write(stdout)"

l_.str.10:                              ; @.str.10
	.asciz	"stdout: read %d, wrote %d"

l_.str.11:                              ; @.str.11
	.asciz	"write(hook)"

l_.str.12:                              ; @.str.12
	.asciz	"read(stdin)"

l_.str.13:                              ; @.str.13
	.asciz	"EOF(stdin)"

.subsections_via_symbols
