	.file	"extr_sortkey.c_compare_unicode_weights.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	compare_unicode_weights, @function
compare_unicode_weights:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	test	edx, edx
	jle	.L2
	mov	r14d, edi
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L3:
	movzx	edx, BYTE PTR [rbx]
	test	DWORD PTR SORT_STRINGSORT[rip], r14d
	jne	.L6
	cmp	dil, 45
	je	.L23
	cmp	dil, 39
	je	.L23
	cmp	dl, 45
	je	.L24
	cmp	dl, 39
	je	.L24
.L6:
	movsx	eax, dil
	mov	rsi, QWORD PTR collation_table[rip]
	movsx	r8d, dl
	movzx	edi, dil
	mov	ecx, eax
	movzx	edx, dl
	sar	ecx, 8
	movsx	rcx, ecx
	movsx	ecx, BYTE PTR [rsi+rcx]
	add	edi, ecx
	mov	ecx, r8d
	sar	ecx, 8
	movsx	rdi, edi
	movsx	rcx, ecx
	movsx	edi, BYTE PTR [rsi+rdi]
	movsx	ecx, BYTE PTR [rsi+rcx]
	add	edx, ecx
	movsx	rdx, edx
	movsx	edx, BYTE PTR [rsi+rdx]
	cmp	edi, -1
	je	.L10
	cmp	edx, -1
	je	.L10
	mov	eax, edi
	shr	edx, 16
	shr	eax, 16
	sub	eax, edx
.L11:
	test	eax, eax
	jne	.L1
	add	r13, 1
	add	rbx, 1
	sub	ebp, 1
	sub	r12d, 1
.L5:
	test	ebp, ebp
	jle	.L2
.L62:
	test	r12d, r12d
	jle	.L2
	movsx	edi, BYTE PTR 0[r13]
	test	DWORD PTR NORM_IGNORESYMBOLS[rip], r14d
	je	.L3
	call	get_char_typeW@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR C1_PUNCT[rip]
	or	eax, DWORD PTR C1_SPACE[rip]
	test	eax, r8d
	je	.L4
	movsx	edi, BYTE PTR [rbx]
	add	r13, 1
	sub	ebp, 1
	call	get_char_typeW@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR C1_PUNCT[rip]
	or	eax, DWORD PTR C1_SPACE[rip]
	test	eax, r8d
	je	.L5
.L24:
	add	rbx, 1
	sub	r12d, 1
	test	ebp, ebp
	jg	.L62
	.p2align 4,,10
	.p2align 3
.L2:
	test	ebp, ebp
	jne	.L15
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	add	r13, 1
	sub	ebp, 1
	je	.L22
.L15:
	cmp	BYTE PTR 0[r13], 0
	je	.L17
	mov	eax, ebp
.L16:
	test	r12d, r12d
	jne	.L18
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	add	rbx, 1
	sub	r12d, 1
	je	.L1
.L18:
	cmp	BYTE PTR [rbx], 0
	je	.L20
	sub	eax, r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L10:
	.cfi_restore_state
	sub	eax, r8d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	dl, 45
	je	.L6
	cmp	dl, 39
	je	.L6
	add	r13, 1
	sub	ebp, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	edi, BYTE PTR [rbx]
	call	get_char_typeW@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR C1_PUNCT[rip]
	or	eax, DWORD PTR C1_SPACE[rip]
	test	eax, r8d
	jne	.L24
	movzx	edi, BYTE PTR 0[r13]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	xor	eax, eax
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	compare_unicode_weights, .-compare_unicode_weights
	.comm	collation_table,8,8
	.comm	SORT_STRINGSORT,4,4
	.comm	NORM_IGNORESYMBOLS,4,4
	.comm	C1_SPACE,4,4
	.comm	C1_PUNCT,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_sortkey.c_compare_unicode_weights.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_unicode_weights, %function
compare_unicode_weights:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [sp, #40]
	mov	r6, r1
	cmp	r2, #0
	cmpgt	r5, #0
	mov	r7, r3
	mov	r4, r2
	ble	.L2
	mov	r8, r0
	ldr	r9, .L45
	ldr	r10, .L45+4
	ldr	fp, .L45+8
	b	.L9
.L44:
	ldrb	r3, [r6]	@ zero_extendqisi2
	ldrb	r1, [r7]	@ zero_extendqisi2
	cmp	r3, #39
	cmpne	r3, #45
	bne	.L7
	cmp	r1, #45
	cmpne	r1, #39
	add	r6, r6, #1
	sub	r4, r4, #1
	bne	.L5
.L40:
	add	r7, r7, #1
	sub	r5, r5, #1
.L5:
	cmp	r4, #0
	cmpgt	r5, #0
	ble	.L2
.L9:
	ldr	r3, [r9]
	tst	r8, r3
	bne	.L43
.L3:
	ldr	r3, [r10]
	tst	r8, r3
	beq	.L44
	add	r7, r7, #1
	sub	r5, r5, #1
.L41:
	sub	r4, r4, #1
	cmp	r4, #0
	cmpgt	r5, #0
	add	r6, r6, #1
	bgt	.L9
.L2:
	cmp	r4, #0
	beq	.L17
	mov	r0, r4
	sub	r6, r6, #1
	b	.L11
.L12:
	subs	r0, r0, #1
	beq	.L10
.L11:
	ldrb	r3, [r6, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
.L10:
	cmp	r5, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	sub	r7, r7, #1
	b	.L14
.L15:
	subs	r5, r5, #1
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldrb	r3, [r7, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	sub	r0, r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	ldrb	r0, [r6]	@ zero_extendqisi2
	bl	get_char_typeW
	ldr	r2, .L45+12
	ldr	r1, [fp]
	ldr	r3, [r2]
	orr	r3, r3, r1
	tst	r3, r0
	ldrb	r0, [r7]	@ zero_extendqisi2
	beq	.L4
	bl	get_char_typeW
	ldr	r2, .L45+12
	ldr	r1, [fp]
	ldr	r3, [r2]
	add	r6, r6, #1
	orr	r3, r3, r1
	tst	r3, r0
	sub	r4, r4, #1
	bne	.L40
	b	.L5
.L7:
	cmp	r1, #39
	cmpne	r1, #45
	add	r7, r7, #1
	sub	r5, r5, #1
	bne	.L41
	b	.L5
.L4:
	bl	get_char_typeW
	ldr	r2, .L45+12
	ldr	r1, [fp]
	ldr	r3, [r2]
	orr	r3, r3, r1
	tst	r3, r0
	beq	.L3
	b	.L40
.L17:
	mov	r0, r4
	b	.L10
.L46:
	.align	2
.L45:
	.word	NORM_IGNORESYMBOLS
	.word	SORT_STRINGSORT
	.word	C1_SPACE
	.word	C1_PUNCT
	.size	compare_unicode_weights, .-compare_unicode_weights
	.comm	collation_table,4,4
	.comm	SORT_STRINGSORT,4,4
	.comm	NORM_IGNORESYMBOLS,4,4
	.comm	C1_SPACE,4,4
	.comm	C1_PUNCT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
