	.file	"extr_liolib.c_g_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	g_write, @function
g_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	lua_gettop@PLT
	sub	eax, ebx
	je	.L2
	lea	r13d, [rax+rbx]
	mov	r12d, 1
	mov	r15, rsp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, r15
	mov	esi, ebx
	mov	rdi, rbp
	call	luaL_checklstring@PLT
	test	r12d, r12d
	jne	.L22
.L6:
	add	ebx, 1
	cmp	r13d, ebx
	je	.L23
.L8:
	mov	esi, ebx
	mov	rdi, rbp
	call	lua_type@PLT
	cmp	rax, QWORD PTR LUA_TNUMBER[rip]
	jne	.L3
	mov	esi, ebx
	mov	rdi, rbp
	call	lua_isinteger@PLT
	mov	esi, ebx
	mov	rdi, rbp
	test	rax, rax
	je	.L4
	call	lua_tointeger@PLT
	mov	rsi, QWORD PTR LUA_INTEGER_FMT[rip]
	mov	rdi, r14
	mov	rdx, rax
	call	fprintf@PLT
.L5:
	test	eax, eax
	setg	al
	add	ebx, 1
	and	r12d, eax
	cmp	r13d, ebx
	jne	.L8
.L23:
	test	r12d, r12d
	je	.L24
.L2:
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rsp]
	mov	rcx, r14
	mov	esi, 1
	mov	rdi, rax
	xor	r12d, r12d
	call	fwrite@PLT
	cmp	QWORD PTR [rsp], rax
	sete	r12b
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	call	lua_tonumber@PLT
	mov	rsi, QWORD PTR LUA_NUMBER_FMT[rip]
	mov	rdi, r14
	mov	rdx, rax
	call	fprintf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	luaL_fileresult@PLT
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	g_write, .-g_write
	.comm	LUA_TNUMBER,8,8
	.comm	LUA_NUMBER_FMT,8,8
	.comm	LUA_INTEGER_FMT,8,8
	.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_liolib.c_g_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_write, %function
g_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L26
	sub	sp, sp, #12
	mov	r4, r2
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	lua_gettop
	subs	r0, r0, r4
	beq	.L2
	mov	r6, #1
	ldr	r8, .L26+4
	ldr	fp, .L26+8
	add	r7, r0, r4
	b	.L8
.L3:
	mov	r2, sp
	mov	r1, r4
	mov	r0, r5
	bl	luaL_checklstring
	cmp	r6, #0
	bne	.L22
.L6:
	add	r4, r4, #1
	cmp	r7, r4
	beq	.L23
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	lua_type
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L3
	mov	r1, r4
	mov	r0, r5
	bl	lua_isinteger
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L26+12
	mov	r1, r4
	mov	r0, r5
	ldr	r10, [r3]
	bl	lua_tointeger
	mov	r1, r10
	mov	r2, r0
	mov	r0, r9
	bl	fprintf
.L5:
	add	r4, r4, #1
	cmp	r0, #0
	movle	r6, #0
	andgt	r6, r6, #1
	cmp	r7, r4
	bne	.L8
.L23:
	cmp	r6, #0
	beq	.L24
.L2:
	mov	r0, #1
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r3, r9
	mov	r1, #1
	ldr	r2, [sp]
	bl	fwrite
	ldr	r6, [sp]
	sub	r6, r6, r0
	clz	r6, r6
	lsr	r6, r6, #5
	b	.L6
.L4:
	mov	r1, r4
	mov	r0, r5
	ldr	r10, [fp]
	bl	lua_tonumber
	mov	r1, r10
	mov	r2, r0
	mov	r0, r9
	bl	fprintf
	b	.L5
.L24:
	mov	r0, r5
	mov	r2, r6
	mov	r1, r6
	bl	luaL_fileresult
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	LUA_TNUMBER
	.word	LUA_NUMBER_FMT
	.word	LUA_INTEGER_FMT
	.size	g_write, .-g_write
	.comm	LUA_TNUMBER,4,4
	.comm	LUA_NUMBER_FMT,4,4
	.comm	LUA_INTEGER_FMT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
