	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%rsi, %r14
	movl	%edi, %r15d
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rdi
	testq	%rax, %rax
	cmoveq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movslq	%r15d, %rbx
	movq	-8(%r14,%rbx,8), %rdi
	decq	%rbx
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_3:
	decl	%r15d
	movq	$0, (%r14,%rbx,8)
LBB0_4:
	movl	$1, %ebx
	cmpl	$2, %r15d
	jl	LBB0_11
## %bb.5:
	decl	%r15d
	movq	_LC_CTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_setlocale
	movq	_nargc@GOTPCREL(%rip), %r12
	movl	%r15d, (%r12)
	addq	$8, %r14
	movq	_t_wp@GOTPCREL(%rip), %r13
	movq	%r14, (%r13)
	movq	_parenlevel@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	cmpl	$4, %r15d
	jne	LBB0_8
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	(%r13), %r14
LBB0_8:
	movq	(%r14), %rdi
	callq	_t_lex
	movl	%eax, %edi
	callq	_oexpr
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	jmp	LBB0_9
LBB0_12:
	decl	(%r12)
	movq	(%r13), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, (%r13)
	movq	8(%rax), %rdi
	callq	_t_lex
	movl	%eax, %edi
	callq	_oexpr
	movl	%eax, %ebx
LBB0_9:
	movl	(%r12), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r12)
	cmpl	$2, %eax
	jl	LBB0_11
## %bb.10:
	movq	(%r13), %rax
	movq	(%rax), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_syntax
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %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	"["

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

L_.str.2:                               ## @.str.2
	.asciz	"missing ]"

	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
L_.str.3:                               ## @.str.3
	.space	1

	.comm	_nargc,4,2                      ## @nargc
	.comm	_t_wp,8,3                       ## @t_wp
	.comm	_parenlevel,8,3                 ## @parenlevel
L_.str.4:                               ## @.str.4
	.asciz	"!"

L_.str.5:                               ## @.str.5
	.asciz	"unexpected operator"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1]
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x0, x21, x0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
	cmp	w20, #2
	b.ge	LBB0_6
LBB0_2:
	mov	w19, #1
	b	LBB0_13
LBB0_3:
	sub	w20, w20, #1
	sxtw	x21, w20
	ldr	x0, [x19, w20, sxtw #3]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_5:
	str	xzr, [x19, x21, lsl #3]
	cmp	w20, #2
	b.lt	LBB0_2
LBB0_6:
	sub	w22, w20, #1
Lloh6:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_setlocale
Lloh11:
	adrp	x20, _nargc@GOTPAGE
Lloh12:
	ldr	x20, [x20, _nargc@GOTPAGEOFF]
	str	w22, [x20]
Lloh13:
	adrp	x21, _t_wp@GOTPAGE
Lloh14:
	ldr	x21, [x21, _t_wp@GOTPAGEOFF]
	add	x8, x19, #8
	str	x8, [x21]
Lloh15:
	adrp	x9, _parenlevel@GOTPAGE
Lloh16:
	ldr	x9, [x9, _parenlevel@GOTPAGEOFF]
Lloh17:
	str	xzr, [x9]
	cmp	w22, #4
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [x8]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x21]
LBB0_9:
	ldr	x0, [x8]
	bl	_t_lex
	bl	_oexpr
	cmp	w0, #0
	cset	w19, eq
	b	LBB0_11
LBB0_10:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [x21]
	ldr	x0, [x8, #8]!
	str	x8, [x21]
	bl	_t_lex
	bl	_oexpr
	mov	x19, x0
LBB0_11:
	ldr	w8, [x20]
	sub	w9, w8, #1
	str	w9, [x20]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.12:
	ldr	x8, [x21]
	ldr	x0, [x8]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_syntax
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"["

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

l_.str.2:                               ; @.str.2
	.asciz	"missing ]"

	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
l_.str.3:                               ; @.str.3
	.space	1

	.comm	_nargc,4,2                      ; @nargc
	.comm	_t_wp,8,3                       ; @t_wp
	.comm	_parenlevel,8,3                 ; @parenlevel
l_.str.4:                               ; @.str.4
	.asciz	"!"

l_.str.5:                               ; @.str.5
	.asciz	"unexpected operator"

.subsections_via_symbols
