	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getpatt
_getpatt:                               ## @getpatt
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_lua_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_21
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fix_l
	jmp	LBB0_22
LBB0_21:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_checkpattern
LBB0_22:
	movq	%rax, %r13
	jmp	LBB0_23
LBB0_2:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_lua_tolstring
	movq	%rax, %r13
	movl	-56(%rbp), %esi
	movq	%r14, %rdi
	callq	_newpatt
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, -56(%rbp)
	je	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	movq	_IChar@GOTPCREL(%rip), %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movzbl	(%r13,%r12), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_setinstaux
	incq	%r12
	addq	$4, %rbx
	cmpq	-56(%rbp), %r12
	jb	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_lua_replace
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_tointeger
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r13d
	jle	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_any
	movq	%rax, %r13
	jmp	LBB0_15
LBB0_20:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_newpatt
	movq	%rax, %r13
	movq	_IOpenCapture@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_value2fenv
	movq	_Cruntime@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_setinstcap
	movq	%r13, %rdi
	addq	$4, %rdi
	movq	_ICloseRunTime@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Cclose@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_setinstcap
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_toboolean
	movq	%r14, %rdi
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:
	movl	$1, %esi
	callq	_newpatt
	movq	%rax, %r13
	movq	_IFail@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	jmp	LBB0_14
LBB0_7:
	movq	%r14, %rdi
LBB0_17:
	xorl	%esi, %esi
	callq	_newpatt
	movq	%rax, %r13
	jmp	LBB0_15
LBB0_10:
	negl	%r13d
	movq	_UCHAR_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%r13d, %eax
	jge	LBB0_11
## %bb.12:
	movl	$2, -44(%rbp)
	subl	%eax, %r13d
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$3, %edx
	callq	_any
	movq	%rax, %r13
	movq	_ITestAny@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	incl	%edx
	movl	(%r15), %ecx
	movq	%r13, %rdi
	callq	_setinstaux
	leaq	4(%r13), %rdi
	movq	_IChoice@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movl	(%r15), %ecx
	callq	_setinstaux
	movslq	-44(%rbp), %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movq	_IFailTwice@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_newpatt
	movq	%rax, %rdi
	movq	_ITestAny@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	movl	%r13d, %ecx
	movq	%rdi, %r13
	callq	_setinstaux
	movq	%r13, %rdi
	addq	$4, %rdi
	movq	_IFail@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
LBB0_14:
	xorl	%edx, %edx
	callq	_setinst
LBB0_15:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_replace
LBB0_23:
	testq	%r12, %r12
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pattsize
	movl	%eax, (%r12)
LBB0_25:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_20
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_IChar,4,2                      ## @IChar
	.comm	_UCHAR_MAX,4,2                  ## @UCHAR_MAX
	.comm	_ITestAny,4,2                   ## @ITestAny
	.comm	_IFail,4,2                      ## @IFail
	.comm	_IChoice,4,2                    ## @IChoice
	.comm	_IFailTwice,4,2                 ## @IFailTwice
	.comm	_IOpenCapture,4,2               ## @IOpenCapture
	.comm	_Cruntime,4,2                   ## @Cruntime
	.comm	_ICloseRunTime,4,2              ## @ICloseRunTime
	.comm	_Cclose,4,2                     ## @Cclose
	.no_dead_strip	_getpatt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getpatt
_getpatt:                               ; @getpatt
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_lua_type
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_fix_l
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_checkpattern
LBB0_4:
	mov	x22, x0
	cbnz	x19, LBB0_23
	b	LBB0_24
