	.file	"extr_tc-score.c_insert_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	insert_reg, @function
insert_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	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
	mov	edi, DWORD PTR [rdi]
	call	strlen@PLT
	lea	r12d, 2[rax]
	mov	edi, r12d
	call	xmalloc@PLT
	mov	edi, r12d
	mov	rbp, rax
	call	xmalloc@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	mov	r12, rax
	call	strcpy@PLT
	movsx	edi, BYTE PTR 0[rbp]
	test	dil, dil
	je	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	call	TOUPPER@PLT
	mov	BYTE PTR [r12+rbx], al
	add	rbx, 1
	movsx	edi, BYTE PTR 0[rbp+rbx]
	test	dil, dil
	jne	.L3
	add	rbx, r12
.L2:
	mov	BYTE PTR [rbx], 0
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	hash_insert@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdx, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rsi, r12
	mov	rdi, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	hash_insert@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rbx, r12
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	insert_reg, .-insert_reg
	.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_tc-score.c_insert_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_reg, %function
insert_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r7, r1
	bl	strlen
	add	r4, r0, #2
	mov	r0, r4
	bl	xmalloc
	mov	r6, r0
	mov	r0, r4
	bl	xmalloc
	ldr	r1, [r5]
	mov	r4, r0
	mov	r0, r6
	bl	strcpy
	ldrb	r0, [r6]	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L4
	mov	r9, r6
	sub	r8, r4, #1
.L3:
	bl	TOUPPER
	mov	r3, r8
	strb	r0, [r8, #1]!
	ldrb	r0, [r9, #1]!	@ zero_extendqisi2
	add	r3, r3, #2
	cmp	r0, #0
	sub	r3, r3, r4
	bne	.L3
	add	r3, r4, r3
.L2:
	mov	r2, #0
	mov	r1, r6
	mov	r0, r7
	strb	r2, [r3]
	mov	r2, r5
	bl	hash_insert
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	hash_insert
.L4:
	mov	r3, r4
	b	.L2
	.size	insert_reg, .-insert_reg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
