	.file	"510873.c"
	.intel_syntax noprefix
	.text
	.globl	Decimal_to_Octal
	.type	Decimal_to_Octal, @function
Decimal_to_Octal:
.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, 256
	mov	QWORD PTR -248[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -232[rbp], 0
	mov	DWORD PTR -228[rbp], 0
.L2:
	mov	rax, QWORD PTR -248[rbp]
	cqo
	shr	rdx, 61
	add	rax, rdx
	and	eax, 7
	sub	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -232[rbp]
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], edx
	mov	rax, QWORD PTR -248[rbp]
	lea	rdx, 7[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 3
	mov	QWORD PTR -248[rbp], rax
	add	DWORD PTR -232[rbp], 1
	add	DWORD PTR -228[rbp], 1
	cmp	QWORD PTR -248[rbp], 0
	jne	.L2
	mov	eax, DWORD PTR -228[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	cdqe
	mov	QWORD PTR -216[rbp], rax
	mov	eax, DWORD PTR -228[rbp]
	sub	eax, 2
	cdqe
	mov	QWORD PTR -224[rbp], rax
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR -208[rbp+rax*4]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -216[rbp], rax
	sub	QWORD PTR -224[rbp], 1
.L3:
	cmp	QWORD PTR -224[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Decimal_to_Octal, .-Decimal_to_Octal
	.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	"510873.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Decimal_to_Octal
	.syntax unified
	.arm
	.fpu softvfp
	.type	Decimal_to_Octal, %function
Decimal_to_Octal:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	str	r0, [fp, #-232]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-220]
.L2:
	ldr	r3, [fp, #-232]
	rsbs	r1, r3, #0
	and	r2, r3, #7
	and	r3, r1, #7
	rsbpl	r2, r3, #0
	ldr	r3, [fp, #-224]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-204]
	ldr	r3, [fp, #-232]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-220]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-220]
	sub	r3, r3, #2
	str	r3, [fp, #-216]
	b	.L3
.L4:
	ldr	r2, [fp, #-212]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-216]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-204]
	add	r3, r2, r3
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-216]
	sub	r3, r3, #1
	str	r3, [fp, #-216]
.L3:
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bge	.L4
	ldr	r3, [fp, #-212]
	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	.LC0
	.size	Decimal_to_Octal, .-Decimal_to_Octal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
