	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __gr_scan
___gr_scan:                             ## @__gr_scan
	.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
	movq	%rsi, %r13
	movq	%rdi, (%rsi)
	movl	$58, %esi
	callq	_strchr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, 8(%r13)
	cmpb	$58, 1(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_3:
	movb	$0, (%rax)
	incq	%rbx
	leaq	24(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.4:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	incq	%rax
	movq	%rax, -64(%rbp)
	movq	$0, 16(%r13)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	$8, %esi
	callq	_reallocf
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r15
	leaq	-64(%rbp), %r12
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	1(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strsep
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r13), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_10 Depth=2
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	(,%rax,8), %esi
	callq	_reallocf
	movq	%rax, 16(%r13)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_9
	jmp	LBB0_12
LBB0_11:
	movl	$1, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

L_.str.1:                               ## @.str.1
	.asciz	","

	.no_dead_strip	___gr_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __gr_scan
___gr_scan:                             ; @__gr_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	str	x0, [x1]
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.1:
	strb	wzr, [x0]
	add	x8, x0, #1
	str	x8, [x19, #8]
	ldrb	w9, [x0, #1]
	cmp	w9, #58
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x8
	mov	w1, #58
	bl	_strchr
	mov	x8, x0
	cbz	x0, LBB0_12
LBB0_3:
	strb	wzr, [x8]
	add	x20, x0, #1
	add	x2, x19, #24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sscanf
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.5:
	add	x8, x0, #1
	str	x8, [sp, #8]
	str	xzr, [x19, #16]
	mov	x0, #0
	mov	w1, #8
	bl	_reallocf
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.6:
	mov	x21, #0
	mov	w22, #1
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x23, x21
	add	x21, x21, #1
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #8
	mov	x1, x20
	bl	_strsep
	ldr	x8, [x19, #16]
	lsl	x9, x23, #3
	str	x0, [x8, x9]
	ldr	x0, [x19, #16]
	ldr	x8, [x0, x9]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x8]
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	lsl	w1, w22, #3
	bl	_reallocf
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	cbnz	x8, LBB0_7
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

l_.str.1:                               ; @.str.1
	.asciz	","

	.no_dead_strip	___gr_scan
.subsections_via_symbols
