	.file	"extr_lj_cparse.c_cp_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cp_string, @function
cp_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, .L11[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	movzx	r12d, BYTE PTR [rdi]
	call	cp_get@PLT
	movsx	esi, BYTE PTR [rbx]
	cmp	r12b, sil
	je	.L26
	.p2align 4,,10
	.p2align 3
.L2:
	test	sil, sil
	je	.L8
	cmp	sil, 92
	jne	.L6
	mov	rdi, rbx
	call	cp_get@PLT
	mov	r13d, eax
	test	al, al
	je	.L8
	lea	eax, -97[r13]
	cmp	al, 23
	ja	.L9
	movzx	eax, al
	movsx	rax, DWORD PTR 0[rbp+rax*4]
	add	rax, rbp
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L11:
	.long	.L18-.L11
	.long	.L29-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L17-.L11
	.long	.L16-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L15-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L14-.L11
	.long	.L9-.L11
	.long	.L13-.L11
	.long	.L9-.L11
	.long	.L12-.L11
	.long	.L9-.L11
	.long	.L30-.L11
	.text
.L30:
	xor	r13d, r13d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L43:
	movzx	eax, BYTE PTR [rbx]
	lea	esi, -48[rax]
.L20:
	add	r13d, esi
.L10:
	mov	rdi, rbx
	call	cp_get@PLT
	movsx	edi, al
	call	lj_char_isxdigit@PLT
	test	eax, eax
	je	.L24
	movsx	edi, BYTE PTR [rbx]
	sal	r13d, 4
	call	lj_char_isdigit@PLT
	test	eax, eax
	jne	.L43
	movzx	esi, BYTE PTR [rbx]
	and	esi, 15
	add	esi, 9
	jmp	.L20
.L29:
	mov	esi, 8
.L6:
	mov	rdi, rbx
	call	cp_save@PLT
	mov	rdi, rbx
	call	cp_get@PLT
.L22:
	movsx	esi, BYTE PTR [rbx]
	cmp	sil, r12b
	jne	.L2
.L26:
	mov	rdi, rbx
	lea	rbp, 24[rbx]
	call	cp_get@PLT
	cmp	r12b, 34
	je	.L44
	mov	rdi, rbp
	call	sbuflen@PLT
	cmp	eax, 1
	jne	.L45
.L28:
	mov	rdi, rbp
	call	sbufB@PLT
	movsx	rax, BYTE PTR [rax]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR CTID_INT32[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR CTOK_INTEGER[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	mov	esi, 7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR CTOK_EOF[rip]
	mov	edx, DWORD PTR LJ_ERR_XSTR[rip]
	mov	rdi, rbx
	call	cp_errmsg@PLT
	xor	esi, esi
	jmp	.L6
.L12:
	mov	esi, 11
	jmp	.L6
.L13:
	mov	esi, 9
	jmp	.L6
.L14:
	mov	esi, 13
	jmp	.L6
.L15:
	mov	esi, 10
	jmp	.L6
.L16:
	mov	esi, 12
	jmp	.L6
.L17:
	mov	esi, 27
	jmp	.L6
.L9:
	movsx	esi, r13b
	mov	edi, esi
	mov	DWORD PTR 12[rsp], esi
	call	lj_char_isdigit@PLT
	mov	esi, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L6
	mov	rdi, rbx
	sub	r13d, 48
	call	cp_get@PLT
	movsx	edi, al
	call	lj_char_isdigit@PLT
	test	eax, eax
	je	.L24
	movzx	eax, BYTE PTR [rbx]
	mov	rdi, rbx
	lea	r13d, -48[rax+r13*8]
	call	cp_get@PLT
	movsx	edi, al
	call	lj_char_isdigit@PLT
	test	eax, eax
	je	.L24
	movzx	eax, BYTE PTR [rbx]
	mov	rdi, rbx
	lea	r13d, -48[rax+r13*8]
	call	cp_get@PLT
	.p2align 4,,10
	.p2align 3
.L24:
	movsx	esi, r13b
	mov	rdi, rbx
	call	cp_save@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L45:
	mov	esi, 39
	mov	rdi, rbx
	call	cp_err_token@PLT
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR 28[rbx]
	mov	rsi, rbp
	call	lj_buf_str@PLT
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR CTOK_STRING[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cp_string, .-cp_string
	.comm	LJ_ERR_XSTR,4,4
	.comm	CTOK_STRING,4,4
	.comm	CTOK_INTEGER,4,4
	.comm	CTOK_EOF,4,4
	.comm	CTID_INT32,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_lj_cparse.c_cp_string.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cp_string, %function
cp_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	ldrb	r5, [r0]	@ zero_extendqisi2
	bl	cp_get
	ldrb	r4, [r8]	@ zero_extendqisi2
	cmp	r5, r4
	beq	.L23
	ldr	r7, .L48
	ldr	r6, .L48+4
.L2:
	cmp	r4, #0
	beq	.L7
.L5:
	cmp	r4, #92
	bne	.L6
	mov	r0, r8
	bl	cp_get
	subs	r4, r0, #0
	beq	.L7
	sub	r3, r4, #97
	and	r2, r3, #255
	cmp	r2, #23
	bhi	.L8
	cmp	r3, #23
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L26
	.word	.L17
	.word	.L8
	.word	.L8
	.word	.L16
	.word	.L15
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L14
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L13
	.word	.L8
	.word	.L12
	.word	.L8
	.word	.L11
	.word	.L8
	.word	.L27
.L27:
	mov	r4, #0
	b	.L9
.L20:
	ldrb	r0, [r8]	@ zero_extendqisi2
	bl	lj_char_isdigit
	ldrb	r4, [r8]	@ zero_extendqisi2
	cmp	r0, #0
	subne	r4, r4, #48
	andeq	r4, r4, #15
	andne	r4, r4, #255
	addeq	r4, r4, #9
	add	r4, r9, r4
	and	r4, r4, #255
.L9:
	mov	r0, r8
	bl	cp_get
	bl	lj_char_isxdigit
	lsl	r9, r4, #4
	cmp	r0, #0
	and	r9, r9, #255
	bne	.L20
.L22:
	mov	r1, r4
	mov	r0, r8
	bl	cp_save
	ldrb	r4, [r8]	@ zero_extendqisi2
	cmp	r4, r5
	bne	.L2
.L23:
	mov	r0, r8
	bl	cp_get
	cmp	r5, #34
	add	r4, r8, #12
	beq	.L46
	mov	r0, r4
	bl	sbuflen
	cmp	r0, #1
	bne	.L47
.L25:
	mov	r0, r4
	bl	sbufB
	ldr	r3, .L48+8
	ldrb	r2, [r0]	@ zero_extendqisi2
	ldr	r1, .L48+12
	ldr	r3, [r3]
	ldr	r0, [r1]
	str	r2, [r8, #8]
	str	r3, [r8, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r4, #8
.L6:
	mov	r1, r4
	mov	r0, r8
	bl	cp_save
	mov	r0, r8
	bl	cp_get
	ldrb	r4, [r8]	@ zero_extendqisi2
	cmp	r4, r5
	beq	.L23
	cmp	r4, #0
	bne	.L5
.L7:
	mov	r0, r8
	ldr	r2, [r7]
	ldr	r1, [r6]
	bl	cp_errmsg
	b	.L6
.L26:
	mov	r4, #7
	b	.L6
.L11:
	mov	r4, #11
	b	.L6
.L12:
	mov	r4, #9
	b	.L6
.L13:
	mov	r4, #13
	b	.L6
.L14:
	mov	r4, #10
	b	.L6
.L15:
	mov	r4, #12
	b	.L6
.L16:
	mov	r4, #27
	b	.L6
.L8:
	mov	r0, r4
	bl	lj_char_isdigit
	cmp	r0, #0
	beq	.L6
	mov	r0, r8
	bl	cp_get
	bl	lj_char_isdigit
	sub	r4, r4, #48
	cmp	r0, #0
	and	r4, r4, #255
	beq	.L22
	ldrb	r3, [r8]	@ zero_extendqisi2
	mov	r0, r8
	sub	r3, r3, #48
	add	r4, r3, r4, lsl #3
	bl	cp_get
	bl	lj_char_isdigit
	cmp	r0, #0
	and	r4, r4, #255
	beq	.L22
	ldrb	r3, [r8]	@ zero_extendqisi2
	mov	r0, r8
	sub	r3, r3, #48
	add	r4, r3, r4, lsl #3
	and	r4, r4, #255
	bl	cp_get
	b	.L22
.L47:
	mov	r1, #39
	mov	r0, r8
	bl	cp_err_token
	b	.L25
.L46:
	mov	r1, r4
	ldr	r0, [r8, #16]
	bl	lj_buf_str
	ldr	r3, .L48+16
	str	r0, [r8, #20]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L49:
	.align	2
.L48:
	.word	LJ_ERR_XSTR
	.word	CTOK_EOF
	.word	CTID_INT32
	.word	CTOK_INTEGER
	.word	CTOK_STRING
	.size	cp_string, .-cp_string
	.comm	LJ_ERR_XSTR,4,4
	.comm	CTOK_STRING,4,4
	.comm	CTOK_INTEGER,4,4
	.comm	CTOK_EOF,4,4
	.comm	CTID_INT32,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
