	.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
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	leaq	-16(%rbp), %rdi
	callq	_pipe
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	-16(%rbp), %edi
	leaq	-48(%rbp), %rsi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movl	-12(%rbp), %edi
	leaq	-32(%rbp), %rsi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	cmpq	%rcx, %rdx
	je	LBB0_10
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_10:
	movq	-40(%rbp), %rdx
	cmpq	-24(%rbp), %rdx
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_12:
	movl	-16(%rbp), %edi
	callq	_close
	movl	-12(%rbp), %edi
	callq	_close
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAIL: pipe"

L_.str.1:                               ## @.str.1
	.asciz	"FAIL: fstat st1"

L_.str.2:                               ## @.str.2
	.asciz	"FAIL: fstat st2"

L_.str.3:                               ## @.str.3
	.asciz	"FAIL: wrong dev number %ju %ju"

L_.str.4:                               ## @.str.4
	.asciz	"FAIL: inode numbers are equal: %ju"

L_str:                                  ## @str
	.asciz	"PASS"

.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, #80
	.cfi_def_cfa_offset 80
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	sub	x0, x29, #16
	bl	_pipe
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldur	w0, [x29, #-16]
	add	x1, sp, #32
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldur	w0, [x29, #-12]
	add	x1, sp, #16
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	x2, [sp, #32]
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_9
; %bb.7:
	cbz	x2, LBB0_9
; %bb.8:
	cmp	x2, x8
	b.eq	LBB0_10
LBB0_9:
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_errx
LBB0_10:
	ldr	x2, [sp, #40]
	ldr	x8, [sp, #24]
	cmp	x2, x8
	b.ne	LBB0_12
; %bb.11:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_errx
LBB0_12:
	ldur	w0, [x29, #-16]
	bl	_close
	ldur	w0, [x29, #-12]
	bl	_close
Lloh13:
	adrp	x0, l_str@PAGE
Lloh14:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldur	x8, [x29, #-8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAIL: pipe"

l_.str.1:                               ; @.str.1
	.asciz	"FAIL: fstat st1"

l_.str.2:                               ; @.str.2
	.asciz	"FAIL: fstat st2"

l_.str.3:                               ; @.str.3
	.asciz	"FAIL: wrong dev number %ju %ju"

l_.str.4:                               ; @.str.4
	.asciz	"FAIL: inode numbers are equal: %ju"

l_str:                                  ; @str
	.asciz	"PASS"

.subsections_via_symbols
