	.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
	pushq	%rax
	movl	$40024, %eax                    ## imm = 0x9C58
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	L___const.main.template(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-40064(%rbp), %rdi
	callq	_nitems
	movl	$-1, %r12d
	testl	%eax, %eax
	jne	LBB0_3
LBB0_8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbp), %rdi
	addq	$-40064, %rdi                   ## imm = 0xFFFF6380
	callq	_pipe
	addq	$4, %rbx
	cmpq	$4000, %rbx                     ## imm = 0xFA0
	jne	LBB0_9
## %bb.10:
	movl	%r12d, %edi
	callq	_close
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbp), %rdi
	addq	$-40064, %rdi                   ## imm = 0xFFFF6380
	callq	_pipe
	addq	$4, %rbx
	cmpq	$4000, %rbx                     ## imm = 0xFA0
	jne	LBB0_11
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	-64(%rbp), %rdi
	callq	_unlink
	xorl	%edi, %edi
	callq	_exit
LBB0_3:
	movl	$-1, %r12d
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r14
	leaq	-40064(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movq	%r15, %rdi
	callq	_nitems
	movl	%r13d, %r12d
	cmpl	%eax, %ebx
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENFILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_EMFILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.main.template
L___const.main.template:
	.asciz	"pipe.XXXXXXXXXX"

L_.str:                                 ## @.str
	.asciz	"mkstemp failed"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENFILE,8,3                     ## @ENFILE
	.comm	_EMFILE,8,3                     ## @EMFILE
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:
	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
	mov	w9, #40016
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #9, lsl #12             ; =36864
	sub	sp, sp, #3152
Lloh2:
	adrp	x8, l___const.main.template@PAGE
Lloh3:
	add	x8, x8, l___const.main.template@PAGEOFF
Lloh4:
	ldr	q0, [x8]
	stur	q0, [x29, #-96]
	sub	x0, x29, #96
	bl	_mkstemp
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x21, sp
	mov	x0, sp
	bl	_nitems
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w19, #-1
	b	LBB0_8
LBB0_4:
	mov	w22, #0
	mov	w19, #-1
Lloh7:
	adrp	x23, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x23, [x23, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	adrp	x24, _errno@GOTPAGE
Lloh10:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh11:
	adrp	x25, _ENFILE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ENFILE@GOTPAGEOFF]
Lloh13:
	adrp	x26, _EMFILE@GOTPAGE
Lloh14:
	ldr	x26, [x26, _EMFILE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	mov	x0, sp
	bl	_nitems
	mov	x19, x20
	cmp	w22, w0
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	sub	x0, x29, #96
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
LBB0_8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, x20
	bl	_pipe
	add	x20, x20, #4
	cmp	x20, #4000
	b.ne	LBB0_9
; %bb.10:
	mov	x0, x19
	bl	_close
	mov	x19, #0
	mov	x20, sp
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x20, x19
	bl	_pipe
	add	x19, x19, #4
	cmp	x19, #4000
	b.ne	LBB0_11
; %bb.12:
Lloh15:
	adrp	x0, l_str@PAGE
Lloh16:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	sub	x0, x29, #96
	bl	_unlink
	mov	w0, #0
	bl	_exit
	.loh AdrpAddLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.main.template:                ; @__const.main.template
	.asciz	"pipe.XXXXXXXXXX"

l_.str:                                 ; @.str
	.asciz	"mkstemp failed"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENFILE,8,3                     ; @ENFILE
	.comm	_EMFILE,8,3                     ; @EMFILE
l_str:                                  ; @str
	.asciz	"PASS"

.subsections_via_symbols
