	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, -200(%rbp)                 ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r14
	leaq	LJTI0_0(%rip), %r13
	movq	_debug@GOTPCREL(%rip), %r15
	movl	$-1, -196(%rbp)                 ## 4-byte Folded Spill
	xorl	%eax, %eax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	incl	(%r15)
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-100(%rax), %ecx
	cmpl	$12, %ecx
	ja	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atoi
	movl	%eax, -200(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atoi
	movl	%eax, -196(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
LBB0_10:
	movl	-196(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -52(%rbp)
	movl	-200(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, -56(%rbp)
	cmpl	$-1, %ebx
	jne	LBB0_12
## %bb.11:
	cmpl	$-1, %eax
	jne	LBB0_14
LBB0_12:
	cmpl	$-1, %ebx
	je	LBB0_15
## %bb.13:
	cmpl	$-1, %eax
	jne	LBB0_15
LBB0_14:
	xorl	%eax, %eax
	callq	_usage
LBB0_15:
	cmpl	$-1, %ebx
	je	LBB0_16
LBB0_26:
	movl	-52(%rbp), %edi
	callq	_recv_fd
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_28:
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_29
LBB0_16:
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_18:
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_24
## %bb.19:
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_21:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_23:
	movl	-56(%rbp), %edi
	movl	%ebx, %esi
	callq	_send_fd
	leaq	-128(%rbp), %rdi
	callq	_wait
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	xorl	%eax, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	cmpq	$0, -208(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movl	-56(%rbp), %ecx
	leaq	L_.str.5(%rip), %rbx
	leaq	-128(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movq	%rbx, %rdx
	callq	_snprintf
	movl	-52(%rbp), %ecx
	leaq	-192(%rbp), %r15
	movq	%r15, %rdi
	movl	$64, %esi
	movq	%rbx, %rdx
	callq	_snprintf
	movq	$0, (%rsp)
	leaq	L_.str.6(%rip), %rdx
	leaq	L_.str.7(%rip), %r8
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, %rsi
	movq	%r14, %rcx
	movq	%r15, %r9
	callq	_execlp
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_26
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-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
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"di:o:p:"

	.comm	_debug,4,2                      ## @debug
	.comm	_optarg,8,3                     ## @optarg
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.1:                               ## @.str.1
	.asciz	"socketpair"

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

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

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
L_.str.4:                               ## @.str.4
	.asciz	"open"

L_.str.5:                               ## @.str.5
	.asciz	"%d"

L_.str.6:                               ## @.str.6
	.asciz	"-i"

L_.str.7:                               ## @.str.7
	.asciz	"-o"

L_.str.8:                               ## @.str.8
	.asciz	"execlp"

L_.str.10:                              ## @.str.10
	.asciz	"foo\n"

L_.str.11:                              ## @.str.11
	.asciz	"write"

.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, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x21, x1
	mov	x22, x0
	mov	x19, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
Lloh5:
	adrp	x25, lJTI0_0@PAGE
Lloh6:
	add	x25, x25, lJTI0_0@PAGEOFF
	mov	w20, #-1
Lloh7:
	adrp	x26, _debug@GOTPAGE
Lloh8:
	ldr	x26, [x26, _debug@GOTPAGEOFF]
Lloh9:
	adrp	x27, _optarg@GOTPAGE
Lloh10:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
	mov	w23, #-1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_getopt
	sub	w8, w0, #100
	cmp	w8, #12
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x27]
	bl	_atoi
	mov	x20, x0
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x27]
	bl	_atoi
	mov	x23, x0
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x19, [x27]
	b	LBB0_2
LBB0_9:
	stp	w20, w23, [x29, #-96]
	cmn	w20, #1
	b.ne	LBB0_11
; %bb.10:
	cmn	w23, #1
	b.ne	LBB0_13
LBB0_11:
	cmn	w20, #1
	b.eq	LBB0_14
; %bb.12:
	cmn	w23, #1
	b.ne	LBB0_14
LBB0_13:
	bl	_usage
LBB0_14:
	cmn	w20, #1
	b.eq	LBB0_18
LBB0_15:
	ldur	w0, [x29, #-92]
	bl	_recv_fd
	mov	x19, x0
Lloh11:
	adrp	x1, l_.str.10@PAGE
Lloh12:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w2, #4
	bl	_write
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:
Lloh13:
	adrp	x1, l_.str.11@PAGE
Lloh14:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_17:
	mov	x0, x19
	bl	_close
	b	LBB0_25
LBB0_18:
Lloh15:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	sub	x3, x29, #96
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.eq	LBB0_27
; %bb.19:
	bl	_fork
	cbz	w0, LBB0_28
LBB0_20:
	cmn	w0, #1
	b.ne	LBB0_22
; %bb.21:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_22:
Lloh23:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w2, #438
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_24
; %bb.23:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_24:
	ldur	w0, [x29, #-96]
	mov	x1, x19
	bl	_send_fd
	add	x0, sp, #64
	bl	_wait
LBB0_25:
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.26:
	mov	w0, #0
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_27:
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	bl	_fork
	cbnz	w0, LBB0_20
LBB0_28:
	cbz	x19, LBB0_15
; %bb.29:
	ldur	w3, [x29, #-96]
Lloh41:
	adrp	x20, l_.str.5@PAGE
Lloh42:
	add	x20, x20, l_.str.5@PAGEOFF
	add	x0, sp, #64
	mov	w1, #64
	mov	x2, x20
	bl	_snprintf
	ldur	w3, [x29, #-92]
	mov	x0, sp
	mov	w1, #64
	mov	x2, x20
	bl	_snprintf
Lloh43:
	adrp	x2, l_.str.6@PAGE
Lloh44:
	add	x2, x2, l_.str.6@PAGEOFF
Lloh45:
	adrp	x4, l_.str.7@PAGE
Lloh46:
	add	x4, x4, l_.str.7@PAGEOFF
	add	x3, sp, #64
	mov	x5, sp
	mov	x0, x19
	mov	x1, x19
	mov	x6, #0
	bl	_execlp
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_15
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"di:o:p:"

	.comm	_debug,4,2                      ; @debug
	.comm	_optarg,8,3                     ; @optarg
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.1:                               ; @.str.1
	.asciz	"socketpair"

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

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

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
l_.str.4:                               ; @.str.4
	.asciz	"open"

l_.str.5:                               ; @.str.5
	.asciz	"%d"

l_.str.6:                               ; @.str.6
	.asciz	"-i"

l_.str.7:                               ; @.str.7
	.asciz	"-o"

l_.str.8:                               ; @.str.8
	.asciz	"execlp"

l_.str.10:                              ; @.str.10
	.asciz	"foo\n"

l_.str.11:                              ; @.str.11
	.asciz	"write"

.subsections_via_symbols
