	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse
_parse:                                 ## @parse
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_strlen
	xorl	%r15d, %r15d
	cmpl	$255, %eax
	ja	LBB0_26
## %bb.1:
	movl	%eax, %ebx
	incl	%ebx
	movl	%ebx, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	cmpb	$0, (%r12)
	je	LBB0_24
## %bb.3:
	movb	$0, -1072(%rbp)
	movb	$0, -816(%rbp)
	movb	$0, -560(%rbp)
	movb	$0, -304(%rbp)
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_23
LBB0_5:
	movb	$0, (%rbx)
	incq	%rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$32, (%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_6
## %bb.7:
	leaq	-304(%rbp), %rdi
	movq	%r12, %rsi
	movl	$255, %edx
	callq	_strncpy
	leaq	-1(%rbx), %r15
	leaq	-560(%rbp), %rdi
	movq	%r15, %rsi
	movl	$255, %edx
	callq	_strncpy
	movb	-1(%rbx), %al
	movq	%r15, %rdi
	cmpb	$40, %al
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movl	$41, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %rdi
	movb	(%rax), %al
LBB0_10:
	cmpb	$91, %al
	jne	LBB0_13
## %bb.11:
	incq	%rdi
	movl	$93, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, %rdi
	movb	(%rax), %al
LBB0_13:
	cmpb	$123, %al
	jne	LBB0_16
## %bb.14:
	incq	%rdi
	movl	$125, %esi
	callq	_strchr
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %rbx
	movb	$0, (%rax)
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_18
## %bb.19:
	leaq	-560(%rbp), %rdi
	movq	%r15, %rsi
	movl	$255, %edx
	callq	_strncpy
	leaq	-816(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$255, %edx
	callq	_strncpy
	movq	%rbx, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movq	%rax, %r15
	movb	$0, (%rax)
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%r15)
	leaq	1(%r15), %r15
	je	LBB0_21
## %bb.22:
	leaq	-816(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$255, %edx
	callq	_strncpy
	leaq	-1072(%rbp), %rdi
	movq	%r15, %rsi
	movl	$255, %edx
	callq	_strncpy
LBB0_23:
	leaq	-304(%rbp), %rax
	movq	%rax, -1104(%rbp)
	leaq	-560(%rbp), %rax
	movq	%rax, -1096(%rbp)
	leaq	-816(%rbp), %rax
	movq	%rax, -1088(%rbp)
	leaq	-1072(%rbp), %rax
	movdqa	-304(%rbp), %xmm0
	pinsrb	$1, -560(%rbp), %xmm0
	pinsrb	$2, -816(%rbp), %xmm0
	movq	%rax, -1080(%rbp)
	pinsrb	$3, -1072(%rbp), %xmm0
	pxor	%xmm1, %xmm1
	pcmpeqb	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm0
	pxor	%xmm1, %xmm0
	pmovsxbd	%xmm0, %xmm0
	movmskps	%xmm0, %eax
	movl	%eax, %ecx
	shrb	%cl
	andb	$5, %cl
	subb	%cl, %al
	movl	%eax, %ecx
	andb	$51, %cl
	shrb	$2, %al
	andb	$51, %al
	addb	%cl, %al
	movl	%eax, %ecx
	shrb	$4, %cl
	addb	%al, %cl
	andb	$15, %cl
	movzbl	%cl, %edi
	leaq	-1104(%rbp), %rsi
	movq	%r14, %rdx
	callq	_replace
LBB0_24:
	movq	%r14, %rdi
	callq	_strdup
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %r15d
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_r_str_replace
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_r_str_replace
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_25
LBB0_15:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	xorl	%r15d, %r15d
LBB0_25:
	movq	%r12, %rdi
	callq	_free
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r15d, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unbalanced bracket\n"

L_.str.1:                               ## @.str.1
	.asciz	"+ -"

L_.str.2:                               ## @.str.2
	.asciz	"- "

L_.str.3:                               ## @.str.3
	.asciz	"- -"

L_.str.4:                               ## @.str.4
	.asciz	"+ "

	.no_dead_strip	_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse
_parse:                                 ; @parse
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1072
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	bl	_strlen
	cmp	w0, #255
	b.hi	LBB0_24
; %bb.1:
	add	w22, w0, #1
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_24
; %bb.2:
	mov	x19, x0
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldrb	w8, [x19]
	cbz	w8, LBB0_23
; %bb.3:
	strb	wzr, [sp, #40]
	strb	wzr, [sp, #296]
	strb	wzr, [sp, #552]
	strb	wzr, [sp, #808]
	mov	x0, x19
	mov	w1, #32
	bl	_strchr
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #9
	bl	_strchr
	mov	x22, x0
	cbz	x0, LBB0_22
LBB0_5:
	strb	wzr, [x22], #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22], #1
	cmp	w8, #32
	b.eq	LBB0_6
; %bb.7:
	add	x0, sp, #808
	mov	x1, x19
	mov	w2, #255
	bl	_strncpy
	sub	x21, x22, #1
	add	x0, sp, #552
	mov	x1, x21
	mov	w2, #255
	bl	_strncpy
	ldurb	w8, [x22, #-1]
	mov	x0, x21
	cmp	w8, #40
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x22
	mov	w1, #41
	bl	_strchr
	cbz	x0, LBB0_25
; %bb.9:
	ldrb	w8, [x0]
LBB0_10:
	cmp	w8, #91
	b.ne	LBB0_13
; %bb.11:
	add	x0, x0, #1
	mov	w1, #93
	bl	_strchr
	cbz	x0, LBB0_25
; %bb.12:
	ldrb	w8, [x0]
LBB0_13:
	cmp	w8, #123
	b.ne	LBB0_15
; %bb.14:
	add	x0, x0, #1
	mov	w1, #125
	bl	_strchr
	cbz	x0, LBB0_25
LBB0_15:
	mov	w1, #44
	bl	_strchr
	cbz	x0, LBB0_22
; %bb.16:
	mov	x22, x0
	strb	wzr, [x0]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, #1]!
	cmp	w8, #32
	b.eq	LBB0_17
; %bb.18:
	add	x0, sp, #552
	mov	x1, x21
	mov	w2, #255
	bl	_strncpy
	add	x0, sp, #296
	mov	x1, x22
	mov	w2, #255
	bl	_strncpy
	mov	x0, x22
	mov	w1, #44
	bl	_strchr
	cbz	x0, LBB0_22
; %bb.19:
	mov	x21, x0
	strb	wzr, [x0]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21, #1]!
	cmp	w8, #32
	b.eq	LBB0_20
; %bb.21:
	add	x0, sp, #296
	mov	x1, x22
	mov	w2, #255
	bl	_strncpy
	add	x0, sp, #40
	mov	x1, x21
	mov	w2, #255
	bl	_strncpy
LBB0_22:
	add	x8, sp, #808
	add	x9, sp, #552
	stp	x8, x9, [sp, #8]
	add	x8, sp, #296
	add	x9, sp, #40
	stp	x8, x9, [sp, #24]
	ldrb	w8, [sp, #808]
	ldrb	w9, [sp, #552]
	cmp	w9, #0
	cset	w9, ne
	cmp	w8, #0
	cinc	w8, w9, ne
	ldrb	w9, [sp, #296]
	cmp	w9, #0
	cinc	w8, w8, ne
	ldrb	w9, [sp, #40]
	cmp	w9, #0
	cinc	w0, w8, ne
	add	x1, sp, #8
	mov	x2, x20
	bl	_replace
LBB0_23:
	mov	x0, x20
	bl	_strdup
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w21, #1
	mov	w3, #1
	bl	_r_str_replace
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh9:
	adrp	x2, l_.str.4@PAGE
Lloh10:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w3, #1
	bl	_r_str_replace
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_strcpy
	mov	x0, x22
	bl	_free
	b	LBB0_26
LBB0_24:
	mov	w21, #0
	b	LBB0_27
LBB0_25:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	mov	w21, #0
LBB0_26:
	mov	x0, x19
	bl	_free
LBB0_27:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x21
	add	sp, sp, #1072
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unbalanced bracket\n"

l_.str.1:                               ; @.str.1
	.asciz	"+ -"

l_.str.2:                               ; @.str.2
	.asciz	"- "

l_.str.3:                               ; @.str.3
	.asciz	"- -"

l_.str.4:                               ; @.str.4
	.asciz	"+ "

	.no_dead_strip	_parse
.subsections_via_symbols
