	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_node
_add_node:                              ## @add_node
	.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
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	cmpl	4(%rsi), %eax
	jne	LBB0_1
## %bb.2:
	leal	(%rax,%rax), %ecx
	testl	%eax, %eax
	movl	$8, %eax
	cmovnel	%ecx, %eax
	movl	%eax, 4(%r12)
	movq	16(%r12), %rdi
	shll	$3, %eax
	leal	(%rax,%rax,2), %esi
	callq	_realloc
	movq	%rax, %r15
	movq	%rax, 16(%r12)
	movl	(%r12), %eax
	jmp	LBB0_3
LBB0_1:
	movq	16(%r12), %r15
LBB0_3:
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	cltq
	leaq	(%rax,%rax,2), %r14
	movl	%ebx, (%r15,%r14,8)
	movl	$-1, 4(%r15,%r14,8)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, -56(%rbp)
	leaq	8(%r15,%r14,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movabsq	$-4616189618054758400, %rax     ## imm = 0xBFF0000000000000
	movq	%rax, 8(%r15,%r14,8)
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	cmoveq	%rbx, %r13
	incq	%rbx
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	callq	_strtod
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsd	%xmm0, (%rax)
	movq	-56(%rbp), %rbx
	decq	%rbx
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%rbx, -56(%rbp)
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movb	(%rbx), %al
	cmpb	$57, %al
	jg	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%al, %al
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$41, %al
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$44, %al
	je	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movsbl	%al, %edi
	callq	_isgraph
	testq	%r13, %r13
	movq	%r13, %rcx
	cmoveq	%rbx, %rcx
	testl	%eax, %eax
	cmoveq	%rcx, %r13
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$58, %al
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$91, %al
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	cmoveq	%rbx, %r13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	cmpb	$93, %al
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	testb	%al, %al
	jne	LBB0_12
## %bb.14:
	movq	_KNERR_BRACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
LBB0_15:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testq	%r13, %r13
	cmoveq	%rbx, %r13
	cmpq	%r12, %r13
	je	LBB0_19
## %bb.16:
	subl	%r12d, %r13d
	leal	1(%r13), %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 16(%r15,%r14,8)
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_strncpy
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%rax, 16(%r15,%r14,8)
LBB0_20:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KNERR_BRACKET,4,2              ## @KNERR_BRACKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_add_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_node
_add_node:                              ; @add_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w8, w9, [x1]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	lsl	w9, w8, #1
	mov	w10, #8
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x21, #4]
	ldr	x0, [x21, #16]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #3
	bl	_realloc
	mov	x20, x0
	str	x0, [x21, #16]
	ldr	w8, [x21]
	b	LBB0_3
LBB0_2:
	ldr	x20, [x21, #16]
LBB0_3:
	mov	x24, #0
	add	w9, w8, #1
	str	w9, [x21]
	sxtw	x23, w8
	mov	w9, #24
	smaddl	x25, w8, w9, x20
	mov	w8, #-1
	stp	w22, w8, [x25]
	str	x19, [sp, #8]
	mov	x8, #-4616189618054758400
	str	x8, [x25, #8]!
	mov	x22, x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x24, #0
	csel	x24, x22, x24, eq
	add	x0, x22, #1
	add	x1, sp, #8
	bl	_strtod
	str	d0, [x25]
	ldr	x8, [sp, #8]
	sub	x22, x8, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	str	x22, [sp, #8]
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldrb	w8, [x22]
	cmp	w8, #57
	b.gt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #41
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #44
	b.eq	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtb	w0, w8
	bl	_isgraph
	cmp	x24, #0
	ccmp	w0, #0, #0, eq
	csel	x24, x22, x24, eq
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #58
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #91
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x24, #0
	csel	x24, x22, x24, eq
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22, #1]!
	cmp	w8, #93
	b.eq	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	cbnz	w8, LBB0_14
; %bb.16:
Lloh0:
	adrp	x8, _KNERR_BRACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KNERR_BRACKET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
LBB0_17:
	cmp	x24, #0
	csel	x8, x22, x24, eq
	cmp	x8, x19
	b.eq	LBB0_19
; %bb.18:
	sub	w21, w8, w19
	add	w0, w21, #1
	mov	w1, #1
	bl	_calloc
	mov	w8, #24
	madd	x8, x23, x8, x20
	str	x0, [x8, #16]
	mov	x1, x19
	mov	x2, x21
	bl	_strncpy
	b	LBB0_20
LBB0_19:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	mov	w8, #24
	madd	x8, x23, x8, x20
	str	x0, [x8, #16]
LBB0_20:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_KNERR_BRACKET,4,2              ; @KNERR_BRACKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_add_node
.subsections_via_symbols
