	.file	"extr_treap.c_trp_conv_from_array.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	trp_conv_from_array
	.type	trp_conv_from_array, @function
trp_conv_from_array:
.LFB0:
	.cfi_startproc
	endbr64
	mov	QWORD PTR stack.1928[rip], 0
	test	esi, esi
	jle	.L8
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	eax, -1[rsi]
	lea	r15, stack.1928[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, -8[r15]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	rbp, 4[rdi+rax*4]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	get_new_node@PLT
	mov	r13, rax
	mov	eax, DWORD PTR [r14]
	mov	DWORD PTR 0[r13], eax
	xor	eax, eax
	call	my_rand@PLT
	mov	QWORD PTR 24[r13], 0
	movsx	rdx, ebx
	mov	QWORD PTR 8[r13], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rcx, QWORD PTR [r12+rdx*8]
	sub	rdx, 1
	cmp	rax, QWORD PTR 8[rcx]
	jle	.L17
.L4:
	movsx	rsi, edx
	test	rdx, rdx
	jne	.L18
	mov	rax, QWORD PTR [r15]
	mov	ebx, 1
	xor	esi, esi
	mov	QWORD PTR 16[r13], rax
.L7:
	add	r14, 4
	mov	QWORD PTR [r15+rsi*8], r13
	cmp	r14, rbp
	jne	.L6
	mov	rax, QWORD PTR [r15]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rcx]
	lea	ebx, 1[rsi]
	mov	QWORD PTR 16[r13], rax
	mov	QWORD PTR 24[rcx], r13
	jmp	.L7
.L8:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	trp_conv_from_array, .-trp_conv_from_array
	.local	stack.1928
	.comm	stack.1928,4800,32
	.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_treap.c_trp_conv_from_array.c"
	.text
	.align	2
	.global	trp_conv_from_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	trp_conv_from_array, %function
trp_conv_from_array:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, #0
	ldr	r8, .L17
	cmp	r1, #0
	str	r4, [r8]
	ble	.L8
	mov	r7, r4
	sub	r5, r0, #4
	add	r6, r5, r1, lsl #2
.L6:
	bl	get_new_node
	ldr	r3, [r5, #4]!
	mov	r9, r0
	str	r3, [r0]
	bl	my_rand
	str	r7, [r9, #12]
	str	r0, [r9, #4]
	add	r3, r8, r4, lsl #2
	b	.L4
.L16:
	ldr	r2, [r3, #-4]!
	sub	ip, r4, #1
	ldr	r1, [r2, #4]
	cmp	r0, r1
	ble	.L15
	mov	r4, ip
.L4:
	cmp	r4, #0
	bne	.L16
	mov	r3, r4
	mov	r4, #1
	ldr	r2, [r8]
	str	r2, [r9, #8]
.L7:
	cmp	r5, r6
	str	r9, [r8, r3, lsl #2]
	bne	.L6
	ldr	r0, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r1, [r2, #12]
	mov	r3, r4
	str	r1, [r9, #8]
	add	r4, r4, #1
	str	r9, [r2, #12]
	b	.L7
.L8:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	.align	2
.L17:
	.word	.LANCHOR0
	.size	trp_conv_from_array, .-trp_conv_from_array
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	stack.4212, %object
	.size	stack.4212, 2400
stack.4212:
	.space	2400
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
