	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_array
_read_array:                            ## @read_array
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.2:
	movl	$1, %edi
	callq	_assert
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_9
## %bb.3:
	leaq	1(%rbx), %r12
	negq	%rbx
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_ELFTC_ISDIGIT
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r13), %eax
	incq	%r13
	decq	%rbx
	incq	%r12
	testb	%al, %al
	jne	LBB0_4
	jmp	LBB0_9
LBB0_6:
	cmpb	$95, -1(%r13)
	jne	LBB0_9
## %bb.7:
	leaq	-1(%r13), %rax
	movq	(%r15), %rcx
	addq	%rcx, %rbx
	xorl	%edi, %edi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	setne	%dil
	callq	_assert
	leaq	16(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dest_cstring
	movl	$3, %esi
	subq	%rbx, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_init_cstring
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	negq	%rbx
	movq	(%r15), %rsi
	movq	16(%r15), %rdi
	incq	%rdi
	movq	%rbx, %rdx
	callq	_strncpy
	movq	16(%r15), %rax
	movb	$91, (%rax)
	movq	16(%r15), %rax
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movb	$93, (%rax,%r12)
	movl	$1, 8(%r15)
	movq	%r13, (%r15)
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_array
_read_array:                            ; @read_array
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0]
	cbz	x22, LBB0_9
; %bb.2:
	mov	w0, #1
	bl	_assert
	ldrb	w8, [x22]
	cbz	w8, LBB0_9
; %bb.3:
	add	x23, x22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_ELFTC_ISDIGIT
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x23], #1
	add	x22, x22, #1
	cbnz	w8, LBB0_4
	b	LBB0_9
LBB0_6:
	mov	x8, x23
	ldrb	w9, [x8, #-1]!
	cmp	w9, #95
	b.ne	LBB0_9
; %bb.7:
	mov	x21, x19
	ldr	x24, [x21], #16
	sub	x20, x22, x24
	cmp	x8, x24
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	bl	_dest_cstring
	add	x1, x20, #3
	mov	x0, x21
	bl	_init_cstring
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x8, [x19, #16]
	add	x0, x8, #1
	ldr	x1, [x19]
	mov	x2, x20
	bl	_strncpy
	ldr	x8, [x19, #16]
	mov	w9, #91
	strb	w9, [x8]
	ldr	x8, [x19, #16]
	sub	x8, x8, x24
	add	x8, x8, x22
	mov	w9, #93
	strb	w9, [x8, #1]
	mov	w0, #1
	str	w0, [x19, #8]
	str	x23, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_array
.subsections_via_symbols
