	.file	"332277.c"
	.intel_syntax noprefix
	.text
	.globl	characterReplacement
	.type	characterReplacement, @function
characterReplacement:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 65
	cdqe
	movzx	eax, WORD PTR -80[rbp+rax*2]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 65
	cdqe
	mov	WORD PTR -80[rbp+rax*2], dx
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 65
	cdqe
	movzx	eax, WORD PTR -80[rbp+rax*2]
	cwde
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -88[rbp]
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fmax@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -96[rbp]
	add	eax, 1
	sub	eax, DWORD PTR -88[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jge	.L3
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 65
	cdqe
	movzx	eax, WORD PTR -80[rbp+rax*2]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 65
	cdqe
	mov	WORD PTR -80[rbp+rax*2], dx
	add	DWORD PTR -96[rbp], 1
.L3:
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -96[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -92[rbp]
	movq	rax, xmm3
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fmax@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -92[rbp], eax
	add	DWORD PTR -84[rbp], 1
.L2:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L4
	mov	eax, DWORD PTR -92[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	characterReplacement, .-characterReplacement
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"332277.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	characterReplacement
	.syntax unified
	.arm
	.fpu softvfp
	.type	characterReplacement, %function
characterReplacement:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r2, #52
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L2
.L4:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #65
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #56
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-72]
	ldr	r1, [fp, #-88]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #65
	lsl	r2, r2, #16
	asr	r2, r2, #16
	lsl	r3, r3, #1
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r3, r3, #56
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #65
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #56
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmax
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	bge	.L3
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #65
	lsl	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #56
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-84]
	ldr	r1, [fp, #-88]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #65
	lsl	r2, r2, #16
	asr	r2, r2, #16
	lsl	r3, r3, #1
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r3, r3, #56
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L3:
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmax
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L2:
	ldr	r0, [fp, #-88]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bhi	.L4
	ldr	r3, [fp, #-80]
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	characterReplacement, .-characterReplacement
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
