	.file	"extr_u8_textprep.c_do_norm_compare.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_norm_compare, @function
do_norm_compare:
.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
	push	r12
	push	rbx
	sub	rsp, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -72[rbp], rsi
	mov	QWORD PTR -80[rbp], rdx
	mov	rbx, rsp
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR U8_STREAM_SAFE_TEXT_MAX[rip]
	add	eax, 1
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rsi, rax
	mov	rdx, rax
	and	rsi, -4096
	and	rdx, -16
	sub	rbx, rsi
	mov	rsi, rbx
	cmp	rsp, rsi
	je	.L3
.L59:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rsi
	jne	.L59
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L60
.L4:
	mov	rdx, rax
	mov	rbx, rsp
	and	rax, -4096
	mov	r12, rsp
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L6
.L61:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L61
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L62
.L7:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	r13, rsp
	mov	r14d, DWORD PTR U8_TEXTPREP_TOUPPER[rip]
	mov	r15d, DWORD PTR U8_TEXTPREP_TOLOWER[rip]
	lea	rbx, [rax+rcx*8]
	mov	ecx, DWORD PTR U8_CANON_DECOMP[rip]
	lea	rsi, [rdx+r8*8]
	and	r14d, r9d
	and	r15d, r9d
	mov	QWORD PTR -96[rbp], rsi
	and	ecx, r9d
	mov	QWORD PTR -88[rbp], rbx
	mov	DWORD PTR -116[rbp], ecx
	mov	ecx, DWORD PTR U8_COMPAT_DECOMP[rip]
	and	ecx, r9d
	and	r9d, DWORD PTR U8_CANON_COMP[rip]
	cmp	rdx, rsi
	setb	sil
	cmp	rax, rbx
	mov	DWORD PTR -120[rbp], ecx
	setb	cl
	mov	DWORD PTR -124[rbp], r9d
	and	sil, cl
	mov	BYTE PTR -125[rbp], sil
	je	.L8
	lea	rbx, -72[rbp]
	mov	QWORD PTR -136[rbp], rbx
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L70:
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR [r12], rax
	jg	.L27
	jl	.L63
.L24:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jnb	.L8
	cmp	rdx, QWORD PTR -96[rbp]
	jnb	.L8
.L25:
	mov	rdi, QWORD PTR [rax]
	call	U8_ISASCII@PLT
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 8[rax]
	cmp	QWORD PTR -88[rbp], rdx
	ja	.L64
	mov	rdi, QWORD PTR [rax]
	test	r14d, r14d
	jne	.L65
.L11:
	test	r15d, r15d
	jne	.L66
	mov	QWORD PTR [r12], rdi
.L12:
	add	rax, 8
	movzx	ebx, BYTE PTR -125[rbp]
	mov	QWORD PTR 8[r12], 0
	mov	QWORD PTR -72[rbp], rax
.L14:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, QWORD PTR [rax]
	call	U8_ISASCII@PLT
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 8[rax]
	cmp	QWORD PTR -96[rbp], rdx
	ja	.L67
	mov	rdi, QWORD PTR [rax]
	test	r14d, r14d
	jne	.L68
.L17:
	test	r15d, r15d
	jne	.L69
	mov	QWORD PTR 0[r13], rdi
.L18:
	add	rax, 8
	mov	QWORD PTR 8[r13], 0
	mov	QWORD PTR -80[rbp], rax
