	.file	"extr_encoding.c_xmlFindCharEncodingHandler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xmlFindCharEncodingHandler
	.type	xmlFindCharEncodingHandler, @function
xmlFindCharEncodingHandler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 112
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR handlers[rip], 0
	je	.L31
.L2:
	test	r14, r14
	je	.L5
	cmp	BYTE PTR [r14], 0
	jne	.L32
.L5:
	mov	rax, QWORD PTR xmlDefaultCharEncodingHandler[rip]
.L1:
	mov	rdx, QWORD PTR 104[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L33
	add	rsp, 112
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rdi, r14
	mov	rbp, rsp
	call	xmlGetEncodingAlias@PLT
	test	rax, rax
	mov	r12, rax
	cmove	r12, r14
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L35:
	add	rbx, 1
	cmp	rbx, 99
	je	.L34
.L8:
	movsx	edi, BYTE PTR [r12+rbx]
	movsx	r13, ebx
	call	toupper@PLT
	mov	BYTE PTR 0[rbp+rbx], al
	test	al, al
	jne	.L35
.L7:
	mov	rax, QWORD PTR handlers[rip]
	mov	BYTE PTR [rsp+r13], 0
	test	rax, rax
	je	.L9
	mov	edx, DWORD PTR nbCharEncodingHandler[rip]
	test	edx, edx
	jle	.L9
	xor	ebx, ebx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	add	rbx, 1
	cmp	DWORD PTR nbCharEncodingHandler[rip], ebx
	jle	.L9
	mov	rax, QWORD PTR handlers[rip]
.L11:
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	rdi, rbp
	lea	r13, 0[0+rbx*8]
	mov	rsi, QWORD PTR [rax]
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR handlers[rip]
	mov	rax, QWORD PTR [rax+r13]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r14
	call	xmlParseCharEncoding@PLT
	cmp	QWORD PTR XML_CHAR_ENCODING_ERROR[rip], rax
	mov	rdi, rax
	je	.L13
	call	xmlGetCharEncodingName@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
	mov	rsi, rax
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	jne	.L36
.L13:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	call	xmlInitCharEncodingHandlers@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r13d, 99
	jmp	.L7
.L36:
	mov	rdi, rbp
	call	xmlFindCharEncodingHandler
	jmp	.L1
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xmlFindCharEncodingHandler, .-xmlFindCharEncodingHandler
	.comm	xmlGenericErrorContext,4,4
	.comm	xmlDefaultCharEncodingHandler,8,8
	.comm	nbCharEncodingHandler,4,4
	.comm	handlers,8,8
	.comm	XML_ERR_INTERNAL_ERROR,4,4
	.comm	XML_CHAR_ENCODING_ERROR,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_encoding.c_xmlFindCharEncodingHandler.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xmlFindCharEncodingHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmlFindCharEncodingHandler, %function
xmlFindCharEncodingHandler:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L40
	sub	sp, sp, #108
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	mov	r4, r0
	ldr	r6, .L40+4
	ldr	r8, .L40+8
.L13:
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L36
.L2:
	cmp	r4, #0
	beq	.L5
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	mov	r0, r4
	bl	xmlGetEncodingAlias
	cmp	r0, #0
	movne	r5, r0
	moveq	r5, r4
	mov	r10, #0
	sub	r7, r5, #1
	sub	fp, sp, #1
	b	.L8
.L37:
	add	r10, r10, #1
	cmp	r10, #99
	beq	.L7
.L8:
	ldrb	r0, [r7, #1]!	@ zero_extendqisi2
	bl	toupper
	cmp	r0, #0
	strb	r0, [fp, #1]!
	bne	.L37
.L7:
	add	r2, sp, #104
	add	r10, r2, r10
	mov	r2, #0
	ldr	r3, [r6]
	strb	r2, [r10, #-104]
	cmp	r3, #0
	beq	.L9
	ldr	r2, .L40+12
	ldr	fp, [r2]
	cmp	fp, #0
	ble	.L9
	mov	r10, #0
	sub	r7, r3, #4
	b	.L10
.L38:
	add	r10, r10, #1
	cmp	fp, r10
	beq	.L9
.L10:
	ldr	r9, [r7, #4]!
	mov	r0, sp
	ldr	r1, [r9]
	bl	strcmp
	cmp	r0, #0
	bne	.L38
.L1:
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L39
	mov	r0, r9
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r0, r4
	bl	xmlParseCharEncoding
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L12
	bl	xmlGetCharEncodingName
	subs	r4, r0, #0
	beq	.L12
	mov	r0, r5
	mov	r1, r4
	bl	strcmp
	cmp	r0, #0
	bne	.L13
.L12:
	mov	r9, #0
	b	.L1
.L36:
	bl	xmlInitCharEncodingHandlers
	b	.L2
.L5:
	ldr	r3, .L40+16
	ldr	r9, [r3]
	b	.L1
.L39:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	.LC0
	.word	handlers
	.word	XML_CHAR_ENCODING_ERROR
	.word	nbCharEncodingHandler
	.word	xmlDefaultCharEncodingHandler
	.size	xmlFindCharEncodingHandler, .-xmlFindCharEncodingHandler
	.comm	xmlGenericErrorContext,4,4
	.comm	xmlDefaultCharEncodingHandler,4,4
	.comm	nbCharEncodingHandler,4,4
	.comm	handlers,4,4
	.comm	XML_ERR_INTERNAL_ERROR,4,4
	.comm	XML_CHAR_ENCODING_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
