	.file	"810138.c"
	.intel_syntax noprefix
	.text
	.globl	int_to_string
	.type	int_to_string, @function
int_to_string:
.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, 64
	mov	eax, edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -56[rbp], edx
	mov	WORD PTR -52[rbp], ax
	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 -44[rbp], 0
.L2:
	movzx	eax, WORD PTR -52[rbp]
	cdq
	idiv	DWORD PTR -56[rbp]
	mov	ecx, edx
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	movsx	rax, ecx
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR [rdx], al
	movzx	eax, WORD PTR -52[rbp]
	cdq
	idiv	DWORD PTR -56[rbp]
	mov	WORD PTR -52[rbp], ax
	cmp	WORD PTR -52[rbp], 0
	jne	.L2
	mov	DWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -36[rbp], eax
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -45[rbp], al
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -64[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -45[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -40[rbp], 1
.L3:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L4
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	int_to_string, .-int_to_string
	.section	.rodata
.LC0:
	.string	"%o"
.LC1:
	.string	"the_stack_data/810138.c"
	.align 8
.LC2:
	.string	"strcmp(str1, int_to_string(value, str2, 8)) == 0"
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"strcmp(str1, int_to_string(value, str2, 10)) == 0"
.LC5:
	.string	"%x"
	.align 8
.LC6:
	.string	"strcmp(str1, int_to_string(value, str2, 16)) == 0"
	.text
	.type	test, @function
test:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -24[rbp], 100
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 1
	jmp	.L8
.L12:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -20[rbp]
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rsi, eax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	movzx	eax, ax
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	int_to_string
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 65
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L9:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rsi, eax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, edx
	lea	rdx, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	movzx	eax, ax
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	int_to_string
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 67
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L10:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rsi, eax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, edx
	lea	rdx, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	movzx	eax, ax
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	int_to_string
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 69
	lea	rsi, .LC1[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L11:
	add	DWORD PTR -28[rbp], 1
.L8:
	cmp	DWORD PTR -28[rbp], 100
	jle	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test, .-test
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	test
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"test"
	.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	"810138.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0123456789abcdef"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	int_to_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	int_to_string, %function
int_to_string:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	mov	r3, r0
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	strh	r3, [fp, #-46]	@ movhi
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-36]
.L2:
	ldrh	r3, [fp, #-46]
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r1
	ldrb	r2, [r2, #-20]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrh	r3, [fp, #-46]
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	strh	r3, [fp, #-46]	@ movhi
	ldrh	r3, [fp, #-46]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L3
.L4:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r2, r3, r2
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldrb	r2, [fp, #-37]
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L3:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.size	int_to_string, .-int_to_string
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%o\000"
	.align	2
.LC3:
	.ascii	"the_stack_data/810138.c\000"
	.align	2
.LC4:
	.ascii	"strcmp(str1, int_to_string(value, str2, 8)) == 0\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"strcmp(str1, int_to_string(value, str2, 10)) == 0\000"
	.align	2
.LC7:
	.ascii	"%x\000"
	.align	2
.LC8:
	.ascii	"strcmp(str1, int_to_string(value, str2, 16)) == 0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #100
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L10
.L14:
	bl	rand
	mov	r2, r0
	ldr	r3, .L15
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, .L15+4
	ldr	r0, [fp, #-16]
	bl	snprintf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #8
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	int_to_string
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L15+8
	mov	r2, #65
	ldr	r1, .L15+12
	ldr	r0, .L15+16
	bl	__assert_fail
.L11:
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, .L15+20
	ldr	r0, [fp, #-16]
	bl	snprintf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #10
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	int_to_string
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15+8
	mov	r2, #67
	ldr	r1, .L15+12
	ldr	r0, .L15+24
	bl	__assert_fail
.L12:
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, .L15+28
	ldr	r0, [fp, #-16]
	bl	snprintf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, #16
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	int_to_string
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L15+8
	mov	r2, #69
	ldr	r1, .L15+12
	ldr	r0, .L15+32
	bl	__assert_fail
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #100
	ble	.L14
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	1374389535
	.word	.LC2
	.word	__PRETTY_FUNCTION__.5490
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	test, .-test
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	test
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5490, %object
	.size	__PRETTY_FUNCTION__.5490, 5
__PRETTY_FUNCTION__.5490:
	.ascii	"test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
