	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_tokenize_set
_proxy_tokenize_set:                    ## @proxy_tokenize_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_luaL_checkself
	movq	(%rax), %r15
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_luaL_checkinteger
	movl	%eax, %r14d
	movq	_LUA_TNIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_luaL_checktype
	movq	(%r15), %rax
	movq	_G_MAXINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_5
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.2:
	cmpl	%eax, %r14d
	jg	LBB0_5
## %bb.3:
	movq	8(%r15), %rax
	decl	%r14d
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_sql_token_free
	movq	8(%r15), %rax
	movq	$0, (%rax,%r14,8)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TNIL,4,2                   ## @LUA_TNIL
	.comm	_G_MAXINT,8,3                   ## @G_MAXINT
	.no_dead_strip	_proxy_tokenize_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_tokenize_set
_proxy_tokenize_set:                    ; @proxy_tokenize_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_luaL_checkself
	ldr	x21, [x0]
	mov	x0, x20
	mov	w1, #2
	bl	_luaL_checkinteger
	mov	x19, x0
Lloh0:
	adrp	x8, _LUA_TNIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_TNIL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #3
	bl	_luaL_checktype
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _G_MAXINT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _G_MAXINT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w19, #1, #8, le
	ccmp	w19, w8, #0, ge
	b.le	LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x21, #8]
	sub	w19, w19, #1
	ldr	x0, [x8, w19, uxtw #3]
	cbz	x0, LBB0_1
; %bb.3:
	bl	_sql_token_free
	ldr	x8, [x21, #8]
	str	xzr, [x8, x19, lsl #3]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TNIL,4,2                   ; @LUA_TNIL
	.comm	_G_MAXINT,8,3                   ; @G_MAXINT
	.no_dead_strip	_proxy_tokenize_set
.subsections_via_symbols
