	.file	"extr_lj_bcwrite.c_lj_bcwrite.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lj_bcwrite
	.type	lj_bcwrite, @function
lj_bcwrite:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rbp, 8[rsp]
	mov	QWORD PTR 32[rsp], rsi
	mov	r13, rsp
	mov	rsi, rbp
	mov	DWORD PTR [rsp], r8d
	mov	DWORD PTR 24[rsp], edx
	mov	QWORD PTR 16[rsp], rcx
	mov	DWORD PTR 4[rsp], 0
	call	lj_buf_init@PLT
	mov	ecx, DWORD PTR cpwriter[rip]
	xor	esi, esi
	mov	rdx, r13
	mov	rdi, r12
	call	lj_vm_cpcall@PLT
	mov	rdi, rbp
	test	eax, eax
	mov	r12d, eax
	cmove	r12d, DWORD PTR 4[rsp]
	call	sbufL@PLT
	mov	edi, eax
	call	G@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	lj_buf_free@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L6
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lj_bcwrite, .-lj_bcwrite
	.comm	cpwriter,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_bcwrite.c_lj_bcwrite.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lj_bcwrite
	.syntax unified
	.arm
	.fpu softvfp
	.type	lj_bcwrite, %function
lj_bcwrite:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, #0
	mov	r4, r0
	sub	sp, sp, #36
	ldr	ip, [sp, #48]
	str	r3, [sp, #16]
	ldr	r3, .L7
	str	r1, [sp, #24]
	str	r2, [sp, #20]
	add	r1, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	str	ip, [sp, #4]
	str	r5, [sp, #8]
	bl	lj_buf_init
	ldr	r3, .L7+4
	add	r2, sp, #4
	ldr	r3, [r3]
	mov	r1, r5
	mov	r0, r4
	bl	lj_vm_cpcall
	subs	r4, r0, #0
	add	r0, sp, #12
	ldreq	r4, [sp, #8]
	bl	sbufL
	bl	G
	add	r1, sp, #12
	bl	lj_buf_free
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	cpwriter
	.size	lj_bcwrite, .-lj_bcwrite
	.comm	cpwriter,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
