	.file	"extr_Str.c_ToHex.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.globl	ToHex
	.type	ToHex, @function
ToHex:
.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	mov	QWORD PTR -72[rbp], rdi
	mov	rcx, rsp
	mov	r15, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_SIZE[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L22
.L4:
	cmp	QWORD PTR -72[rbp], 0
	mov	r12, rsp
	je	.L19
	lea	rdx, .LC0[rip]
	xor	esi, esi
	mov	rdi, rsp
	mov	r14d, 1
	call	StrCpy@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, ebx
	lea	esi, 15[rbx]
	movsx	r13, r14d
	sar	eax, 31
	shr	eax, 28
	lea	edi, [rbx+rax]
	and	edi, 15
	sub	edi, eax
	test	ebx, ebx
	cmovs	ebx, esi
	call	FourBitToHex@PLT
	sar	ebx, 4
	mov	BYTE PTR -1[r12+r14], al
	add	r14, 1
	test	ebx, ebx
	jne	.L7
	mov	BYTE PTR [r12+r13], 0
	mov	rdi, r12
	call	StrLen@PLT
	movsx	rsi, eax
	test	eax, eax
	jle	.L8
	mov	rcx, QWORD PTR -72[rbp]
	sub	eax, 1
	lea	rdx, -1[rcx+rsi]
	lea	rcx, -2[rcx+rsi]
	sub	rcx, rax
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	eax, BYTE PTR [r12]
	sub	rdx, 1
	add	r12, 1
	mov	BYTE PTR 1[rdx], al
	cmp	rdx, rcx
	jne	.L9
.L8:
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR [rax+rsi], 0
.L19:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, r15
	jne	.L23
	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
.L22:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ToHex, .-ToHex
	.comm	MAX_SIZE,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_Str.c_ToHex.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ToHex
	.syntax unified
	.arm
	.fpu softvfp
	.type	ToHex, %function
ToHex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L14
	mov	r8, sp
	ldr	r3, [r3]
	subs	r7, r0, #0
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L14+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L11
	mov	r4, r1
	mov	r5, sp
	mov	r1, #0
	mov	r0, sp
	ldr	r2, .L14+8
	sub	r9, sp, #1
	bl	StrCpy
	mov	r10, r9
	rsb	r6, r5, #2
.L4:
	rsbs	r3, r4, #0
	and	r3, r3, #15
	and	r0, r4, #15
	add	r1, r4, #15
	rsbpl	r0, r3, #0
	cmp	r4, #0
	movlt	r4, r1
	bl	FourBitToHex
	asr	r4, r4, #4
	cmp	r4, #0
	add	r3, r6, r10
	strb	r0, [r10, #1]!
	bne	.L4
	mov	r0, r5
	strb	r4, [r5, r3]
	bl	StrLen
	cmp	r0, #0
	ble	.L5
	sub	r5, r5, #1
	add	r5, r5, r0
	add	r3, r7, r0
.L6:
	ldrb	r2, [r9, #1]!	@ zero_extendqisi2
	cmp	r9, r5
	strb	r2, [r3, #-1]!
	bne	.L6
.L5:
	mov	r3, #0
	strb	r3, [r7, r0]
.L11:
	ldr	r3, .L14+4
	mov	sp, r8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	MAX_SIZE
	.word	.LC1
	.word	.LC0
	.size	ToHex, .-ToHex
	.comm	MAX_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
