	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminal_getc
_terminal_getc:                         ## @terminal_getc
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_APR_POLL_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)
	movq	%rcx, -56(%rbp)
	movq	_APR_POLLIN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	-36(%rbp), %rdx
	movl	$1, %esi
	movl	$-1, %ecx
	callq	_apr_poll
	movq	%rax, %rbx
	cmpl	$1, -36(%rbp)
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %eax
	testl	%eax, -60(%rbp)
	je	LBB0_3
## %bb.2:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_3:
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdi
	callq	_apr_file_getc
	movq	%rax, %rbx
LBB0_5:
	movq	%rbx, %rdi
	callq	_APR_STATUS_IS_EINTR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_TERMINAL_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	_TERMINAL_EOF@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, (%r14)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_svn_error_wrap_apr
	jmp	LBB0_11
LBB0_14:
	movzbl	-64(%rbp), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_APR_POLL_FILE,4,2              ## @APR_POLL_FILE
	.comm	_APR_POLLIN,4,2                 ## @APR_POLLIN
	.comm	_TERMINAL_NONE,4,2              ## @TERMINAL_NONE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_TERMINAL_EOF,4,2               ## @TERMINAL_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't read from terminal"

	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_SVN_ERR_CANCELLED,4,2          ## @SVN_ERR_CANCELLED
	.comm	_TERMINAL_DEL,4,2               ## @TERMINAL_DEL
	.comm	_TERMINAL_EOL,4,2               ## @TERMINAL_EOL
	.comm	_VEOF,8,3                       ## @VEOF
	.comm	_VEOL,8,3                       ## @VEOL
	.comm	_VERASE,8,3                     ## @VERASE
	.comm	_VINTR,8,3                      ## @VINTR
	.comm	_VQUIT,8,3                      ## @VQUIT
	.comm	_VSUSP,8,3                      ## @VSUSP
	.no_dead_strip	_terminal_getc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminal_getc
_terminal_getc:                         ; @terminal_getc
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _APR_POLL_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_POLL_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1]
	stp	w9, w8, [sp, #24]
	str	x3, [sp, #16]
Lloh3:
	adrp	x22, _APR_POLLIN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _APR_POLLIN@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [sp, #8]
	add	x0, sp, #8
	add	x2, sp, #4
	mov	w1, #1
	mov	w3, #-1
	bl	_apr_poll
	mov	x20, x0
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
Lloh5:
	adrp	x10, _APR_SUCCESS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _APR_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x20, x20, x10, eq
LBB0_2:
	cbnz	x20, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_apr_file_getc
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	bl	_APR_STATUS_IS_EINTR
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _TERMINAL_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TERMINAL_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_APR_STATUS_IS_EOF
	cbz	x0, LBB0_11
; %bb.7:
Lloh10:
	adrp	x8, _TERMINAL_EOF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TERMINAL_EOF@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
LBB0_9:
	str	w8, [x19]
Lloh12:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_10:
	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
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_svn_error_wrap_apr
	b	LBB0_10
LBB0_13:
	ldrb	w8, [sp, #8]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_APR_POLL_FILE,4,2              ; @APR_POLL_FILE
	.comm	_APR_POLLIN,4,2                 ; @APR_POLLIN
	.comm	_TERMINAL_NONE,4,2              ; @TERMINAL_NONE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_TERMINAL_EOF,4,2               ; @TERMINAL_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't read from terminal"

	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_SVN_ERR_CANCELLED,4,2          ; @SVN_ERR_CANCELLED
	.comm	_TERMINAL_DEL,4,2               ; @TERMINAL_DEL
	.comm	_TERMINAL_EOL,4,2               ; @TERMINAL_EOL
	.comm	_VEOF,8,3                       ; @VEOF
	.comm	_VEOL,8,3                       ; @VEOL
	.comm	_VERASE,8,3                     ; @VERASE
	.comm	_VINTR,8,3                      ; @VINTR
	.comm	_VQUIT,8,3                      ; @VQUIT
	.comm	_VSUSP,8,3                      ; @VSUSP
	.no_dead_strip	_terminal_getc
.subsections_via_symbols
