	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_init                        ## -- Begin function io_init
	.p2align	4, 0x90
_io_init:                               ## @io_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_E_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tuklib_open_stdxxx
	xorl	%eax, %eax
	callq	_geteuid
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	_warn_fchown@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_user_abort_pipe@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_pipe
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_message_fatal
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%eax, %eax
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rcx
	movl	(%rcx), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_message_fatal
LBB0_5:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	(%r15), %esi
	xorl	%eax, %eax
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.6:
	movq	(%r14), %rcx
	movl	4(%rcx), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_message_fatal                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_E_ERROR,4,2                    ## @E_ERROR
	.comm	_warn_fchown,4,2                ## @warn_fchown
	.comm	_user_abort_pipe,8,3            ## @user_abort_pipe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error creating a pipe: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	__STAT_DIRSIZE,4,2              ## @_STAT_DIRSIZE
	.comm	__STAT_EXEC_EXT,4,2             ## @_STAT_EXEC_EXT
	.comm	__STAT_EXEC_MAGIC,4,2           ## @_STAT_EXEC_MAGIC
	.comm	__djstat_flags,4,2              ## @_djstat_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_init                        ; -- Begin function io_init
	.p2align	2
_io_init:                               ; @io_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _E_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_tuklib_open_stdxxx
	bl	_geteuid
	cmp	x0, #0
	cset	w8, eq
Lloh3:
	adrp	x9, _warn_fchown@GOTPAGE
Lloh4:
	ldr	x9, [x9, _warn_fchown@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x21, _user_abort_pipe@GOTPAGE
Lloh7:
	ldr	x21, [x21, _user_abort_pipe@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_pipe
Lloh8:
	adrp	x20, _errno@GOTPAGE
Lloh9:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	w0, [x20]
	bl	_strerror
	mov	x1, x0
	mov	x0, x19
	bl	_message_fatal
LBB0_2:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh12:
	adrp	x24, _F_GETFL@GOTPAGE
Lloh13:
	ldr	x24, [x24, _F_GETFL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_fcntl
Lloh14:
	adrp	x22, _F_SETFL@GOTPAGE
Lloh15:
	ldr	x22, [x22, _F_SETFL@GOTPAGEOFF]
Lloh16:
	adrp	x23, _O_NONBLOCK@GOTPAGE
Lloh17:
	ldr	x23, [x23, _O_NONBLOCK@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	w8, [x8]
	ldr	w1, [x22]
	ldr	w9, [x23]
	orr	w9, w9, w0
	str	x9, [sp]
	mov	x0, x8
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_5
LBB0_4:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	w0, [x20]
	bl	_strerror
	mov	x1, x0
	mov	x0, x19
	bl	_message_fatal
LBB0_5:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	ldr	w1, [x24]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	ldr	w1, [x22]
	ldr	w9, [x23]
	orr	w9, w9, w0
	str	x9, [sp]
	mov	x0, x8
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	w0, [x20]
	bl	_strerror
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_message_fatal
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_E_ERROR,4,2                    ; @E_ERROR
	.comm	_warn_fchown,4,2                ; @warn_fchown
	.comm	_user_abort_pipe,8,3            ; @user_abort_pipe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error creating a pipe: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	__STAT_DIRSIZE,4,2              ; @_STAT_DIRSIZE
	.comm	__STAT_EXEC_EXT,4,2             ; @_STAT_EXEC_EXT
	.comm	__STAT_EXEC_MAGIC,4,2           ; @_STAT_EXEC_MAGIC
	.comm	__djstat_flags,4,2              ; @_djstat_flags
.subsections_via_symbols
