	.file	"extr_cooccur.c_write_chunk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	write_chunk
	.type	write_chunk, @function
write_chunk:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L2
	movdqu	xmm1, XMMWORD PTR [rdi]
	mov	rax, QWORD PTR 16[rdi]
	mov	r12, rdx
	mov	rbp, rsp
	mov	QWORD PTR 16[rsp], rax
	movaps	XMMWORD PTR [rsp], xmm1
	cmp	rsi, 1
	jle	.L3
	lea	rax, [rsi+rsi*2]
	lea	rbx, 24[rdi]
	mov	rbp, rsp
	lea	r13, [rdi+rax*8]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR [rbx], rax
	jne	.L4
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 8[rbx], rax
	je	.L16
.L4:
	mov	rcx, r12
	mov	edx, 1
	mov	esi, 24
	mov	rdi, rbp
	call	fwrite@PLT
	mov	rax, QWORD PTR 16[rbx]
	movdqu	xmm0, XMMWORD PTR [rbx]
	mov	QWORD PTR 16[rsp], rax
	movaps	XMMWORD PTR [rsp], xmm0
.L5:
	add	rbx, 24
	cmp	rbx, r13
	jne	.L6
.L3:
	mov	rcx, r12
	mov	edx, 1
	mov	esi, 24
	mov	rdi, rbp
	call	fwrite@PLT
.L2:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbx]
	add	QWORD PTR 16[rsp], rax
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	write_chunk, .-write_chunk
	.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_cooccur.c_write_chunk.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_chunk
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_chunk, %function
write_chunk:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r9, r3
	mov	r8, r2
	orrs	r3, r8, r9
	ldr	r3, .L16
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r7, [sp, #48]
	beq	.L2
	mov	r6, sp
	cmp	r8, #2
	sbcs	r3, r9, #0
	mov	r4, r0
	ldm	r0, {r0, r1, r2}
	stm	r6, {r0, r1, r2}
	blt	.L3
	add	r2, r8, r8, lsl #1
	sub	r5, r4, #12
	add	r5, r5, r2, lsl #2
.L6:
	ldr	r1, [r4, #12]
	ldr	r2, [sp]
	cmp	r1, r2
	bne	.L4
	ldr	r2, [r4, #16]
	ldr	r3, [sp, #4]
	cmp	r2, r3
	beq	.L14
.L4:
	mov	r2, #1
	mov	r1, #12
	mov	r3, r7
	mov	r0, r6
	add	r4, r4, #12
	bl	fwrite
	ldm	r4, {r0, r1, r2}
	stm	r6, {r0, r1, r2}
.L5:
	cmp	r4, r5
	bne	.L6
.L3:
	mov	r3, r7
	mov	r0, r6
	mov	r2, #1
	mov	r1, #12
	bl	fwrite
.L2:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	ldr	r3, [sp, #8]
	ldr	r2, [r4, #20]
	add	r4, r4, #12
	add	r3, r3, r2
	str	r3, [sp, #8]
	b	.L5
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	write_chunk, .-write_chunk
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
