	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jq_util_input_next_input       ## -- Begin function jq_util_input_next_input
	.p2align	4, 0x90
_jq_util_input_next_input:              ## @jq_util_input_next_input
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_jv_invalid
	movq	%rax, %r13
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_jv_parser_remaining
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_jq_util_input_read_more
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_jv_invalid
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	sete	%cl
	movq	24(%rbx), %rdi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	callq	_jv_parser_set_buf
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rdi
	callq	_jv_parser_next
	movq	%rax, %r13
	movq	16(%rbx), %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rdi
	callq	_jv_parser_remaining
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rdi
	movq	%r13, %rsi
	callq	_jv_array_append
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_jv_invalid
	movq	%rax, %r13
	testl	%r12d, %r12d
	jne	LBB0_20
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_jq_util_input_read_more
	movl	%eax, %r12d
	cmpq	$0, (%rbx)
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %r14
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	callq	_jv_string_sized
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_jv_string_concat
	movq	%rax, 16(%rbx)
	testl	%r12d, %r12d
	jne	LBB0_20
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	jne	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_jv_copy
	movl	%eax, %edi
	callq	_jv_invalid_has_msg
	testq	%rax, %rax
	jne	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_1
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_1
	jmp	LBB0_21
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_jv_string
	movq	%rax, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	cmpb	$10, -1(%rsi,%rdi)
	je	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_jv_string_sized
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_jv_string_concat
	movq	%rax, %r13
	movq	8(%rbx), %rax
	movb	$0, (%rax)
	movq	$0, (%rbx)
	testl	%r12d, %r12d
	jne	LBB0_20
	jmp	LBB0_1
LBB0_21:
	movq	16(%rbx), %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	16(%rbx), %r13
	xorl	%eax, %eax
	callq	_jv_invalid
	movq	%rax, 16(%rbx)
LBB0_23:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movb	$0, -1(%rdi,%rsi)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	decq	%rsi
	callq	_jv_string_sized
	movq	%r13, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jv_string_concat               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jq_util_input_next_input       ; -- Begin function jq_util_input_next_input
	.p2align	2
_jq_util_input_next_input:              ; @jq_util_input_next_input
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_jv_invalid
	mov	x23, x0
	mov	w22, #0
	mov	w21, #0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_jv_parser_remaining
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_jq_util_input_read_more
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_jv_invalid
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w22, #0
	cset	w3, eq
	ldr	x0, [x19, #24]
	ldp	x2, x1, [x19]
	bl	_jv_parser_set_buf
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #24]
	bl	_jv_parser_next
	mov	x23, x0
	ldr	x0, [x19, #16]
	bl	_jv_is_valid
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #24]
	bl	_jv_parser_remaining
	mov	x21, x0
	mov	x0, x23
	bl	_jv_is_valid
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #16]
	mov	x1, x23
	bl	_jv_array_append
	str	x0, [x19, #16]
	bl	_jv_invalid
	mov	x23, x0
	cbnz	w22, LBB0_16
	b	LBB0_1
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_jq_util_input_read_more
	mov	x22, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #16]
	bl	_jv_is_valid
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldp	x0, x24, [x19, #8]
	ldr	x1, [x19]
	bl	_jv_string_sized
	mov	x1, x0
	mov	x0, x24
	bl	_jv_string_concat
	str	x0, [x19, #16]
	cbnz	w22, LBB0_16
	b	LBB0_1
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_jv_is_valid
	cbnz	x0, LBB0_23
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_jv_copy
	bl	_jv_invalid_has_msg
	cbnz	x0, LBB0_23
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w22, LBB0_1
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w21, LBB0_1
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_jv_is_valid
	cbnz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_jv_string
	mov	x23, x0
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x1, x0, [x19]
	sub	x8, x1, #1
	ldrb	w9, [x0, x8]
	cmp	w9, #10
	b.eq	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
	bl	_jv_string_sized
	mov	x1, x0
	mov	x0, x23
	bl	_jv_string_concat
	mov	x23, x0
	ldr	x8, [x19, #8]
	strb	wzr, [x8]
	str	xzr, [x19]
	cbnz	w22, LBB0_16
	b	LBB0_1
LBB0_21:
	ldr	x0, [x19, #16]
	bl	_jv_is_valid
	cbz	x0, LBB0_23
; %bb.22:
	ldr	x23, [x19, #16]
	bl	_jv_invalid
	str	x0, [x19, #16]
LBB0_23:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:
	strb	wzr, [x0, x8]
	ldp	x8, x0, [x19]
	sub	x1, x8, #1
	bl	_jv_string_sized
	mov	x1, x0
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_jv_string_concat
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
