	.file	"688833.c"
	.intel_syntax noprefix
	.text
	.type	default_malloc, @function
default_malloc:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	default_malloc, .-default_malloc
	.type	default_free, @function
default_free:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	default_free, .-default_free
	.section	.data.rel.local,"aw"
	.align 16
	.type	gAllocator, @object
	.size	gAllocator, 24
gAllocator:
	.quad	default_malloc
	.quad	default_free
	.quad	0
	.text
	.globl	ar_malloc
	.type	ar_malloc, @function
ar_malloc:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rcx, QWORD PTR gAllocator[rip]
	mov	rax, QWORD PTR gAllocator[rip+16]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ar_malloc, .-ar_malloc
	.globl	ar_calloc
	.type	ar_calloc, @function
ar_calloc:
.LFB9:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	ecx, 0
	mov	rax, QWORD PTR -32[rbp]
	mul	QWORD PTR -24[rbp]
	jno	.L7
	mov	ecx, 1
.L7:
	mov	rax, rcx
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ar_malloc
	mov	QWORD PTR -8[rbp], rax
.L9:
	cmp	QWORD PTR -8[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ar_calloc, .-ar_calloc
	.globl	ar_free
	.type	ar_free, @function
ar_free:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rcx, QWORD PTR gAllocator[rip+8]
	mov	rax, QWORD PTR gAllocator[rip+16]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ar_free, .-ar_free
	.globl	ar_set_custom_allocator
	.type	ar_set_custom_allocator, @function
ar_set_custom_allocator:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L15
.L14:
	lea	rax, default_malloc[rip]
.L15:
	mov	QWORD PTR gAllocator[rip], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L17
.L16:
	lea	rax, default_free[rip]
.L17:
	mov	QWORD PTR gAllocator[rip+8], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR gAllocator[rip+16], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ar_set_custom_allocator, .-ar_set_custom_allocator
	.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	"688833.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	default_malloc, %function
default_malloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	default_malloc, .-default_malloc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	default_free, %function
default_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	default_free, .-default_free
	.data
	.align	2
	.type	gAllocator, %object
	.size	gAllocator, 12
gAllocator:
	.word	default_malloc
	.word	default_free
	.word	0
	.text
	.align	2
	.global	ar_malloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar_malloc, %function
ar_malloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, .L6
	ldr	r2, [r2, #8]
	ldr	r1, [fp, #-8]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	gAllocator
	.size	ar_malloc, .-ar_malloc
	.global	__aeabi_uidiv
	.align	2
	.global	ar_calloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar_calloc, %function
ar_calloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	mvn	r0, #0
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bhi	.L9
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r0, r3
	bl	ar_malloc
	str	r0, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
.L10:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ar_calloc, .-ar_calloc
	.align	2
	.global	ar_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar_free, %function
ar_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L13
	ldr	r3, [r3, #4]
	ldr	r2, .L13
	ldr	r2, [r2, #8]
	ldr	r1, [fp, #-8]
	mov	r0, r2
	blx	r3
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	gAllocator
	.size	ar_free, .-ar_free
	.align	2
	.global	ar_set_custom_allocator
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar_set_custom_allocator, %function
ar_set_custom_allocator:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	b	.L17
.L16:
	ldr	r3, .L20
.L17:
	ldr	r2, .L20+4
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-12]
	b	.L19
.L18:
	ldr	r3, .L20+8
.L19:
	ldr	r2, .L20+4
	str	r3, [r2, #4]
	ldr	r2, .L20+4
	ldr	r3, [fp, #-16]
	str	r3, [r2, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	default_malloc
	.word	gAllocator
	.word	default_free
	.size	ar_set_custom_allocator, .-ar_set_custom_allocator
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
