	.file	"extr_zsmalloc.c_obj_malloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	obj_malloc, @function
obj_malloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	or	rdx, QWORD PTR OBJ_ALLOCATED_TAG[rip]
	mov	QWORD PTR [rsp], rdx
	call	get_freeobj@PLT
	mov	ebx, DWORD PTR PAGE_MASK[rip]
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	rdi, r12
	mov	r13, rax
	imul	eax, DWORD PTR [r14]
	not	ebx
	and	ebx, eax
	mov	ebp, eax
	movsx	rax, ebx
	sar	ebp, cl
	mov	QWORD PTR 8[rsp], rax
	call	get_first_page@PLT
	mov	r15, rax
	test	ebp, ebp
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r15
	add	ebx, 1
	call	get_next_page@PLT
	mov	r15, rax
	cmp	ebp, ebx
	jne	.L3
.L2:
	mov	rdi, r15
	call	kmap_atomic@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR OBJ_TAG_BITS[rip]
	mov	rdi, r12
	mov	rbp, rax
	and	rbx, -16
	add	rbx, rax
	mov	esi, DWORD PTR [rbx]
	sar	esi, cl
	call	set_freeobj@PLT
	mov	rdi, r15
	call	PageHugeObject@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	likely@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 8[rbx], rax
.L5:
	mov	rdi, rbp
	call	kunmap_atomic@PLT
	mov	rdi, r12
	mov	esi, 1
	call	mod_zspage_inuse@PLT
	mov	esi, DWORD PTR OBJ_USED[rip]
	mov	rdi, r14
	mov	edx, 1
	call	zs_stat_inc@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r13
	mov	rdi, r15
	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
	jmp	location_to_obj@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	mov	rcx, QWORD PTR [rsp]
	mov	QWORD PTR [rax], rcx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	obj_malloc, .-obj_malloc
	.comm	PAGE_SHIFT,4,4
	.comm	PAGE_MASK,4,4
	.comm	OBJ_USED,4,4
	.comm	OBJ_TAG_BITS,4,4
	.comm	OBJ_ALLOCATED_TAG,8,8
	.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_zsmalloc.c_obj_malloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	obj_malloc, %function
obj_malloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L9
	mov	r10, r0
	ldr	r3, [r3]
	mov	r0, r1
	mov	r8, r1
	orr	fp, r2, r3
	bl	get_freeobj
	ldr	r7, [r10]
	ldr	r2, .L9+4
	mul	r7, r0, r7
	ldr	r3, .L9+8
	ldr	r6, [r2]
	ldr	r3, [r3]
	mov	r9, r0
	mov	r0, r8
	asr	r6, r7, r6
	bic	r7, r7, r3
	bl	get_first_page
	cmp	r6, #0
	mov	r4, r0
	ble	.L2
	mov	r5, #0
.L3:
	mov	r0, r4
	bl	get_next_page
	add	r5, r5, #1
	cmp	r6, r5
	mov	r4, r0
	bne	.L3
.L2:
	mov	r0, r4
	bl	kmap_atomic
	ldr	r3, .L9+12
	bic	r7, r7, #7
	ldr	r3, [r3]
	ldr	r1, [r0, r7]
	mov	r5, r0
	asr	r1, r1, r3
	mov	r0, r8
	bl	set_freeobj
	mov	r0, r4
	bl	PageHugeObject
	clz	r0, r0
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	ldreq	r3, [r8]
	add	r7, r5, r7
	streq	fp, [r3]
	strne	fp, [r7, #4]
	mov	r0, r5
	bl	kunmap_atomic
	mov	r0, r8
	mov	r1, #1
	bl	mod_zspage_inuse
	ldr	r3, .L9+16
	mov	r0, r10
	ldr	r1, [r3]
	mov	r2, #1
	bl	zs_stat_inc
	mov	r1, r9
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	location_to_obj
.L10:
	.align	2
.L9:
	.word	OBJ_ALLOCATED_TAG
	.word	PAGE_SHIFT
	.word	PAGE_MASK
	.word	OBJ_TAG_BITS
	.word	OBJ_USED
	.size	obj_malloc, .-obj_malloc
	.comm	PAGE_SHIFT,4,4
	.comm	PAGE_MASK,4,4
	.comm	OBJ_USED,4,4
	.comm	OBJ_TAG_BITS,4,4
	.comm	OBJ_ALLOCATED_TAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
