	.file	"extr_lstrlib.c_str_format.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no value"
.LC1:
	.string	"string contains zeros"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"invalid option '%%%c' to 'format'"
	.text
	.p2align 4
	.type	str_format, @function
str_format:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	lea	r13, -76[rbp]
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	lua_gettop@PLT
	lea	rdx, -72[rbp]
	mov	esi, 1
	mov	rdi, r12
	mov	DWORD PTR -104[rbp], eax
	call	luaL_checklstring@PLT
	mov	rsi, r13
	mov	rdi, r12
	mov	r15, rax
	add	rax, QWORD PTR -72[rbp]
	mov	r14, rax
	mov	QWORD PTR -88[rbp], rax
	call	luaL_buffinit@PLT
	mov	DWORD PTR -100[rbp], 1
	movzx	ebx, BYTE PTR L_ESC[rip]
	cmp	r15, r14
	jb	.L24
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, r13
	mov	QWORD PTR -96[rbp], r8
	call	luaL_addchar@PLT
	mov	r8, QWORD PTR -96[rbp]
	mov	r15, r8
.L5:
	cmp	QWORD PTR -88[rbp], r15
	jbe	.L25
.L24:
	movsx	esi, BYTE PTR [r15]
	lea	r8, 1[r15]
	cmp	sil, bl
	jne	.L36
	cmp	BYTE PTR 1[r15], bl
	je	.L37
	movsx	rax, DWORD PTR MAX_FORMAT[rip]
	mov	rcx, rsp
	mov	QWORD PTR -96[rbp], rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L8
