	.file	"extr_lutf8lib.c_codepoint.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"out of range"
.LC1:
	.string	"string slice too long"
.LC2:
	.string	"invalid UTF-8 code"
	.text
	.p2align 4
	.type	codepoint, @function
codepoint:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, 1
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 16[rsp]
	call	luaL_checklstring@PLT
	mov	rbp, QWORD PTR 16[rsp]
	mov	edx, 1
	mov	rdi, r12
	mov	esi, 2
	mov	r13, rax
	call	luaL_optinteger@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	u_posrelat@PLT
	mov	r14, QWORD PTR 16[rsp]
	mov	esi, 3
	mov	rdi, r12
	movsx	rbp, eax
	mov	edx, ebp
	call	luaL_optinteger@PLT
	mov	rsi, r14
	mov	edi, eax
	call	u_posrelat@PLT
	xor	esi, esi
	test	ebp, ebp
	lea	rcx, .LC0[rip]
	setg	sil
	mov	edx, 2
	mov	rdi, r12
	movsx	rbx, eax
	call	luaL_argcheck@PLT
	xor	esi, esi
	cmp	ebx, DWORD PTR 16[rsp]
	mov	edx, 3
	setle	sil
	lea	rcx, .LC0[rip]
	mov	rdi, r12
	call	luaL_argcheck@PLT
	cmp	ebp, ebx
	jg	.L2
	mov	esi, ebx
	sub	esi, ebp
	cmp	esi, DWORD PTR INT_MAX[rip]
	jge	.L11
	add	esi, 1
	lea	rdx, .LC1[rip]
	mov	rdi, r12
	add	rbx, r13
	call	luaL_checkstack@PLT
	lea	rbp, -1[r13+rbp]
	cmp	rbx, rbp
	jbe	.L2
	xor	r13d, r13d
	lea	r14, 12[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r12
	add	r13d, 1
	call	lua_pushinteger@PLT
	cmp	rbx, rbp
	jbe	.L1
.L6:
	mov	rdi, rbp
	mov	rsi, r14
	call	utf8_decode@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L5
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	luaL_error@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	luaL_error@PLT
	mov	r13d, eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	codepoint, .-codepoint
	.comm	INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lutf8lib.c_codepoint.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of range\000"
	.align	2
.LC1:
	.ascii	"string slice too long\000"
	.align	2
.LC2:
	.ascii	"invalid UTF-8 code\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	codepoint, %function
codepoint:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L13
	sub	sp, sp, #20
	mov	r1, #1
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r0
	bl	luaL_checklstring
	mov	r2, #1
	mov	r1, #2
	mov	r5, r0
	mov	r0, r6
	bl	luaL_optinteger
	ldr	r1, [sp, #4]
	bl	u_posrelat
	mov	r4, r0
	mov	r1, #3
	mov	r2, r4
	mov	r0, r6
	bl	luaL_optinteger
	ldr	r1, [sp, #4]
	bl	u_posrelat
	mov	r7, r0
	cmp	r4, #0
	movle	r1, #0
	movgt	r1, #1
	mov	r2, #2
	ldr	r3, .L13+4
	mov	r0, r6
	bl	luaL_argcheck
	ldr	r1, [sp, #4]
	mov	r0, r6
	cmp	r1, r7
	movlt	r1, #0
	movge	r1, #1
	mov	r2, #3
	ldr	r3, .L13+4
	bl	luaL_argcheck
	cmp	r4, r7
	bgt	.L2
	ldr	r3, .L13+8
	sub	r1, r7, r4
	ldr	r3, [r3]
	cmp	r1, r3
	bge	.L11
	mov	r0, r6
	ldr	r2, .L13+12
	add	r1, r1, #1
	bl	luaL_checkstack
	sub	r0, r4, #1
	add	r7, r5, r7
	add	r4, r5, r0
	cmp	r7, r4
	bls	.L2
	mov	r5, #0
	b	.L6
.L5:
	mov	r0, r6
	ldr	r1, [sp, #8]
	bl	lua_pushinteger
	cmp	r7, r4
	add	r5, r5, #1
	bls	.L1
.L6:
	mov	r0, r4
	add	r1, sp, #8
	bl	utf8_decode
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r6
	ldr	r1, .L13+16
	bl	luaL_error
	mov	r5, r0
	b	.L1
.L11:
	mov	r0, r6
	ldr	r1, .L13+12
	bl	luaL_error
	mov	r5, r0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r5, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC0
	.word	INT_MAX
	.word	.LC1
	.word	.LC2
	.size	codepoint, .-codepoint
	.comm	INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
