	.file	"extr_sym_hipd.c____sym_malloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	___sym_malloc, @function
___sym_malloc:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR MEMO_SHIFT[rip]
	mov	edx, DWORD PTR MEMO_CLUSTER_SIZE[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r14, QWORD PTR [rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, 1
	sal	ebx, cl
	cmp	edx, esi
	jl	.L10
	cmp	ebx, esi
	jge	.L14
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	add	ebx, ebx
	add	ebp, 1
	cmp	esi, ebx
	jg	.L5
	movsx	rax, ebp
	lea	r13, [r14+rax*8]
.L4:
	mov	r8, QWORD PTR 0[r13]
	test	r8, r8
	jne	.L15
	cmp	edx, ebx
	je	.L26
	movsx	rax, ebp
	mov	r12d, ebp
	lea	rax, 8[r14+rax*8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	add	rax, 8
	cmp	edx, ebx
	je	.L7
.L9:
	mov	r8, QWORD PTR [rax]
	add	r12d, 1
	add	ebx, ebx
	mov	r13, rax
	test	r8, r8
	je	.L12
.L11:
	mov	rax, QWORD PTR [r8]
	mov	QWORD PTR 0[r13], rax
	cmp	r12d, ebp
	jle	.L1
	movsx	rax, r12d
	not	ebp
	sal	rax, 3
	lea	rcx, -8[r14+rax]
	lea	rdx, [r14+rax]
	lea	eax, 0[rbp+r12]
	sal	rax, 3
	sub	rcx, rax
	.p2align 4,,10
	.p2align 3
.L13:
	sar	ebx
	sub	rdx, 8
	movsx	rax, ebx
	add	rax, r8
	mov	QWORD PTR [rdx], rax
	mov	QWORD PTR [rax], 0
	cmp	rcx, rdx
	jne	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r8
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	mov	r12d, ebp
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	M_GETP@PLT
	mov	QWORD PTR 0[r13], rax
	test	rax, rax
	je	.L10
	mov	QWORD PTR [rax], 0
	mov	r8, QWORD PTR 0[r13]
	test	r8, r8
	jne	.L11
.L10:
	xor	r8d, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r8
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r13, r14
	xor	ebp, ebp
	jmp	.L4
.L15:
	mov	r12d, ebp
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	___sym_malloc, .-___sym_malloc
	.comm	MEMO_SHIFT,4,4
	.comm	MEMO_CLUSTER_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_sym_hipd.c____sym_malloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	___sym_malloc, %function
___sym_malloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #1
	ldr	r2, .L28
	ldr	r3, .L28+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r1
	ldr	r8, [r0]
	lsl	r4, r4, r3
	blt	.L10
	cmp	r4, r1
	bge	.L14
	mov	r6, #0
.L5:
	lsl	r4, r4, #1
	cmp	r1, r4
	add	r6, r6, #1
	bgt	.L5
	add	r7, r8, r6, lsl #2
.L4:
	ldr	r0, [r7]
	cmp	r0, #0
	bne	.L15
	cmp	r2, r4
	addne	r3, r6, #1
	movne	r5, r6
	addne	r3, r8, r3, lsl #2
	bne	.L9
	b	.L27
.L12:
	cmp	r2, r4
	beq	.L7
.L9:
	mov	r7, r3
	ldr	r0, [r3], #4
	add	r5, r5, #1
	cmp	r0, #0
	lsl	r4, r4, #1
	beq	.L12
.L11:
	ldr	r3, [r0]
	cmp	r5, r6
	str	r3, [r7]
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r2, #0
	sub	r5, r5, #-1073741823
	add	r5, r8, r5, lsl #2
	sub	r8, r8, #4
	add	r6, r8, r6, lsl #2
.L13:
	asr	r4, r4, #1
	add	r3, r0, r4
	str	r3, [r5], #-4
	cmp	r6, r5
	str	r2, [r0, r4]
	bne	.L13
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	mov	r5, r6
.L7:
	bl	M_GETP
	cmp	r0, #0
	str	r0, [r7]
	beq	.L10
	mov	r3, #0
	str	r3, [r0]
	ldr	r0, [r7]
	cmp	r0, r3
	bne	.L11
.L10:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r7, r8
	mov	r6, #0
	b	.L4
.L15:
	mov	r5, r6
	b	.L11
.L29:
	.align	2
.L28:
	.word	MEMO_CLUSTER_SIZE
	.word	MEMO_SHIFT
	.size	___sym_malloc, .-___sym_malloc
	.comm	MEMO_SHIFT,4,4
	.comm	MEMO_CLUSTER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
