	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doregexp                       ## -- Begin function doregexp
	.p2align	4, 0x90
_doregexp:                              ## @doregexp
	.cfi_startproc
## %bb.0:
	cmpl	$3, %esi
	jg	LBB0_1
## %bb.16:
	leaq	L_.str(%rip), %rdi
	jmp	_m4_warnx                       ## TAILCALL
LBB0_1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	cmpb	$0, (%rax)
	movq	_mimic_gnu@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	jne	LBB0_6
## %bb.2:
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpl	$4, %ebx
	je	LBB0_15
## %bb.4:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.5:
	callq	_pbstr
	movq	(%r15), %rax
LBB0_6:
	movq	24(%r14), %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_twiddle
	movq	%rax, %r15
LBB0_8:
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movq	_REG_NEWLINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_regcomp
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_exit_regerror
LBB0_10:
	movq	-40(%rbp), %rsi
	incq	%rsi
	xorl	%edi, %edi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_xreallocarray
	movq	%rax, %r12
	cmpl	$4, %ebx
	je	LBB0_12
## %bb.11:
	movq	32(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.13:
	movq	16(%r14), %rdi
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdx
	movq	%r12, %r8
	callq	_do_regexp
	jmp	LBB0_14
LBB0_12:
	movq	16(%r14), %rdi
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_do_regexpindex
LBB0_14:
	movq	%r12, %rdi
	callq	_free
	leaq	-40(%rbp), %rdi
	callq	_regfree
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too few arguments to regexp"

	.comm	_mimic_gnu,8,3                  ## @mimic_gnu
	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
	.comm	_REG_NEWLINE,4,2                ## @REG_NEWLINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doregexp                       ; -- Begin function doregexp
	.p2align	2
_doregexp:                              ; @doregexp
	.cfi_startproc
; %bb.0:
	cmp	w1, #3
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	_m4_warnx
LBB0_2:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldrb	w9, [x8]
Lloh2:
	adrp	x21, _mimic_gnu@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mimic_gnu@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	w9, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_6
; %bb.3:
	cmp	w20, #4
	b.eq	LBB0_15
; %bb.4:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_15
; %bb.5:
	bl	_pbstr
	ldr	x8, [x21]
LBB0_6:
	ldr	x21, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_twiddle
	mov	x21, x0
LBB0_8:
Lloh4:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _REG_NEWLINE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REG_NEWLINE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x0, sp, #8
	mov	x1, x21
	bl	_regcomp
	cbz	w0, LBB0_10
; %bb.9:
	add	x1, sp, #8
	mov	x2, x21
	bl	_exit_regerror
LBB0_10:
	ldr	x8, [sp, #8]
	add	x1, x8, #1
	mov	x0, #0
	mov	w2, #4
	mov	x3, #0
	bl	_xreallocarray
	mov	x22, x0
	cmp	w20, #4
	b.eq	LBB0_13
; %bb.11:
	ldr	x3, [x19, #32]
	cbz	x3, LBB0_13
; %bb.12:
	ldr	x0, [x19, #16]
	add	x1, sp, #8
	mov	x2, x21
	mov	x4, x22
	bl	_do_regexp
	b	LBB0_14
LBB0_13:
	ldr	x0, [x19, #16]
	add	x1, sp, #8
	mov	x2, x21
	mov	x3, x22
	bl	_do_regexpindex
LBB0_14:
	mov	x0, x22
	bl	_free
	add	x0, sp, #8
	bl	_regfree
LBB0_15:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too few arguments to regexp"

	.comm	_mimic_gnu,8,3                  ; @mimic_gnu
	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
	.comm	_REG_NEWLINE,4,2                ; @REG_NEWLINE
.subsections_via_symbols
