	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_2:
	movq	_temp_dir@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movl	(%rbx), %edi
	callq	_mkdtemp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_4:
	movq	_atexit_temp_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movl	(%rbx), %edi
	callq	_chdir
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_6:
	xorl	%edi, %edi
	callq	_fifo_create_test
	xorl	%edi, %edi
	callq	_fifo_permission_test
	movl	$1, %edi
	callq	_fifo_create_test
	movl	$1, %edi
	callq	_fifo_permission_test
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"must be run as root"

	.comm	_temp_dir,4,2                   ## @temp_dir
L_.str.1:                               ## @.str.1
	.asciz	"fifo_create.XXXXXXXXXXX"

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

	.comm	_atexit_temp_dir,4,2            ## @atexit_temp_dir
L_.str.3:                               ## @.str.3
	.asciz	"chdir"

.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_geteuid
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x19, _temp_dir@GOTPAGE
Lloh3:
	ldr	x19, [x19, _temp_dir@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	ldr	w0, [x19]
	bl	_mkdtemp
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
Lloh8:
	adrp	x8, _atexit_temp_dir@GOTPAGE
Lloh9:
	ldr	x8, [x8, _atexit_temp_dir@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_atexit
	ldr	w0, [x19]
	bl	_chdir
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_6:
	mov	w0, #0
	bl	_fifo_create_test
	mov	w0, #0
	bl	_fifo_permission_test
	mov	w0, #1
	bl	_fifo_create_test
	mov	w0, #1
	bl	_fifo_permission_test
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"must be run as root"

	.comm	_temp_dir,4,2                   ; @temp_dir
l_.str.1:                               ; @.str.1
	.asciz	"fifo_create.XXXXXXXXXXX"

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

	.comm	_atexit_temp_dir,4,2            ; @atexit_temp_dir
l_.str.3:                               ; @.str.3
	.asciz	"chdir"

.subsections_via_symbols