.L20:
	test	bl, bl
	jne	.L70
	mov	rsi, r13
	mov	rdi, r12
	call	strcmp@PLT
	test	eax, eax
	je	.L24
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rsi, QWORD PTR -56[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L71
	lea	rsp, -40[rbp]
	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
.L60:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR U8_STATE_START[rip]
	sub	rsp, 8
	mov	r9d, r15d
	mov	r8d, r14d
	mov	rcx, QWORD PTR -96[rbp]
	mov	rdi, QWORD PTR -104[rbp]
	lea	rdx, -80[rbp]
	mov	rsi, r13
	mov	DWORD PTR -60[rbp], eax
	lea	rax, -60[rbp]
	push	rax
	mov	eax, DWORD PTR -124[rbp]
	push	QWORD PTR -112[rbp]
	push	rax
	mov	eax, DWORD PTR -120[rbp]
	push	rax
	mov	eax, DWORD PTR -116[rbp]
	push	rax
	call	collect_a_seq@PLT
	add	rsp, 48
	cmp	rax, 1
	sete	al
	and	ebx, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR U8_STATE_START[rip]
	sub	rsp, 8
	mov	r9d, r15d
	mov	r8d, r14d
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	rsi, r12
	mov	DWORD PTR -60[rbp], eax
	lea	rax, -60[rbp]
	mov	rdi, QWORD PTR -104[rbp]
	push	rax
	mov	eax, DWORD PTR -124[rbp]
	push	QWORD PTR -112[rbp]
	push	rax
	mov	eax, DWORD PTR -120[rbp]
	push	rax
	mov	eax, DWORD PTR -116[rbp]
	push	rax
	call	collect_a_seq@PLT
	add	rsp, 48
	cmp	rax, 1
	sete	bl
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L67:
	mov	rdi, QWORD PTR 8[rax]
	call	U8_ISASCII@PLT
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, QWORD PTR [rax]
	test	r14d, r14d
	je	.L17
	.p2align 4,,10
	.p2align 3
.L68:
	call	U8_ASCII_TOUPPER@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR -80[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L64:
	mov	rdi, QWORD PTR 8[rax]
	call	U8_ISASCII@PLT
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, QWORD PTR [rax]
	test	r14d, r14d
	je	.L11
	.p2align 4,,10
	.p2align 3
.L65:
	call	U8_ASCII_TOUPPER@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR -72[rbp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L69:
	call	U8_ASCII_TOLOWER@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR -80[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L66:
	call	U8_ASCII_TOLOWER@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR -72[rbp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR -88[rbp], rax
	ja	.L27
	xor	eax, eax
	cmp	QWORD PTR -96[rbp], rdx
	seta	al
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L63:
	mov	eax, -1
	jmp	.L1
.L62:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_norm_compare, .-do_norm_compare
	.comm	U8_TEXTPREP_TOUPPER,4,4
	.comm	U8_TEXTPREP_TOLOWER,4,4
	.comm	U8_STREAM_SAFE_TEXT_MAX,4,4
	.comm	U8_STATE_START,4,4
	.comm	U8_COMPAT_DECOMP,4,4
	.comm	U8_CANON_DECOMP,4,4
	.comm	U8_CANON_COMP,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_u8_textprep.c_do_norm_compare.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_norm_compare, %function
do_norm_compare:
	@ args = 12, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #84
	ldr	r4, [fp, #4]
	add	r6, r1, r3, lsl #2
	add	r9, r2, r4, lsl #2
	cmp	r2, r9
	cmpcc	r1, r6
	movcc	r3, #1
	movcs	r3, #0
	mov	r4, r0
	ldr	r10, .L51
	str	r3, [fp, #-80]
	ldr	r8, .L51+4
	ldr	r3, .L51+8
	ldr	r10, [r10]
	ldr	r5, [r3]
	ldr	r7, .L51+12
	ldr	r3, .L51+16
	ldr	r8, [r8]
	str	r10, [fp, #-56]
	str	r8, [fp, #-60]
	str	r1, [fp, #-48]
	ldr	r8, [r7]
	str	r2, [fp, #-52]
	ldr	r7, [r3]
	mov	lr, r1
	ldr	r3, [fp, #8]
	ldr	r1, .L51+20
	mov	ip, r2
	ldr	r2, [fp, #-56]
	str	r4, [fp, #-72]
	ldr	r0, .L51+24
	ldr	r1, [r1]
	str	r1, [fp, #-40]
	mov	r1,#0
	and	r1, r3, r2
	ldr	r2, [fp, #-60]
	ldr	r0, [r0]
	and	r2, r3, r2
	lsl	r5, r5, #2
	add	r5, r5, #11
	and	r10, r3, r0
	str	r2, [fp, #-60]
	and	r2, r3, r8
	and	r3, r3, r7
	bic	r5, r5, #7
	str	r3, [fp, #-68]
	ldr	r3, [fp, #12]
	sub	sp, sp, r5
	add	r4, sp, #32
	str	r1, [fp, #-56]
	sub	sp, sp, r5
	str	r2, [fp, #-64]
	str	r3, [fp, #-76]
	bcs	.L2
	ldr	r7, .L51+28
	add	r5, sp, #32
	b	.L19
.L49:
	ldr	r2, [r4]
	ldr	r3, [r5]
	cmp	r2, r3
	bgt	.L20
	blt	.L42
.L18:
	ldr	lr, [fp, #-48]
	ldr	ip, [fp, #-52]
	cmp	lr, r6
	cmpcc	ip, r9
	bcs	.L2
.L19:
	ldr	r0, [lr]
	bl	U8_ISASCII
	cmp	r0, #0
	beq	.L3
	ldr	r3, [fp, #-48]
	add	r2, r3, #4
	cmp	r6, r2
	bhi	.L43
	cmp	r10, #0
	ldr	r0, [r3]
	bne	.L44
.L5:
	ldr	r2, [fp, #-56]
	cmp	r2, #0
	streq	r0, [r4]
	bne	.L45
.L6:
	mov	r2, #0
	add	r3, r3, #4
	ldr	r8, [fp, #-80]
	str	r3, [fp, #-48]
	str	r2, [r4, #4]
.L8:
	ldr	r3, [fp, #-52]
	ldr	r0, [r3]
	bl	U8_ISASCII
	cmp	r0, #0
	beq	.L9
	ldr	r3, [fp, #-52]
	add	r2, r3, #4
	cmp	r9, r2
	bhi	.L46
	cmp	r10, #0
	ldr	r0, [r3]
	bne	.L47
.L11:
	ldr	r2, [fp, #-56]
	cmp	r2, #0
	streq	r0, [r5]
	bne	.L48
.L12:
	mov	r2, #0
	add	r3, r3, #4
	str	r3, [fp, #-52]
	str	r2, [r5, #4]
.L14:
	cmp	r8, #0
	bne	.L49
	mov	r1, r5
	mov	r0, r4
	bl	strcmp
	cmp	r0, #0
	beq	.L18
.L1:
	ldr	r3, .L51+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L50
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	sub	r3, fp, #44
	ldr	ip, [r7]
	str	r3, [sp, #24]
	ldr	r3, [fp, #-76]
	mov	r1, r5
	str	r3, [sp, #20]
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-72]
	str	r3, [sp, #16]
	ldr	r3, [fp, #-64]
	str	r10, [sp]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-60]
	sub	r2, fp, #52
	str	r3, [sp, #8]
	ldr	r3, [fp, #-56]
	str	ip, [fp, #-44]
	str	r3, [sp, #4]
	mov	r3, r9
	bl	collect_a_seq
	cmp	r0, #1
	movne	r8, #0
	andeq	r8, r8, #1
	b	.L14
.L3:
	sub	r3, fp, #44
	ldr	ip, [r7]
	str	r3, [sp, #24]
	ldr	r3, [fp, #-76]
	mov	r1, r4
	str	r3, [sp, #20]
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-72]
	str	r3, [sp, #16]
	ldr	r3, [fp, #-64]
	str	r10, [sp]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-60]
	sub	r2, fp, #48
	str	r3, [sp, #8]
	ldr	r3, [fp, #-56]
	str	ip, [fp, #-44]
	str	r3, [sp, #4]
	mov	r3, r6
	bl	collect_a_seq
	sub	r8, r0, #1
	clz	r8, r8
	lsr	r8, r8, #5
	b	.L8
.L46:
	ldr	r0, [r3, #4]
	bl	U8_ISASCII
	cmp	r0, #0
	beq	.L9
	ldr	r3, [fp, #-52]
	cmp	r10, #0
	ldr	r0, [r3]
	beq	.L11
.L47:
	bl	U8_ASCII_TOUPPER
	ldr	r3, [fp, #-52]
	str	r0, [r5]
	b	.L12
.L43:
	ldr	r0, [r3, #4]
	bl	U8_ISASCII
	cmp	r0, #0
	beq	.L3
	ldr	r3, [fp, #-48]
	cmp	r10, #0
	ldr	r0, [r3]
	beq	.L5
.L44:
	bl	U8_ASCII_TOUPPER
	ldr	r3, [fp, #-48]
	str	r0, [r4]
	b	.L6
.L48:
	bl	U8_ASCII_TOLOWER
	ldr	r3, [fp, #-52]
	str	r0, [r5]
	b	.L12
.L45:
	bl	U8_ASCII_TOLOWER
	ldr	r3, [fp, #-48]
	str	r0, [r4]
	b	.L6
.L2:
	cmp	r6, lr
	bhi	.L20
	cmp	r9, ip
	movls	r0, #0
	mvnhi	r0, #0
	b	.L1
.L20:
	mov	r0, #1
	b	.L1
.L42:
	mvn	r0, #0
	b	.L1
.L50:
	bl	__stack_chk_fail
.L52:
	.align	2
.L51:
	.word	U8_TEXTPREP_TOLOWER
	.word	U8_CANON_DECOMP
	.word	U8_STREAM_SAFE_TEXT_MAX
	.word	U8_COMPAT_DECOMP
	.word	U8_CANON_COMP
	.word	.LC0
	.word	U8_TEXTPREP_TOUPPER
	.word	U8_STATE_START
	.size	do_norm_compare, .-do_norm_compare
	.comm	U8_TEXTPREP_TOUPPER,4,4
	.comm	U8_TEXTPREP_TOLOWER,4,4
	.comm	U8_STREAM_SAFE_TEXT_MAX,4,4
	.comm	U8_STATE_START,4,4
	.comm	U8_COMPAT_DECOMP,4,4
	.comm	U8_CANON_DECOMP,4,4
	.comm	U8_CANON_COMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
