	.file	"extr_l_bsp_q2.c_Q2_CopyLump.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LoadBSPFile: odd lump size"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Q2_LoadBSPFile: exceeded max size for lump %d size %d > maxsize %d\n"
	.text
	.p2align 4
	.globl	Q2_CopyLump
	.type	Q2_CopyLump, @function
Q2_CopyLump:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8d, edx
	movsx	rdx, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR header[rip]
	mov	rax, QWORD PTR [rax]
	lea	rax, [rax+rdx*8]
	mov	r14d, DWORD PTR [rax]
	movsx	rbx, DWORD PTR 4[rax]
	mov	eax, r14d
	cdq
	idiv	r8d
	mov	r15d, eax
	test	edx, edx
	jne	.L9
	cmp	r15d, r12d
	jg	.L10
.L3:
	mov	rax, QWORD PTR header[rip]
	mov	edx, r14d
	mov	rdi, r13
	lea	rsi, [rax+rbx*4]
	call	memcpy@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L9:
	.cfi_restore_state
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	Error@PLT
	cmp	r15d, r12d
	jle	.L3
.L10:
	mov	ecx, r12d
	mov	edx, r15d
	mov	esi, ebp
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	Error@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	Q2_CopyLump, .-Q2_CopyLump
	.comm	header,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_l_bsp_q2.c_Q2_CopyLump.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LoadBSPFile: odd lump size\000"
	.align	2
.LC1:
	.ascii	"Q2_LoadBSPFile: exceeded max size for lump %d size "
	.ascii	"%d > maxsize %d\012\000"
	.text
	.align	2
	.global	Q2_CopyLump
	.syntax unified
	.arm
	.fpu softvfp
	.type	Q2_CopyLump, %function
Q2_CopyLump:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L11
	mov	r6, r1
	mov	r1, r2
	ldr	r2, [r8]
	mov	r5, r0
	ldr	r2, [r2]
	mov	r9, r3
	ldr	r7, [r2, r0, lsl #3]
	add	r2, r2, r0, lsl #3
	mov	r0, r7
	ldr	r10, [r2, #4]
	bl	__aeabi_idivmod
	cmp	r1, #0
	mov	r4, r0
	bne	.L9
	cmp	r4, r9
	bgt	.L10
.L3:
	ldr	r1, [r8]
	mov	r2, r7
	mov	r0, r6
	add	r1, r1, r10, lsl #2
	bl	memcpy
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r0, .L11+4
	bl	Error
	cmp	r4, r9
	ble	.L3
.L10:
	mov	r3, r9
	mov	r1, r5
	mov	r2, r4
	ldr	r0, .L11+8
	bl	Error
	b	.L3
.L12:
	.align	2
.L11:
	.word	header
	.word	.LC0
	.word	.LC1
	.size	Q2_CopyLump, .-Q2_CopyLump
	.comm	header,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
