	.file	"145218.c"
	.intel_syntax noprefix
	.text
	.globl	toHex
	.type	toHex, @function
toHex:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 3978425819141910832
	movabs	rdx, 7378413942531504440
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -48[rbp], 15
	mov	esi, 1
	mov	edi, 9
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -52[rbp], 0
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -48[rbp]
	and	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	shr	eax, 4
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jne	.L3
	cmp	DWORD PTR -44[rbp], 0
	jle	.L10
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	mov	edx, 8
	sub	edx, eax
	movsx	rax, edx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR [rdx], al
	jmp	.L10
.L3:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	mov	edx, 8
	sub	edx, eax
	movsx	rax, edx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR [rdx], al
.L2:
	cmp	DWORD PTR -52[rbp], 7
	jle	.L6
	jmp	.L5
.L10:
	nop
.L5:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	mov	edx, 8
	sub	edx, eax
	movsx	rax, edx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 48
.L7:
	mov	eax, 8
	sub	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	toHex, .-toHex
	.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	"145218.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0123456789abcdef"
	.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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #15
	str	r3, [fp, #-36]
	mov	r1, #1
	mov	r0, #9
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L6:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	and	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	lsr	r3, r3, #4
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	rsb	r3, r3, #7
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	sub	r1, fp, #24
	ldr	r2, [fp, #-28]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L10
.L3:
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	rsb	r3, r3, #7
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	sub	r1, fp, #24
	ldr	r2, [fp, #-28]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #7
	ble	.L6
	b	.L5
.L10:
	nop
.L5:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	rsb	r3, r3, #7
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
.L7:
	ldr	r3, [fp, #-40]
	rsb	r3, r3, #8
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.size	toHex, .-toHex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
