	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmatch                         ## -- Begin function pmatch
	.p2align	4, 0x90
_pmatch:                                ## @pmatch
	.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
	movq	%rdi, %r13
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_makeinit
	movl	%eax, %esi
	movl	%eax, (%r13)
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %esi
LBB0_3:
	movq	_patbeg@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_patlen@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_NCHARS@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r14)
	leaq	8(%r14), %r14
	movl	$2, %esi
	je	LBB0_43
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_38 Depth 2
                                        ##     Child Loop BB0_41 Depth 2
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r13), %rcx
	movslq	%esi, %rax
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_patlen@GOTPCREL(%rip), %rcx
	movl	%ebx, (%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r13), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%r14,%rbx,8), %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	callq	_cgoto
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$1, %eax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	addq	$8, %r12
	cmpq	$0, (%r14,%rbx,8)
	leaq	1(%rbx), %rbx
	movl	%eax, %esi
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r13), %rcx
	cltq
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	shrq	$3, %r12
	decl	%r12d
	movq	_patlen@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	testl	%r12d, %r12d
	js	LBB0_17
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_patlen@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_17
	jmp	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_patlen@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jns	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 40(%r13)
	je	LBB0_42
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, 16(%r13)
	jl	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	movq	8(%rax,%rbx,8), %rdi
	callq	_xfree
	movslq	16(%r13), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %r12d
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	24(%r13), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	jns	LBB0_24
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_overflo
	testl	%ebx, %ebx
	js	LBB0_39
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx), %rax
	movq	16(%rcx), %rcx
	movl	%r12d, %r8d
	cmpl	$8, %r12d
	jb	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movl	$0, %esi
	cmpq	$32, %rdx
	jb	LBB0_35
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rdx
	movq	%rdx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rdx
	jae	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_31
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_35
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	andq	$-4, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rax,%rdx,4), %xmm0
	movups	16(%rax,%rdx,4), %xmm1
	movups	%xmm0, (%rcx,%rdx,4)
	movups	%xmm1, 16(%rcx,%rdx,4)
	movups	32(%rax,%rdx,4), %xmm0
	movups	48(%rax,%rdx,4), %xmm1
	movups	%xmm0, 32(%rcx,%rdx,4)
	movups	%xmm1, 48(%rcx,%rdx,4)
	movups	64(%rax,%rdx,4), %xmm0
	movups	80(%rax,%rdx,4), %xmm1
	movups	%xmm0, 64(%rcx,%rdx,4)
	movups	%xmm1, 80(%rcx,%rdx,4)
	movups	96(%rax,%rdx,4), %xmm0
	movups	112(%rax,%rdx,4), %xmm1
	movups	%xmm0, 96(%rcx,%rdx,4)
	movups	%xmm1, 112(%rcx,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rdi
	jne	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r9, %r9
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%rdx,4), %rdi
	addq	$16, %rdi
	leaq	(%rax,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rdx,%rbx), %xmm0
	movups	(%rdx,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_33
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r8, %rsi
	je	LBB0_39
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %rdx
	notq	%rdx
	addq	%r8, %rdx
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_37
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rsi,4), %ebx
	movl	%ebx, (%rcx,%rsi,4)
	incq	%rsi
	decq	%rdi
	jne	LBB0_36
LBB0_37:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$3, %rdx
	jb	LBB0_39
	.p2align	4, 0x90
LBB0_38:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rsi,4), %edx
	movl	%edx, (%rcx,%rsi,4)
	movl	4(%rax,%rsi,4), %edx
	movl	%edx, 4(%rcx,%rsi,4)
	movl	8(%rax,%rsi,4), %edx
	movl	%edx, 8(%rcx,%rsi,4)
	movl	12(%rax,%rsi,4), %edx
	movl	%edx, 12(%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_38
LBB0_39:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$2, 16(%r13)
	movl	$2, (%r13)
	movq	32(%r13), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rax)
	cmpl	$0, (%r15)
	jle	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rax
	movq	16(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_41:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$0, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r15), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_41
	jmp	LBB0_42
