	.file	"extr_midx.c_write_midx_pack_names.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"incorrect pack-file order: %s before %s"
	.text
	.p2align 4
	.type	write_midx_pack_names, @function
write_midx_pack_names:
.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
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rdx
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MIDX_CHUNK_ALIGNMENT[rip]
	mov	DWORD PTR -76[rbp], eax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L22:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L22
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L23
.L4:
	cmp	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -88[rbp], rsp
	je	.L11
	mov	r14, rsi
	xor	r15d, r15d
	xor	r12d, r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	call	strlen@PLT
	mov	rsi, QWORD PTR [r14]
	mov	rdi, r13
	lea	edx, 1[rax]
	movsx	rbx, edx
	mov	rdx, rbx
	add	r12, rbx
	call	hashwrite@PLT
.L6:
	add	r15, 1
	add	r14, 16
	cmp	QWORD PTR -72[rbp], r15
	je	.L24
.L9:
	cmp	QWORD PTR 8[r14], 0
	jne	.L6
	mov	rdi, QWORD PTR [r14]
	test	r15, r15
	je	.L7
	mov	rsi, QWORD PTR -16[r14]
	call	strcmp@PLT
	test	rax, rax
	jle	.L8
.L20:
	mov	rdi, QWORD PTR [r14]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	movsx	rcx, DWORD PTR MIDX_CHUNK_ALIGNMENT[rip]
	mov	rax, r12
	xor	edx, edx
	div	rcx
	mov	rbx, rcx
	sub	rbx, rdx
	cmp	rcx, rbx
	jbe	.L1
	mov	r15, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -76[rbp]
	xor	esi, esi
	add	r12, rbx
	mov	rdi, r15
	call	memset@PLT
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, r13
	call	hashwrite@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	lea	rsp, -40[rbp]
	mov	rax, r12
	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
.L8:
	.cfi_restore_state
	mov	rsi, QWORD PTR -16[r14]
	mov	rdx, QWORD PTR [r14]
	lea	rdi, .LC0[rip]
	call	BUG@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L23:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L11:
	xor	r12d, r12d
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	write_midx_pack_names, .-write_midx_pack_names
	.comm	MIDX_CHUNK_ALIGNMENT,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_midx.c_write_midx_pack_names.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"incorrect pack-file order: %s before %s\000"
	.global	__aeabi_uidivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_midx_pack_names, %function
write_midx_pack_names:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L16
	subs	r7, r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L16+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	str	sp, [fp, #-52]
	beq	.L7
	mov	r5, #0
	mov	r8, r0
	mov	r4, r1
	mov	r6, r5
.L5:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L3
	cmp	r5, #0
	ldr	r10, [r4]
	beq	.L4
	ldr	r9, [r4, #-8]
	mov	r0, r10
	mov	r1, r9
	bl	strcmp
	cmp	r0, #0
	ble	.L14
.L4:
	mov	r0, r10
	bl	strlen
	add	r9, r0, #1
	mov	r2, r9
	mov	r1, r10
	mov	r0, r8
	bl	hashwrite
	add	r6, r6, r9
.L3:
	add	r5, r5, #1
	cmp	r7, r5
	add	r4, r4, #8
	bne	.L5
	ldr	r3, .L16
	mov	r0, r6
	ldr	r5, [r3]
	mov	r1, r5
	bl	__aeabi_uidivmod
	sub	r4, r5, r1
	cmp	r5, r4
	bls	.L1
	ldr	r5, [fp, #-52]
	mov	r1, #0
	ldr	r2, [fp, #-48]
	mov	r0, r5
	bl	memset
	mov	r2, r4
	mov	r1, r5
	mov	r0, r8
	add	r6, r6, r4
	bl	hashwrite
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r6
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r2, r10
	mov	r1, r9
	ldr	r0, .L16+8
	bl	BUG
	ldr	r10, [r4]
	b	.L4
.L7:
	mov	r6, r7
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	MIDX_CHUNK_ALIGNMENT
	.word	.LC1
	.word	.LC0
	.size	write_midx_pack_names, .-write_midx_pack_names
	.comm	MIDX_CHUNK_ALIGNMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
