	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regexpr                        ## -- Begin function regexpr
	.p2align	4, 0x90
_regexpr:                               ## @regexpr
	.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	_regexpr.buf(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	_regexpr.bufsz(%rip), %edi
	callq	_malloc
	movq	%rax, _regexpr.buf(%rip)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_FATAL
	movq	_regexpr.buf(%rip), %rax
LBB0_3:
	movq	%rax, -48(%rbp)
	leaq	_regexpr.buf(%rip), %r14
	leaq	_regexpr.bufsz(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	leaq	-48(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	$92, (%rax)
	xorl	%eax, %eax
	callq	_input
	movq	-48(%rbp), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, -48(%rbp)
	movb	%al, (%rcx)
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_input
	movq	%rax, %r13
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$47, %r13d
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edx
	subl	_regexpr.buf(%rip), %edx
	addl	$3, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$500, %ecx                      ## imm = 0x1F4
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_adjbuf
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$92, %r13d
	jne	LBB0_9
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_regexpr.buf(%rip), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_FATAL
	cmpl	$92, %r13d
	je	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$10, %r13d
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	%r13b, (%rax)
	jmp	LBB0_4
LBB0_13:
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	testl	%r13d, %r13d
	jne	LBB0_15
## %bb.14:
	movq	_regexpr.buf(%rip), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_SYNTAX
	jmp	LBB0_15
LBB0_10:
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	movq	_regexpr.buf(%rip), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_SYNTAX
	movl	$10, %edi
	callq	_unput
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
LBB0_15:
	movq	_regexpr.buf(%rip), %rdi
	callq	_tostring
	movq	_yylval@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$47, %edi
	callq	_unput
	movq	_REGEXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RET
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_regexpr.buf,8,3 ## @regexpr.buf
	.section	__DATA,__data
	.p2align	2                               ## @regexpr.bufsz
_regexpr.bufsz:
	.long	500                             ## 0x1f4

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of space for rex expr"

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

L_.str.2:                               ## @.str.2
	.asciz	"out of space for reg expr %.10s..."

L_.str.3:                               ## @.str.3
	.asciz	"newline in regular expression %.10s..."

L_.str.4:                               ## @.str.4
	.asciz	"non-terminated regular expression %.10s..."

	.comm	_yylval,4,2                     ## @yylval
	.comm	_REGEXPR,4,2                    ## @REGEXPR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regexpr                        ; -- Begin function regexpr
	.p2align	2
_regexpr:                               ; @regexpr
	.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
	adrp	x24, _regexpr.buf@PAGE
	ldr	x0, [x24, _regexpr.buf@PAGEOFF]
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _regexpr.bufsz@PAGE
Lloh1:
	ldr	w0, [x8, _regexpr.bufsz@PAGEOFF]
	bl	_malloc
	str	x0, [x24, _regexpr.buf@PAGEOFF]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
	ldr	x0, [x24, _regexpr.buf@PAGEOFF]
LBB0_3:
Lloh4:
	adrp	x19, _regexpr.buf@PAGE
Lloh5:
	add	x19, x19, _regexpr.buf@PAGEOFF
Lloh6:
	adrp	x20, _regexpr.bufsz@PAGE
Lloh7:
	add	x20, x20, _regexpr.bufsz@PAGEOFF
	str	x0, [sp, #8]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	w25, #92
Lloh10:
	adrp	x22, l_.str.2@PAGE
Lloh11:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	w25, [x8]
	bl	_input
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	w0, [x8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_input
	mov	x23, x0
	cbz	w23, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #47
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x19]
	sub	w8, w8, w9
	add	w2, w8, #3
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w3, #500
	mov	x5, x21
	bl	_adjbuf
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #92
	b.ne	LBB0_10
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24, _regexpr.buf@PAGEOFF]
	str	x8, [sp]
	mov	x0, x22
	bl	_FATAL
	cmp	w23, #92
	b.eq	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #10
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	w23, [x8]
	b	LBB0_5
LBB0_12:
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	cbnz	w23, LBB0_15
; %bb.13:
	ldr	x1, [x24, _regexpr.buf@PAGEOFF]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_SYNTAX
	b	LBB0_15
LBB0_14:
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	ldr	x1, [x24, _regexpr.buf@PAGEOFF]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_SYNTAX
	mov	w0, #10
	bl	_unput
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
LBB0_15:
	ldr	x0, [x24, _regexpr.buf@PAGEOFF]
	bl	_tostring
Lloh16:
	adrp	x8, _yylval@GOTPAGE
Lloh17:
	ldr	x8, [x8, _yylval@GOTPAGEOFF]
Lloh18:
	str	w0, [x8]
	mov	w0, #47
	bl	_unput
Lloh19:
	adrp	x8, _REGEXPR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REGEXPR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_RET
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_regexpr.buf,8,3 ; @regexpr.buf
	.section	__DATA,__data
	.p2align	2                               ; @regexpr.bufsz
_regexpr.bufsz:
	.long	500                             ; 0x1f4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of space for rex expr"

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

l_.str.2:                               ; @.str.2
	.asciz	"out of space for reg expr %.10s..."

l_.str.3:                               ; @.str.3
	.asciz	"newline in regular expression %.10s..."

l_.str.4:                               ; @.str.4
	.asciz	"non-terminated regular expression %.10s..."

	.comm	_yylval,4,2                     ; @yylval
	.comm	_REGEXPR,4,2                    ; @REGEXPR
.subsections_via_symbols