LBB0_43:
	xorl	%eax, %eax
	jmp	LBB0_44
LBB0_11:
	movq	_patbeg@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movl	$1, %eax
LBB0_44:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_patbeg,8,3                     ## @patbeg
	.comm	_patlen,4,2                     ## @patlen
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of space in pmatch"

	.comm	_NCHARS,4,2                     ## @NCHARS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmatch                         ; -- Begin function pmatch
	.p2align	2
_pmatch:                                ; @pmatch
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	bl	_makeinit
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x20]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20]
LBB0_3:
Lloh0:
	adrp	x23, _patbeg@GOTPAGE
Lloh1:
	ldr	x23, [x23, _patbeg@GOTPAGEOFF]
	str	x19, [x23]
Lloh2:
	adrp	x24, _patlen@GOTPAGE
Lloh3:
	ldr	x24, [x24, _patlen@GOTPAGEOFF]
	mov	w8, #-1
	str	w8, [x24]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	mov	w25, #2
Lloh6:
	adrp	x26, _NCHARS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NCHARS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19], #8
	mov	w0, #2
	cbz	x8, LBB0_32
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_28 Depth 2
                                        ;     Child Loop BB0_31 Depth 2
	mov	w27, #0
	mov	x22, #0
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #32]
	ldr	x8, [x8, w0, sxtw #3]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	str	w27, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	sxtw	x1, w0
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x2, [x19, x22]
	ldr	w0, [x8, x2, lsl #2]
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_cgoto
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x19, x22]
	add	x22, x22, #8
	add	w27, w27, #1
	cbnz	x8, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8, w0, sxtw #3]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	lsr	x8, x22, #3
	sub	w8, w8, #1
	str	w8, [x24]
	tbnz	w8, #31, LBB0_15
	b	LBB0_33
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	tbz	w8, #31, LBB0_33
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #16]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #2
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x22, lsl #3]
	bl	_xfree
	add	x8, x22, #1
	ldrsw	x9, [x20, #16]
	cmp	x22, x9
	mov	x22, x8
	b.lt	LBB0_18
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	w27, [x8]
	add	w22, w27, #1
	mov	x0, x22
	mov	w1, #4
	bl	_calloc
	ldr	x8, [x20, #24]
	str	x0, [x8, #16]
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	tbz	w27, #31, LBB0_22
	b	LBB0_29
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_overflo
	tbnz	w27, #31, LBB0_29
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	ldr	x10, [x20, #24]
	ldr	x9, [x10]
	ldr	x10, [x10, #16]
	cmp	w22, #16
	b.lo	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	x11, x10, x9
	cmp	x11, #64
	b.lo	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	and	x8, x22, #0xfffffff0
	add	x11, x10, #32
	add	x12, x9, #32
	mov	x13, x8
LBB0_25:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_25
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x8, x22
	b.eq	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x11, x8, #2
	add	x10, x10, x11
	add	x9, x9, x11
	sub	x8, x22, x8
LBB0_28:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9], #4
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_28
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w25, [x20, #16]
	str	w25, [x20]
	ldr	x8, [x20, #32]
	ldr	x9, [x8]
	str	x9, [x8, #16]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	ldr	x9, [x20, #8]
	ldr	x9, [x9, #16]
LBB0_31:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x26]
	cmp	x8, x10
	b.lt	LBB0_31
	b	LBB0_4
LBB0_32:
	mov	w0, #0
	b	LBB0_34
LBB0_33:
	str	x19, [x23]
	mov	w0, #1
LBB0_34:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_patbeg,8,3                     ; @patbeg
	.comm	_patlen,4,2                     ; @patlen
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of space in pmatch"

	.comm	_NCHARS,4,2                     ; @NCHARS
.subsections_via_symbols
