	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gmatch                         ## -- Begin function gmatch
	.p2align	4, 0x90
_gmatch:                                ## @gmatch
	.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, %r15
	movq	%rdi, %r12
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	callq	_mbtowc
	movl	%eax, %r13d
	cmpl	$2, %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	movl	-44(%rbp), %r13d
LBB0_2:
	addq	%r12, %rbx
	movl	(%r14), %edx
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbtowc
	xorl	%ecx, %ecx
	testl	%eax, %eax
	js	LBB0_30
## %bb.3:
	je	LBB0_8
## %bb.4:
	movl	%eax, %eax
	addq	%rax, %r15
	movl	-44(%rbp), %r14d
	cmpl	$90, %r14d
	jg	LBB0_9
## %bb.5:
	cmpl	$42, %r14d
	je	LBB0_15
## %bb.6:
	cmpl	$63, %r14d
	jne	LBB0_12
## %bb.7:
	testl	%r13d, %r13d
	jg	LBB0_14
	jmp	LBB0_30
LBB0_8:
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	sete	%cl
	jmp	LBB0_30
LBB0_9:
	cmpl	$91, %r14d
	je	LBB0_18
## %bb.10:
	cmpl	$92, %r14d
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	$92, %esi
	callq	_Popwchar
	xorl	%ecx, %ecx
LBB0_12:
	testl	%r13d, %r13d
	jle	LBB0_30
## %bb.13:
	cmpl	%r13d, %r14d
	jne	LBB0_30
LBB0_14:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_gmatch
	movl	%eax, %ecx
	jmp	LBB0_30
LBB0_15:
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %eax
	cmpb	$42, %al
	jne	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	jmp	LBB0_16
LBB0_18:
	testl	%r13d, %r13d
	jle	LBB0_30
## %bb.19:
	xorl	%r14d, %r14d
	cmpb	$33, (%r15)
	setne	%r12b
	sete	%r14b
	addq	%r15, %r14
	movq	%r14, %rdi
	movl	$91, %esi
	callq	_Popwchar
	cmpl	$91, %r13d
	setne	%bl
	orb	%r12b, %bl
	cmpb	$1, %bl
	jne	LBB0_29
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$91, %esi
	callq	_Popwchar
	testb	%bl, %bl
	jne	LBB0_20
	jmp	LBB0_29
LBB0_22:
	testb	%al, %al
	jne	LBB0_24
LBB0_23:
	movl	$1, %ecx
	jmp	LBB0_30
LBB0_24:
	cmpb	$0, (%r12)
	je	LBB0_30
## %bb.25:
	leaq	-44(%rbp), %r14
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_gmatch
	testl	%eax, %eax
	jne	LBB0_23
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mbtowc
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	cmovsl	%ebx, %eax
	cmpb	$0, (%r12,%rax)
	leaq	(%r12,%rax), %r12
	jne	LBB0_26
LBB0_29:
	xorl	%ecx, %ecx
LBB0_30:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_LEN_MAX,4,2                 ## @MB_LEN_MAX
	.comm	_multibyte,4,2                  ## @multibyte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gmatch                         ; -- Begin function gmatch
	.p2align	2
_gmatch:                                ; @gmatch
	.cfi_startproc
; %bb.0:
	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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MB_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MB_LEN_MAX@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x0, sp, #12
	mov	x1, x19
	bl	_mbtowc
	ldr	w8, [sp, #12]
	cmp	w0, #1
	csel	w22, w0, w8, lt
	csinc	w23, w0, wzr, gt
	ldr	w2, [x21]
	add	x0, sp, #12
	mov	x1, x20
	bl	_mbtowc
	tbnz	w0, #31, LBB0_22
; %bb.1:
	cbz	w0, LBB0_10
; %bb.2:
	add	x20, x20, w0, uxtw
	ldr	w24, [sp, #12]
	cmp	w24, #90
	b.gt	LBB0_11
; %bb.3:
	cmp	w24, #42
	b.eq	LBB0_7
; %bb.4:
	cmp	w24, #63
	b.ne	LBB0_14
; %bb.5:
	cmp	w22, #1
	b.ge	LBB0_15
	b	LBB0_22
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #42
	b.eq	LBB0_6
; %bb.8:
	cbnz	w8, LBB0_19
LBB0_9:
	mov	w0, #1
	b	LBB0_23
LBB0_10:
	cmp	w22, #0
	cset	w0, eq
	b	LBB0_23
LBB0_11:
	cmp	w24, #91
	b.eq	LBB0_16
; %bb.12:
	cmp	w24, #92
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	mov	w1, #92
	bl	_Popwchar
LBB0_14:
	cmp	w22, #1
	ccmp	w24, w22, #0, ge
	b.ne	LBB0_22
LBB0_15:
	add	x0, x19, x23
	mov	x1, x20
	bl	_gmatch
	b	LBB0_23
LBB0_16:
	cmp	w22, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x8, x20
	ldrb	w9, [x8], #1
	cmp	w9, #33
	cset	w21, ne
	csel	x19, x20, x8, ne
	mov	x0, x19
	mov	w1, #91
	bl	_Popwchar
	cmp	w22, #91
	cset	w8, ne
	orr	w20, w21, w8
	cmp	w20, #1
	b.ne	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #91
	bl	_Popwchar
	mov	w0, #0
	tbnz	w20, #0, LBB0_18
	b	LBB0_23
LBB0_19:
	ldrb	w8, [x19]
	cbz	w8, LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_gmatch
	cbnz	w0, LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w2, [x21]
	add	x0, sp, #12
	mov	x1, x19
	bl	_mbtowc
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #0
	csinc	w8, w8, wzr, ge
	add	x19, x19, x8
	ldrb	w8, [x19]
	cbnz	w8, LBB0_20
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_LEN_MAX,4,2                 ; @MB_LEN_MAX
	.comm	_multibyte,4,2                  ; @multibyte
.subsections_via_symbols