LBB0_5:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_lua_tolstring
	mov	x23, x0
	ldr	w1, [sp, #8]
	mov	x0, x21
	bl	_newpatt
	mov	x22, x0
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_22
; %bb.6:
	mov	x25, #0
Lloh2:
	adrp	x26, _IChar@GOTPAGE
Lloh3:
	ldr	x26, [x26, _IChar@GOTPAGEOFF]
	mov	x24, x22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	ldrb	w3, [x23, x25]
	mov	x0, x24
	mov	w2, #0
	bl	_setinstaux
	add	x25, x25, #1
	ldr	x8, [sp, #8]
	add	x24, x24, #4
	cmp	x25, x8
	b.lo	LBB0_7
	b	LBB0_22
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_lua_tointeger
	mov	x1, x0
	cbz	w0, LBB0_14
; %bb.9:
	cmp	w1, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	bl	_any
	mov	x22, x0
	b	LBB0_22
LBB0_11:
	mov	x0, x21
	mov	w1, #2
	bl	_newpatt
	mov	x22, x0
Lloh4:
	adrp	x8, _IOpenCapture@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IOpenCapture@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_value2fenv
	mov	x2, x0
Lloh7:
	adrp	x8, _Cruntime@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Cruntime@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	w4, #0
	bl	_setinstcap
	add	x0, x22, #4
Lloh10:
	adrp	x8, _ICloseRunTime@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICloseRunTime@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _Cclose@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Cclose@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	w2, #0
	mov	w4, #0
	bl	_setinstcap
	b	LBB0_22
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_lua_toboolean
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x21
	mov	w1, #0
	b	LBB0_15
LBB0_14:
	mov	x0, x21
LBB0_15:
	bl	_newpatt
	mov	x22, x0
	b	LBB0_22
LBB0_16:
	mov	x0, x21
	mov	w1, #1
	bl	_newpatt
	mov	x22, x0
	b	LBB0_20
LBB0_17:
Lloh16:
	adrp	x24, _UCHAR_MAX@GOTPAGE
Lloh17:
	ldr	x24, [x24, _UCHAR_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	neg	w23, w1
	cmp	w8, w23
	b.ge	LBB0_19
; %bb.18:
	mov	w9, #2
	str	w9, [sp, #4]
	sub	w1, w23, w8
	add	x3, sp, #4
	mov	x0, x21
	mov	w2, #3
	bl	_any
	mov	x22, x0
Lloh18:
	adrp	x8, _ITestAny@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ITestAny@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [sp, #4]
	add	w2, w8, #1
	ldr	w3, [x24]
	bl	_setinstaux
	add	x0, x22, #4
Lloh21:
	adrp	x8, _IChoice@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IChoice@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	ldr	w3, [x24]
	bl	_setinstaux
	ldrsw	x8, [sp, #4]
	add	x0, x22, x8, lsl #2
Lloh24:
	adrp	x8, _IFailTwice@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IFailTwice@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
	mov	x0, x21
	mov	w1, #2
	bl	_newpatt
	mov	x22, x0
Lloh26:
	adrp	x8, _ITestAny@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ITestAny@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #2
	mov	x3, x23
	bl	_setinstaux
	add	x0, x22, #4
LBB0_20:
Lloh29:
	adrp	x8, _IFail@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IFail@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_setinst
LBB0_22:
	mov	x0, x21
	mov	x1, x20
	bl	_lua_replace
	cbz	x19, LBB0_24
LBB0_23:
	mov	x0, x21
	mov	x1, x20
	bl	_pattsize
	str	w0, [x19]
LBB0_24:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_IChar,4,2                      ; @IChar
	.comm	_UCHAR_MAX,4,2                  ; @UCHAR_MAX
	.comm	_ITestAny,4,2                   ; @ITestAny
	.comm	_IFail,4,2                      ; @IFail
	.comm	_IChoice,4,2                    ; @IChoice
	.comm	_IFailTwice,4,2                 ; @IFailTwice
	.comm	_IOpenCapture,4,2               ; @IOpenCapture
	.comm	_Cruntime,4,2                   ; @Cruntime
	.comm	_ICloseRunTime,4,2              ; @ICloseRunTime
	.comm	_Cclose,4,2                     ; @Cclose
	.no_dead_strip	_getpatt
.subsections_via_symbols
