	.file	"extr_pipe.c_getsize_delim.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid chunk size"
.LC1:
	.string	"invalid delimiter"
	.text
	.p2align 4
	.type	getsize_delim, @function
getsize_delim:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	lua_type@PLT
	cmp	rax, QWORD PTR LUA_TNUMBER[rip]
	mov	esi, r12d
	mov	rdi, rbp
	je	.L14
	call	lua_isnil@PLT
	test	rax, rax
	je	.L4
	mov	ebx, DWORD PTR CHAR_DELIM[rip]
	mov	eax, 10
.L3:
	test	r13, r13
	je	.L1
	mov	DWORD PTR 0[r13], ebx
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L4:
	.cfi_restore_state
	mov	rdx, rsp
	mov	esi, 2
	mov	rdi, rbp
	call	lua_tolstring@PLT
	mov	r14, rax
	mov	rax, QWORD PTR [rsp]
	cmp	rax, 2
	je	.L16
.L5:
	mov	ebx, DWORD PTR CHAR_DELIM[rip]
.L6:
	movsx	rdx, ebx
	xor	esi, esi
	lea	rcx, .LC1[rip]
	mov	rdi, rbp
	add	rdx, rax
	mov	edx, r12d
	sete	sil
	call	luaL_argcheck@PLT
	movzx	eax, BYTE PTR [r14]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	call	luaL_checkinteger@PLT
	xor	esi, esi
	mov	edx, r12d
	mov	rdi, rbp
	test	eax, eax
	lea	rcx, .LC0[rip]
	mov	ebx, eax
	setg	sil
	call	luaL_argcheck@PLT
	xor	eax, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	BYTE PTR 1[r14], 43
	mov	ebx, DWORD PTR CHAR_DELIM_KEEP[rip]
	jne	.L5
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	getsize_delim, .-getsize_delim
	.comm	LUA_TNUMBER,8,8
	.comm	CHAR_DELIM_KEEP,4,4
	.comm	CHAR_DELIM,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_pipe.c_getsize_delim.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid chunk size\000"
	.align	2
.LC1:
	.ascii	"invalid delimiter\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getsize_delim, %function
getsize_delim:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L17
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	mov	r6, r1
	mov	r5, r2
	bl	lua_type
	ldr	r3, .L17+4
	mov	r1, r6
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r4
	beq	.L14
	bl	lua_isnil
	cmp	r0, #0
	beq	.L4
	mov	r0, #10
	ldr	r3, .L17+8
	ldr	r7, [r3]
.L3:
	cmp	r5, #0
	ldr	r3, .L17
	strne	r7, [r5]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r2, sp
	mov	r1, #2
	mov	r0, r4
	bl	lua_tolstring
	ldr	r3, [sp]
	mov	r8, r0
	cmp	r3, #2
	beq	.L16
.L5:
	ldr	r2, .L17+8
	ldr	r7, [r2]
.L6:
	cmn	r7, r3
	mov	r2, r6
	mov	r0, r4
	moveq	r1, #1
	movne	r1, #0
	ldr	r3, .L17+12
	bl	luaL_argcheck
	ldrb	r0, [r8]	@ zero_extendqisi2
	b	.L3
.L14:
	bl	luaL_checkinteger
	mov	r7, r0
	cmp	r7, #0
	mov	r2, r6
	mov	r0, r4
	movle	r1, #0
	movgt	r1, #1
	ldr	r3, .L17+16
	bl	luaL_argcheck
	mov	r0, #0
	b	.L3
.L16:
	ldrb	r2, [r0, #1]	@ zero_extendqisi2
	cmp	r2, #43
	bne	.L5
	ldr	r2, .L17+20
	ldr	r7, [r2]
	b	.L6
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	LUA_TNUMBER
	.word	CHAR_DELIM
	.word	.LC1
	.word	.LC0
	.word	CHAR_DELIM_KEEP
	.size	getsize_delim, .-getsize_delim
	.comm	LUA_TNUMBER,4,4
	.comm	CHAR_DELIM_KEEP,4,4
	.comm	CHAR_DELIM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