.L38:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L38
.L8:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L39
.L9:
	mov	esi, DWORD PTR MAX_ITEM[rip]
	mov	rdi, r13
	mov	QWORD PTR -120[rbp], r8
	mov	r14, rsp
	call	luaL_prepbuffsize@PLT
	add	DWORD PTR -100[rbp], 1
	mov	r8, QWORD PTR -120[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	cmp	DWORD PTR -104[rbp], eax
	jge	.L10
	lea	rdx, .LC0[rip]
	mov	esi, eax
	mov	rdi, r12
	call	luaL_argerror@PLT
	mov	r8, QWORD PTR -120[rbp]
.L10:
	mov	rdx, r14
	mov	rsi, r8
	mov	rdi, r12
	call	scanformat@PLT
	movsx	edx, BYTE PTR [rax]
	lea	r15, 1[rax]
	lea	eax, -65[rdx]
	cmp	al, 55
	ja	.L11
	lea	rcx, .L13[rip]
	movzx	eax, al
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L18-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L16-.L13
	.long	.L11-.L13
	.long	.L16-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L12-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L18-.L13
	.long	.L11-.L13
	.long	.L17-.L13
	.long	.L12-.L13
	.long	.L16-.L13
	.long	.L16-.L13
	.long	.L16-.L13
	.long	.L11-.L13
	.long	.L12-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L12-.L13
	.long	.L11-.L13
	.long	.L15-.L13
	.long	.L11-.L13
	.long	.L14-.L13
	.long	.L11-.L13
	.long	.L12-.L13
	.long	.L11-.L13
	.long	.L11-.L13
	.long	.L12-.L13
	.text
	.p2align 4,,10
	.p2align 3
.L37:
	movsx	esi, bl
	mov	rdi, r13
	add	r15, 2
	call	luaL_addchar@PLT
	cmp	QWORD PTR -88[rbp], r15
	ja	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, r13
	call	luaL_pushresult@PLT
	mov	eax, 1
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L40
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	luaL_error@PLT
	mov	rsp, QWORD PTR -96[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR -100[rbp]
	mov	rdi, r12
	call	luaL_checkinteger@PLT
	mov	esi, DWORD PTR LUA_INTEGER_FRMLEN[rip]
	mov	rdi, r14
	mov	QWORD PTR -120[rbp], rax
	call	addlenmod@PLT
	mov	rcx, QWORD PTR -120[rbp]
.L34:
	mov	esi, DWORD PTR MAX_ITEM[rip]
	mov	rdi, QWORD PTR -112[rbp]
	mov	rdx, r14
	xor	eax, eax
	call	l_sprintf@PLT
	mov	r14d, eax
.L19:
	xor	edi, edi
	cmp	r14d, DWORD PTR MAX_ITEM[rip]
	setl	dil
	call	lua_assert@PLT
	mov	esi, r14d
	mov	rdi, r13
	call	luaL_addsize@PLT
	mov	rsp, QWORD PTR -96[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR -100[rbp]
	mov	rdi, r12
	call	luaL_checknumber@PLT
	mov	esi, DWORD PTR LUA_NUMBER_FRMLEN[rip]
	mov	rdi, r14
	mov	DWORD PTR -120[rbp], eax
	call	addlenmod@PLT
	movsx	rcx, DWORD PTR -120[rbp]
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, DWORD PTR LUA_NUMBER_FRMLEN[rip]
	mov	rdi, r14
	call	addlenmod@PLT
	mov	esi, DWORD PTR -100[rbp]
	mov	rdi, r12
	call	luaL_checknumber@PLT
	mov	rsi, QWORD PTR -112[rbp]
	mov	rcx, r14
	mov	rdi, r12
	mov	edx, DWORD PTR MAX_ITEM[rip]
	mov	r8d, eax
	call	lua_number2strx@PLT
	mov	r14d, eax
	jmp	.L19
.L14:
	mov	esi, DWORD PTR -100[rbp]
	lea	rdx, -64[rbp]
	mov	rdi, r12
	call	luaL_tolstring@PLT
	cmp	BYTE PTR 2[r14], 0
	je	.L23
	mov	rdi, rax
	mov	QWORD PTR -120[rbp], rax
	call	strlen@PLT
	mov	edx, DWORD PTR -100[rbp]
	xor	esi, esi
	cmp	QWORD PTR -64[rbp], rax
	sete	sil
	lea	rcx, .LC1[rip]
	mov	rdi, r12
	call	luaL_argcheck@PLT
	mov	esi, 46
	mov	rdi, r14
	call	strchr@PLT
	mov	r8, QWORD PTR -120[rbp]
	test	eax, eax
	jne	.L22
	cmp	QWORD PTR -64[rbp], 99
	ja	.L23
.L22:
	mov	rdi, QWORD PTR -112[rbp]
	mov	esi, DWORD PTR MAX_ITEM[rip]
	mov	rdx, r14
	mov	rcx, r8
	xor	eax, eax
	call	l_sprintf@PLT
	mov	esi, 1
	mov	rdi, r12
	mov	r14d, eax
	call	lua_pop@PLT
	jmp	.L19
.L15:
	mov	edx, DWORD PTR -100[rbp]
	mov	rsi, r13
	mov	rdi, r12
	xor	r14d, r14d
	call	addliteral@PLT
	jmp	.L19
.L17:
	mov	esi, DWORD PTR -100[rbp]
	mov	rdi, r12
	call	luaL_checkinteger@PLT
	mov	esi, DWORD PTR MAX_ITEM[rip]
	mov	rdi, QWORD PTR -112[rbp]
	mov	rdx, r14
	mov	rcx, rax
	xor	eax, eax
	call	l_sprintf@PLT
	mov	r14d, eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r13
	xor	r14d, r14d
	call	luaL_addvalue@PLT
	jmp	.L19
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	str_format, .-str_format
	.comm	MAX_ITEM,4,4
	.comm	MAX_FORMAT,4,4
	.comm	L_ESC,1,1
	.comm	LUA_NUMBER_FRMLEN,4,4
	.comm	LUA_INTEGER_FRMLEN,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_lstrlib.c_str_format.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no value\000"
	.align	2
.LC1:
	.ascii	"string contains zeros\000"
	.align	2
.LC2:
	.ascii	"invalid option '%%%c' to 'format'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_format, %function
str_format:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r3, .L32
	mov	r7, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	lua_gettop
	mov	r3, r0
	mov	r1, #1
	sub	r2, fp, #52
	mov	r0, r7
	str	r3, [fp, #-64]
	bl	luaL_checklstring
	ldr	r3, [fp, #-52]
	mov	r4, r0
	add	r3, r0, r3
	mov	r5, r3
	mov	r0, r7
	sub	r1, fp, #48
	str	r3, [fp, #-56]
	bl	luaL_buffinit
	cmp	r4, r5
	bcs	.L22
	ldr	r3, .L32+4
	mov	r6, #1
	ldrb	r5, [r3]	@ zero_extendqisi2
	b	.L21
.L28:
	sub	r0, fp, #48
	mov	r4, r10
	bl	luaL_addchar
.L5:
	ldr	r3, [fp, #-56]
	cmp	r3, r4
	bls	.L22
.L21:
	mov	r10, r4
	ldrb	r1, [r10], #1	@ zero_extendqisi2
	cmp	r1, r5
	bne	.L28
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, r5
	beq	.L29
	ldr	r3, .L32+8
	str	sp, [fp, #-60]
	ldr	r3, [r3]
	sub	r0, fp, #48
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L32+12
	add	r6, r6, #1
	ldr	r1, [r3]
	bl	luaL_prepbuffsize
	ldr	r3, [fp, #-64]
	mov	r8, r0
	cmp	r3, r6
	add	r9, sp, #8
	blt	.L30
.L7:
	mov	r2, r9
	mov	r1, r10
	mov	r0, r7
	bl	scanformat
	mov	r4, r0
	ldrb	r2, [r4], #1	@ zero_extendqisi2
	sub	r3, r2, #65
	cmp	r3, #55
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L15
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L13
	.word	.L8
	.word	.L13
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L15
	.word	.L8
	.word	.L14
	.word	.L9
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L8
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L9
	.word	.L8
	.word	.L12
	.word	.L8
	.word	.L11
	.word	.L8
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L9
.L29:
	mov	r1, r5
	sub	r0, fp, #48
	bl	luaL_addchar
	ldr	r3, [fp, #-56]
	add	r4, r4, #2
	cmp	r3, r4
	bhi	.L21
.L22:
	sub	r0, fp, #48
	bl	luaL_pushresult
	mov	r0, #1
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	mov	r1, r6
	mov	r0, r7
	ldr	r2, .L32+16
	bl	luaL_argerror
	b	.L7
.L8:
	mov	r0, r7
	ldr	r1, .L32+20
	bl	luaL_error
	ldr	sp, [fp, #-60]
	b	.L1
.L9:
	mov	r1, r6
	mov	r0, r7
	bl	luaL_checkinteger
	ldr	r3, .L32+24
.L26:
	mov	r10, r0
	ldr	r1, [r3]
	mov	r0, r9
	bl	addlenmod
	ldr	r1, .L32+12
	mov	r0, r8
	mov	r3, r10
	mov	r2, r9
	ldr	r1, [r1]
	bl	l_sprintf
	mov	r8, r0
.L16:
	ldr	r3, .L32+12
	ldr	r0, [r3]
	cmp	r8, r0
	movge	r0, #0
	movlt	r0, #1
	bl	lua_assert
	mov	r1, r8
	sub	r0, fp, #48
	bl	luaL_addsize
	ldr	sp, [fp, #-60]
	b	.L5
.L13:
	mov	r1, r6
	mov	r0, r7
	bl	luaL_checknumber
	ldr	r3, .L32+28
	b	.L26
.L15:
	ldr	r3, .L32+28
	mov	r0, r9
	ldr	r1, [r3]
	bl	addlenmod
	ldr	r3, .L32+12
	mov	r1, r6
	mov	r0, r7
	ldr	r10, [r3]
	bl	luaL_checknumber
	mov	r1, r8
	str	r0, [sp]
	mov	r2, r10
	mov	r3, r9
	mov	r0, r7
	bl	lua_number2strx
	mov	r8, r0
	b	.L16
.L11:
	mov	r1, r6
	mov	r0, r7
	sub	r2, fp, #44
	bl	luaL_tolstring
	ldrb	r3, [r9, #2]	@ zero_extendqisi2
	mov	r10, r0
	cmp	r3, #0
	beq	.L20
	bl	strlen
	ldr	r1, [fp, #-44]
	mov	r2, r6
	sub	r1, r1, r0
	clz	r1, r1
	ldr	r3, .L32+32
	lsr	r1, r1, #5
	mov	r0, r7
	bl	luaL_argcheck
	mov	r1, #46
	mov	r0, r9
	bl	strchr
	cmp	r0, #0
	bne	.L19
	ldr	r3, [fp, #-44]
	cmp	r3, #99
	bhi	.L20
.L19:
	ldr	r1, .L32+12
	mov	r3, r10
	mov	r2, r9
	mov	r0, r8
	ldr	r1, [r1]
	bl	l_sprintf
	mov	r1, #1
	mov	r8, r0
	mov	r0, r7
	bl	lua_pop
	b	.L16
.L12:
	mov	r2, r6
	mov	r0, r7
	sub	r1, fp, #48
	bl	addliteral
	mov	r8, #0
	b	.L16
.L14:
	ldr	r3, .L32+12
	mov	r1, r6
	mov	r0, r7
	ldr	r10, [r3]
	bl	luaL_checkinteger
	mov	r2, r9
	mov	r3, r0
	mov	r1, r10
	mov	r0, r8
	bl	l_sprintf
	mov	r8, r0
	b	.L16
.L20:
	sub	r0, fp, #48
	bl	luaL_addvalue
	mov	r8, #0
	b	.L16
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC3
	.word	L_ESC
	.word	MAX_FORMAT
	.word	MAX_ITEM
	.word	.LC0
	.word	.LC2
	.word	LUA_INTEGER_FRMLEN
	.word	LUA_NUMBER_FRMLEN
	.word	.LC1
	.size	str_format, .-str_format
	.comm	MAX_ITEM,4,4
	.comm	MAX_FORMAT,4,4
	.comm	L_ESC,1,1
	.comm	LUA_NUMBER_FRMLEN,4,4
	.comm	LUA_INTEGER_FRMLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
