	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_input_success
_mpc_input_success:                     ## @mpc_input_success
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MPC_INPUT_PIPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_mpc_input_buffer_in_range
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	2(%rax), %esi
	movq	%r12, %rdi
	callq	_realloc
	movq	%rax, %r12
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_strlen
	cltq
	movb	$0, 1(%rax,%r12)
	movq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_strlen
	cltq
	movb	%r15b, (%r12,%rax)
LBB0_4:
	movb	%r15b, 16(%rbx)
	incl	40(%rbx)
	incq	32(%rbx)
	cmpb	$10, %r15b
	jne	LBB0_6
## %bb.5:
	movq	$0, 32(%rbx)
	incl	24(%rbx)
LBB0_6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_mpc_malloc
	movq	%rax, (%r14)
	movb	%r15b, (%rax)
	movq	(%r14), %rax
	movb	$0, 1(%rax)
LBB0_8:
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_INPUT_PIPE,8,3             ## @MPC_INPUT_PIPE
	.no_dead_strip	_mpc_input_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_input_success
_mpc_input_success:                     ; @mpc_input_success
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MPC_INPUT_PIPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPC_INPUT_PIPE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_mpc_input_buffer_in_range
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x22, [x21, #8]
	mov	x0, x22
	bl	_strlen
	add	w1, w0, #2
	mov	x0, x22
	bl	_realloc
	mov	x22, x0
	str	x0, [x21, #8]
	bl	_strlen
	add	x8, x22, w0, sxtw
	strb	wzr, [x8, #1]
	ldr	x22, [x21, #8]
	mov	x0, x22
	bl	_strlen
	strb	w20, [x22, w0, sxtw]
LBB0_4:
	strb	w20, [x21, #16]
	ldr	w8, [x21, #40]
	add	w8, w8, #1
	str	w8, [x21, #40]
	ldr	x8, [x21, #32]
	add	x8, x8, #1
	str	x8, [x21, #32]
	cmp	w20, #10
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x21, #32]
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	w1, #2
	bl	_mpc_malloc
	str	x0, [x19]
	strb	w20, [x0]
	ldr	x8, [x19]
	strb	wzr, [x8, #1]
LBB0_8:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_INPUT_PIPE,8,3             ; @MPC_INPUT_PIPE
	.no_dead_strip	_mpc_input_success
.subsections_via_symbols
