	.file	"extr_parser.c_xmlParserEntityCheck.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xmlParserEntityCheck, @function
xmlParserEntityCheck:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L44
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR XML_PARSE_HUGE[rip], eax
	jne	.L4
	mov	rbx, rdx
	mov	eax, 1
	mov	rdx, QWORD PTR XML_ERR_ENTITY_LOOP[rip]
	cmp	QWORD PTR 24[rdi], rdx
	je	.L1
	mov	r13, rsi
	mov	r12, rcx
	test	rbx, rbx
	je	.L5
	mov	rax, QWORD PTR XML_INTERNAL_PREDEFINED_ENTITY[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L5
	mov	rsi, QWORD PTR 16[rbx]
	test	rsi, rsi
	je	.L5
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jne	.L5
	cmp	rdx, QWORD PTR 8[rdi]
	jne	.L45
	.p2align 4,,10
	.p2align 3
.L5:
	test	r12, r12
	je	.L10
	cmp	QWORD PTR XML_MAX_TEXT_LENGTH[rip], r12
	ja	.L4
	mov	rdx, QWORD PTR 40[rbp]
	xor	eax, eax
	test	rdx, rdx
	je	.L11
	mov	rax, QWORD PTR 8[rdx]
	add	rax, QWORD PTR [rdx]
	sub	rax, QWORD PTR 16[rdx]
.L11:
	add	rax, QWORD PTR 32[rbp]
	imul	rax, QWORD PTR XML_PARSER_NON_LINEAR[rip]
	cmp	rax, r12
	ja	.L4
.L12:
	mov	rsi, QWORD PTR XML_ERR_ENTITY_LOOP[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	xmlFatalErr@PLT
	mov	eax, 1
.L1:
	add	rsp, 8
	.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
.L10:
	.cfi_restore_state
	test	r13, r13
	jne	.L46
	test	rbx, rbx
	je	.L15
	mov	edx, DWORD PTR 8[rbx]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	mov	rdx, QWORD PTR 40[rbp]
	sar	eax
	cdqe
	test	rdx, rdx
	je	.L16
	mov	rsi, QWORD PTR 8[rdx]
	add	rsi, QWORD PTR [rdx]
	sub	rsi, QWORD PTR 16[rdx]
	mov	r13, rsi
.L16:
	mov	rsi, QWORD PTR 32[rbp]
	lea	rax, [rax+rax*2]
	add	rsi, r13
	imul	rsi, QWORD PTR XML_PARSER_NON_LINEAR[rip]
	cmp	rax, rsi
	jnb	.L12
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
.L47:
	add	rsp, 8
	.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
.L46:
	.cfi_restore_state
	cmp	QWORD PTR XML_PARSER_BIG_ENTITY[rip], r13
	ja	.L4
	mov	rax, QWORD PTR 40[rbp]
	test	rax, rax
	je	.L14
	mov	rcx, QWORD PTR 8[rax]
	add	rcx, QWORD PTR [rax]
	sub	rcx, QWORD PTR 16[rax]
	mov	r12, rcx
.L14:
	mov	rcx, QWORD PTR 32[rbp]
	add	rcx, r12
	imul	rcx, QWORD PTR XML_PARSER_NON_LINEAR[rip]
	cmp	rcx, r13
	jbe	.L12
	mov	rax, QWORD PTR 16[rbp]
	lea	rax, [rax+rax*2]
	cmp	rcx, rax
	jbe	.L12
	xor	eax, eax
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L45:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	r14, QWORD PTR 16[rdi]
	mov	DWORD PTR 8[rbx], 1
	xor	r9d, r9d
	xor	ecx, ecx
	add	DWORD PTR 48[rdi], 1
	mov	edx, DWORD PTR XML_SUBSTITUTE_REF[rip]
	xor	r8d, r8d
	call	xmlStringDecodeEntities@PLT
	sub	DWORD PTR 48[rbp], 1
	mov	r15, rax
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR XML_ERR_ENTITY_LOOP[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L48
.L41:
	mov	eax, DWORD PTR 16[rbp]
	mov	esi, 60
	mov	rdi, r15
	sub	eax, r14d
	lea	eax, 2[rax+rax]
	mov	DWORD PTR 8[rbx], eax
	call	xmlStrchr@PLT
	test	rax, rax
	je	.L9
	or	DWORD PTR 8[rbx], 1
.L9:
	mov	rdi, r15
	call	xmlFree@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 24[rbp]
	cmp	rax, QWORD PTR XML_ERR_UNDECLARED_ENTITY[rip]
	je	.L17
	cmp	rax, QWORD PTR XML_WAR_UNDECLARED_ENTITY[rip]
	jne	.L4
.L17:
	cmp	QWORD PTR 16[rbp], 10000
	ja	.L12
	xor	eax, eax
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, r14d
	lea	eax, 2[rax+rax]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L5
.L48:
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR [rax], 0
	jmp	.L41
	.cfi_endproc
.LFE0:
	.size	xmlParserEntityCheck, .-xmlParserEntityCheck
	.comm	XML_WAR_UNDECLARED_ENTITY,8,8
	.comm	XML_SUBSTITUTE_REF,4,4
	.comm	XML_PARSE_HUGE,4,4
	.comm	XML_PARSER_NON_LINEAR,8,8
	.comm	XML_PARSER_BIG_ENTITY,8,8
	.comm	XML_MAX_TEXT_LENGTH,8,8
	.comm	XML_INTERNAL_PREDEFINED_ENTITY,8,8
	.comm	XML_ERR_UNDECLARED_ENTITY,8,8
	.comm	XML_ERR_ENTITY_LOOP,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_parser.c_xmlParserEntityCheck.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmlParserEntityCheck, %function
xmlParserEntityCheck:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r4, r0, #0
	sub	sp, sp, #8
	beq	.L4
	mov	r6, r3
	ldr	r3, .L42
	mov	r5, r2
	ldr	r3, [r3]
	ldr	r2, [r4]
	tst	r2, r3
	bne	.L4
	ldr	r8, .L42+4
	ldr	r3, [r4, #12]
	ldr	r2, [r8]
	cmp	r3, r2
	moveq	r0, #1
	beq	.L1
	cmp	r5, #0
	mov	r7, r1
	beq	.L5
	ldr	r3, .L42+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L5
	ldr	r1, [r5, #8]
	cmp	r1, #0
	beq	.L5
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L5
	ldr	ip, [r4, #4]
	cmp	r2, ip
	bne	.L40
.L5:
	cmp	r6, #0
	beq	.L10
	ldr	r3, .L42+12
	ldr	r3, [r3]
	cmp	r3, r6
	bhi	.L4
	ldr	r3, [r4, #20]
	cmp	r3, #0
	ldrne	r2, [r3]
	ldmibne	r3, {r1, r3}
	addne	r2, r2, r1
	subne	r3, r2, r3
	ldr	r2, .L42+16
	ldr	r1, [r4, #16]
	ldr	r2, [r2]
	add	r3, r3, r1
	mul	r3, r2, r3
	cmp	r3, r6
	bhi	.L4
.L12:
	mov	r0, r4
	mov	r2, #0
	ldr	r1, [r8]
	bl	xmlFatalErr
	mov	r0, #1
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r2, .L42+20
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L17
	ldr	r2, .L42+24
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L4
.L17:
	ldr	r3, .L42+28
	ldr	r2, [r4, #8]
	cmp	r2, r3
	bhi	.L12
.L4:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	cmp	r7, #0
	beq	.L13
	ldr	r3, .L42+32
	ldr	r3, [r3]
	cmp	r3, r7
	bhi	.L4
	ldr	r2, [r4, #20]
	cmp	r2, #0
	ldrne	r3, [r2]
	ldmibne	r2, {r1, r6}
	ldr	r2, .L42+16
	addne	r3, r3, r1
	subne	r6, r3, r6
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	add	r3, r6, r3
	mul	r3, r2, r3
	cmp	r3, r7
	bls	.L12
	ldr	r2, [r4, #8]
	add	r2, r2, r2, lsl #1
	cmp	r3, r2
	bls	.L12
	b	.L4
.L13:
	cmp	r5, #0
	beq	.L15
	ldr	r2, [r4, #20]
	ldr	r3, [r5, #4]
	cmp	r2, #0
	ldrne	r1, [r2]
	ldmibne	r2, {r0, r7}
	ldr	r2, .L42+16
	addne	r1, r1, r0
	subne	r7, r1, r7
	ldr	r1, [r4, #16]
	ldr	r2, [r2]
	add	r1, r7, r1
	mul	r1, r2, r1
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	add	r3, r3, r3, lsl #1
	cmp	r3, r1
	bcs	.L12
	b	.L4
.L40:
	mov	lr, #1
	ldr	ip, [r4, #24]
	ldr	r2, .L42+36
	str	r3, [sp, #4]
	str	r3, [sp]
	add	ip, ip, lr
	ldr	r10, [r4, #8]
	ldr	r2, [r2]
	str	lr, [r5, #4]
	str	ip, [r4, #24]
	bl	xmlStringDecodeEntities
	ldr	r3, [r4, #24]
	subs	r9, r0, #0
	sub	r3, r3, #1
	str	r3, [r4, #24]
	beq	.L6
	ldr	r2, [r4, #4]
	ldr	r3, [r8]
	cmp	r2, r3
	beq	.L41
.L38:
	ldr	r3, [r4, #8]
	mov	r1, #60
	add	r3, r3, #1
	sub	r3, r3, r10
	lsl	r3, r3, #1
	str	r3, [r5, #4]
	mov	r0, r9
	bl	xmlStrchr
	cmp	r0, #0
	ldrne	r3, [r5, #4]
	mov	r0, r9
	orrne	r3, r3, #1
	strne	r3, [r5, #4]
	bl	xmlFree
	b	.L5
.L6:
	ldr	r3, [r5, #8]
	str	r9, [r3]
	ldr	r3, [r4, #8]
	add	r3, r3, #1
	sub	r3, r3, r10
	lsl	r3, r3, #1
	str	r3, [r5, #4]
	b	.L5
.L41:
	mov	r2, #0
	ldr	r3, [r5, #8]
	str	r2, [r3]
	b	.L38
.L43:
	.align	2
.L42:
	.word	XML_PARSE_HUGE
	.word	XML_ERR_ENTITY_LOOP
	.word	XML_INTERNAL_PREDEFINED_ENTITY
	.word	XML_MAX_TEXT_LENGTH
	.word	XML_PARSER_NON_LINEAR
	.word	XML_ERR_UNDECLARED_ENTITY
	.word	XML_WAR_UNDECLARED_ENTITY
	.word	10000
	.word	XML_PARSER_BIG_ENTITY
	.word	XML_SUBSTITUTE_REF
	.size	xmlParserEntityCheck, .-xmlParserEntityCheck
	.comm	XML_WAR_UNDECLARED_ENTITY,4,4
	.comm	XML_SUBSTITUTE_REF,4,4
	.comm	XML_PARSE_HUGE,4,4
	.comm	XML_PARSER_NON_LINEAR,4,4
	.comm	XML_PARSER_BIG_ENTITY,4,4
	.comm	XML_MAX_TEXT_LENGTH,4,4
	.comm	XML_INTERNAL_PREDEFINED_ENTITY,4,4
	.comm	XML_ERR_UNDECLARED_ENTITY,4,4
	.comm	XML_ERR_ENTITY_LOOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
