	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminal_open
_terminal_open:                         ## @terminal_open
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_APR_FOPEN_READ@GOTPCREL(%rip), %rax
	movq	_APR_FOPEN_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_APR_OS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %r8
	callq	_apr_file_open
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_apr_palloc
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_apr_file_open_stdin
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	-48(%rbp), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_TRUE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	movq	%rax, %rdi
	movq	%rdx, %rsi
	jmp	LBB0_8
LBB0_4:
	leaq	-32(%rbp), %rdi
	movq	%r15, %rsi
	callq	_apr_file_open_stderr
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_svn_error_wrap_apr
	jmp	LBB0_9
LBB0_7:
	movq	(%r14), %rdi
	movq	-40(%rbp), %rsi
	movq	-32(%rbp), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %r8
LBB0_8:
	movq	%r15, %r9
	callq	_terminal_handle_init
	movq	(%r14), %rsi
	movl	(%rsi), %edi
	movq	_terminal_plain_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_terminal_child_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_apr_pool_cleanup_register
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/tty"

	.comm	_APR_FOPEN_READ,4,2             ## @APR_FOPEN_READ
	.comm	_APR_FOPEN_WRITE,4,2            ## @APR_FOPEN_WRITE
	.comm	_APR_OS_DEFAULT,4,2             ## @APR_OS_DEFAULT
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"Can't open stdin"

L_.str.2:                               ## @.str.2
	.asciz	"Can't open stderr"

	.comm	_terminal_plain_cleanup,4,2     ## @terminal_plain_cleanup
	.comm	_terminal_child_cleanup,4,2     ## @terminal_child_cleanup
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ## @FILE_SHARE_WRITE
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_TCSAFLUSH,4,2                  ## @TCSAFLUSH
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_VTIME,8,3                      ## @VTIME
	.no_dead_strip	_terminal_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminal_open
_terminal_open:                         ; @terminal_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _APR_FOPEN_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_FOPEN_READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _APR_FOPEN_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _APR_FOPEN_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh6:
	adrp	x8, _APR_OS_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APR_OS_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x4, x20
	bl	_apr_file_open
	mov	x21, x0
	mov	x0, x20
	mov	w1, #56
	bl	_apr_palloc
	str	x0, [x19]
	cbz	w21, LBB0_3
; %bb.1:
	add	x0, sp, #16
	mov	x1, x20
	bl	_apr_file_open_stdin
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	x1, [sp, #24]
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh15:
	ldr	x3, [x8]
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	x4, [x8]
	mov	x2, x1
	b	LBB0_8
LBB0_4:
	add	x0, sp, #8
	mov	x1, x20
	bl	_apr_file_open_stderr
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, x0
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_svn_error_wrap_apr
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19]
	ldp	x2, x1, [sp, #8]
Lloh21:
	adrp	x8, _FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh23:
	ldr	x3, [x8]
	mov	x4, x3
LBB0_8:
	mov	x5, x20
	bl	_terminal_handle_init
	ldr	x1, [x19]
	ldr	w0, [x1]
Lloh24:
	adrp	x8, _terminal_plain_cleanup@GOTPAGE
Lloh25:
	ldr	x8, [x8, _terminal_plain_cleanup@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x8, _terminal_child_cleanup@GOTPAGE
Lloh28:
	ldr	x8, [x8, _terminal_child_cleanup@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	bl	_apr_pool_cleanup_register
Lloh30:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	x0, [x8]
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/tty"

	.comm	_APR_FOPEN_READ,4,2             ; @APR_FOPEN_READ
	.comm	_APR_FOPEN_WRITE,4,2            ; @APR_FOPEN_WRITE
	.comm	_APR_OS_DEFAULT,4,2             ; @APR_OS_DEFAULT
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"Can't open stdin"

l_.str.2:                               ; @.str.2
	.asciz	"Can't open stderr"

	.comm	_terminal_plain_cleanup,4,2     ; @terminal_plain_cleanup
	.comm	_terminal_child_cleanup,4,2     ; @terminal_child_cleanup
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ; @FILE_SHARE_WRITE
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_TCSAFLUSH,4,2                  ; @TCSAFLUSH
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_VTIME,8,3                      ; @VTIME
	.no_dead_strip	_terminal_open
.subsections_via_symbols
