	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dopatsubst                     ## -- Begin function dopatsubst
	.p2align	4, 0x90
_dopatsubst:                            ## @dopatsubst
	.cfi_startproc
## %bb.0:
	cmpl	$3, %esi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	_m4_warnx                       ## TAILCALL
LBB0_2:
	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
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	24(%rdi), %r14
	movb	(%r14), %bl
	testb	%bl, %bl
	je	LBB0_9
## %bb.3:
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_strlen
	movq	_mimic_gnu@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_12
## %bb.4:
	cmpb	$94, %bl
	je	LBB0_7
## %bb.5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpb	$36, -1(%rax,%r14)
	jne	LBB0_8
LBB0_7:
	movq	_REG_NEWLINE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_8:
	movq	%r14, %rdi
	callq	_twiddle
	movq	%rax, %r14
	jmp	LBB0_13
LBB0_9:
	cmpl	$5, %r15d
	jb	LBB0_20
## %bb.10:
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.11:
	callq	_strlen
	movq	%rax, %r14
	jmp	LBB0_21
LBB0_20:
	xorl	%r14d, %r14d
LBB0_21:
	movq	16(%r13), %rbx
	cmpb	$0, (%rbx)
	je	LBB0_24
## %bb.22:
	incq	%rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rdi
	movq	%r14, %rsi
	callq	_addchars
	movsbl	-1(%rbx), %edi
	callq	_addchar
	cmpb	$0, (%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_23
	jmp	LBB0_24
LBB0_12:
	movq	_REG_NEWLINE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_13:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_regcomp
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_exit_regerror
LBB0_15:
	movq	-48(%rbp), %rsi
	incq	%rsi
	xorl	%edi, %edi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_xreallocarray
	movq	%rax, %rbx
	movq	16(%r13), %rdi
	cmpl	$5, %r15d
	jb	LBB0_17
## %bb.16:
	movq	32(%r13), %rax
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rax, %rcx
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.1(%rip), %rcx
LBB0_18:
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_do_subst
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_regfree
LBB0_24:
	xorl	%eax, %eax
	callq	_getstring
	movl	%eax, %edi
	callq	_pbstr
	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	"Too few arguments to patsubst"

	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
	.comm	_mimic_gnu,8,3                  ## @mimic_gnu
	.comm	_REG_NEWLINE,4,2                ## @REG_NEWLINE
L_.str.1:                               ## @.str.1
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dopatsubst                     ; -- Begin function dopatsubst
	.p2align	2
_dopatsubst:                            ; @dopatsubst
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldrb	w23, [x20]
	cbz	w23, LBB0_9
; %bb.3:
Lloh2:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_strlen
Lloh5:
	adrp	x8, _mimic_gnu@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mimic_gnu@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.4:
	cmp	w23, #94
	b.eq	LBB0_7
; %bb.5:
	cbz	x0, LBB0_8
; %bb.6:
	add	x8, x0, x20
	ldurb	w8, [x8, #-1]
	cmp	w8, #36
	b.ne	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _REG_NEWLINE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_NEWLINE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_8:
	mov	x0, x20
	bl	_twiddle
	mov	x20, x0
	b	LBB0_17
LBB0_9:
	cmp	w21, #5
	b.lo	LBB0_12
; %bb.10:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_strlen
	mov	x20, x0
	b	LBB0_13
LBB0_12:
	mov	x20, #0
LBB0_13:
	ldr	x8, [x19, #16]
	ldrb	w9, [x8]
	cbz	w9, LBB0_22
; %bb.14:
	add	x21, x8, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	mov	x1, x20
	bl	_addchars
	ldursb	w0, [x21, #-1]
	bl	_addchar
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_15
	b	LBB0_22
LBB0_16:
Lloh11:
	adrp	x8, _REG_NEWLINE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_NEWLINE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_17:
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x22
	bl	_regcomp
	cbz	w0, LBB0_19
; %bb.18:
	add	x1, sp, #8
	mov	x2, x20
	bl	_exit_regerror
LBB0_19:
	ldr	x8, [sp, #8]
	add	x1, x8, #1
	mov	x0, #0
	mov	w2, #4
	mov	x3, #0
	bl	_xreallocarray
	mov	x22, x0
	ldr	x0, [x19, #16]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	cmp	w21, #5
	b.lo	LBB0_21
; %bb.20:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	csel	x3, x3, x8, eq
LBB0_21:
	add	x1, sp, #8
	mov	x2, x20
	mov	x4, x22
	bl	_do_subst
	mov	x0, x22
	bl	_free
	add	x0, sp, #8
	bl	_regfree
LBB0_22:
	bl	_getstring
	bl	_pbstr
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too few arguments to patsubst"

	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
	.comm	_mimic_gnu,8,3                  ; @mimic_gnu
	.comm	_REG_NEWLINE,4,2                ; @REG_NEWLINE
l_.str.1:                               ; @.str.1
	.space	1

.subsections_via_symbols
