	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkrule
_checkrule:                             ## @checkrule
	.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
	movl	%r9d, %r14d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %edx
	jge	LBB0_13
## %bb.1:
	xorl	%r13d, %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_IOpenCall@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmovel	%r15d, %r13d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_sizei
	addl	%eax, %r15d
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %rcx
	shlq	$4, %rcx
	leaq	(%rbx,%rcx), %r12
	movq	(%rbx,%rcx), %rax
	movq	_IPartialCommit@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx,%rcx)
	jns	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_dest
                                        ## kill: def $eax killed $eax def $rax
	movslq	%eax, %r14
	shlq	$4, %r14
	movq	-16(%r14,%rbx), %rdx
	movq	_IChoice@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rax), %esi
	movq	%rbx, %rdi
	callq	_dest
	leal	1(%r15), %ecx
	cmpl	%ecx, %eax
	sete	%cl
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %edi
	callq	_assert
	cmpl	%r13d, -72(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r9d
	callq	_verify
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_val2str
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_luaL_error
	jmp	LBB0_12
LBB0_13:
	movslq	%r15d, %rax
	shlq	$4, %rax
	movq	-16(%rax,%rbx), %rax
	movq	_IRet@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	shlq	$4, %rdx
	addq	%rbx, %rdx
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	shlq	$4, %rax
	leaq	(%rbx,%rax), %rcx
	addq	$-16, %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	%r14d, %r9d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_verify                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPartialCommit,8,3             ## @IPartialCommit
	.comm	_IChoice,8,3                    ## @IChoice
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"possible infinite loop in %s"

	.comm	_IOpenCall,8,3                  ## @IOpenCall
	.comm	_IRet,8,3                       ## @IRet
	.no_dead_strip	_checkrule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkrule
_checkrule:                             ; @checkrule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x5
	stp	w2, w4, [sp, #8]                ; 8-byte Folded Spill
	mov	x22, x3
	mov	x21, x1
	mov	x23, x0
	mov	x8, x2
	cmp	w2, w3
	b.ge	LBB0_12
; %bb.1:
	mov	w28, #0
Lloh0:
	adrp	x25, _IPartialCommit@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IPartialCommit@GOTPAGEOFF]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
Lloh2:
	adrp	x20, _IOpenCall@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IOpenCall@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	csel	w28, w26, w28, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_sizei
	add	w8, w26, w0
	cmp	w8, w22
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x26, w8
	add	x27, x21, w8, sxtw #4
	ldr	x8, [x27]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x21, x26, lsl #4
	ldr	x9, [x9, #8]
	tbz	x9, #63, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_dest
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	sub	x1, x19, #1
	lsl	x8, x1, #4
	ldr	x8, [x21, x8]
Lloh4:
	adrp	x9, _IChoice@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IChoice@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dest
	add	w8, w26, #1
	cmp	w0, w8
	cset	w0, eq
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_assert
	cmp	w19, w28
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x2, x21, x19, lsl #4
	mov	x0, x23
	mov	x1, x21
	mov	x3, x27
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	mov	x5, x24
	bl	_verify
	cbnz	w0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_val2str
	mov	x2, x0
	mov	x0, x23
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_luaL_error
	b	LBB0_3
LBB0_12:
	add	x8, x21, w8, sxtw #4
	ldur	x8, [x8, #-16]
Lloh9:
	adrp	x9, _IRet@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRet@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldp	w8, w4, [sp, #8]                ; 8-byte Folded Reload
	add	x2, x21, w8, sxtw #4
	add	x8, x21, w22, sxtw #4
	sub	x3, x8, #16
	mov	x0, x23
	mov	x1, x21
	mov	x5, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_verify
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPartialCommit,8,3             ; @IPartialCommit
	.comm	_IChoice,8,3                    ; @IChoice
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"possible infinite loop in %s"

	.comm	_IOpenCall,8,3                  ; @IOpenCall
	.comm	_IRet,8,3                       ; @IRet
	.no_dead_strip	_checkrule
.subsections_via_symbols
