	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inherit_stream_init
_inherit_stream_init:                   ## @inherit_stream_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$12, %rdi
	movq	%rdi, 16(%rbx)
	callq	_atf_process_stream_init_inherit
	movl	%eax, %edi
	callq	_RE
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.4:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_5
LBB0_3:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	leaq	L_.str(%rip), %r14
	jmp	LBB0_5
LBB0_2:
	movl	4(%rbx), %edi
	xorl	%r14d, %r14d
LBB0_5:
	callq	_dup
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	4(%rbx), %edi
	callq	_close
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_open
	movl	4(%rbx), %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ATF_REQUIRE_EQ                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stdout"

	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"stderr"

	.comm	_UNREACHABLE,4,2                ## @UNREACHABLE
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.no_dead_strip	_inherit_stream_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inherit_stream_init
_inherit_stream_init:                   ; @inherit_stream_init
	.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
	mov	x19, x0
	add	x0, x0, #12
	str	x0, [x19, #16]
	bl	_atf_process_stream_init_inherit
	bl	_RE
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [x19, #4]
Lloh3:
	adrp	x20, l_.str.1@PAGE
Lloh4:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	w0, [x19, #4]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, #0
	ldr	w0, [x19, #4]
LBB0_5:
	bl	_dup
	str	w0, [x19]
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w0, [x19, #4]
	bl	_close
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
Lloh10:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	mov	w2, #420
	bl	_open
	ldr	w1, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ATF_REQUIRE_EQ
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stdout"

	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"stderr"

	.comm	_UNREACHABLE,4,2                ; @UNREACHABLE
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.no_dead_strip	_inherit_stream_init
.subsections_via_symbols
