	.file	"624954.c"
	.intel_syntax noprefix
	.text
	.local	pages
	.comm	pages,8,8
	.local	buddies
	.comm	buddies,104,32
	.type	init_page_array, @function
init_page_array:
.LFB0:
	.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 pages[rip], 16777216
	mov	QWORD PTR -16[rbp], 2621440
	mov	QWORD PTR -8[rbp], 8192
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L3:
	mov	rcx, QWORD PTR pages[rip]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movzx	edx, BYTE PTR [rax]
	and	edx, -2
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR pages[rip]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movzx	edx, BYTE PTR [rax]
	or	edx, 2
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	ja	.L3
	jmp	.L4
.L5:
	mov	rcx, QWORD PTR pages[rip]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movzx	edx, BYTE PTR [rax]
	or	edx, 1
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR pages[rip]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movzx	edx, BYTE PTR [rax]
	and	edx, -3
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -20[rbp], 1
.L4:
	cmp	DWORD PTR -20[rbp], 131071
	jle	.L5
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init_page_array, .-init_page_array
	.globl	set_not_inuse
	.type	set_not_inuse, @function
set_not_inuse:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	and	edx, -3
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	test	rax, rax
	je	.L8
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	set_not_inuse, .-set_not_inuse
	.globl	set_inuse
	.type	set_inuse, @function
set_inuse:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	or	edx, 2
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	test	rax, rax
	je	.L11
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	set_inuse, .-set_inuse
	.globl	set_order
	.type	set_order, @function
set_order:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 15
	and	eax, 15
	lea	ecx, 0[0+rax*8]
	movzx	eax, BYTE PTR [rdx]
	and	eax, -121
	or	eax, ecx
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	test	rax, rax
	je	.L14
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	set_order, .-set_order
	.globl	page_addr_index
	.type	page_addr_index, @function
page_addr_index:
.LFB4:
	.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	rax, QWORD PTR -8[rbp]
	sub	rax, 16777216
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	page_addr_index, .-page_addr_index
	.globl	page_addr_to_real_addr
	.type	page_addr_to_real_addr, @function
page_addr_to_real_addr:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	page_addr_index
	sal	rax, 12
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	page_addr_to_real_addr, .-page_addr_to_real_addr
	.globl	real_addr_to_page_addr
	.type	real_addr_to_page_addr, @function
real_addr_to_page_addr:
.LFB6:
	.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	rax, QWORD PTR -8[rbp]
	shr	rax, 12
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 16777216
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	real_addr_to_page_addr, .-real_addr_to_page_addr
	.globl	insert_page
	.type	insert_page, @function
insert_page:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	set_order
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, buddies[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L28
.L22:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jnb	.L24
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, buddies[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 1[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 9[rax], rdx
	jmp	.L28
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	QWORD PTR -8[rbp], rax
.L25:
	cmp	QWORD PTR -8[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	ja	.L27
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 1[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 9[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 1[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 9[rax], rdx
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert_page, .-insert_page
	.globl	pop_page
	.type	pop_page, @function
pop_page:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, buddies[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR 9[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 1[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	pop_page, .-pop_page
	.globl	_alloc_page
	.type	_alloc_page, @function
_alloc_page:
.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, 40
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L32
.L34:
	add	DWORD PTR -20[rbp], 1
.L32:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L33
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cmp	eax, 12
	jle	.L34
.L33:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	cmp	eax, 13
	jne	.L37
	mov	eax, 0
	jmp	.L36
.L38:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	edi, eax
	call	pop_page
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	insert_page
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	sub	eax, 1
	mov	edx, 20
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	sub	eax, 1
	mov	rsi, rdx
	mov	edi, eax
	call	insert_page
	sub	DWORD PTR -20[rbp], 1
.L37:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L38
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	pop_page
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	set_inuse
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rax]
	or	edx, 4
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -16[rbp]
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_alloc_page, .-_alloc_page
	.globl	alloc_page
	.type	alloc_page, @function
alloc_page:
.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, 24
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	_alloc_page
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L40
	mov	eax, 0
	jmp	.L41
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	page_addr_to_real_addr
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	alloc_page, .-alloc_page
	.globl	remove_page
	.type	remove_page, @function
remove_page:
.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 3
	and	eax, 15
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 9[rax]
	test	rax, rax
	jne	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, buddies[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	test	rax, rax
	je	.L44
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	QWORD PTR 9[rax], 0
.L44:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 1[rax], 0
	jmp	.L45
.L43:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 9[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1[rdx]
	mov	QWORD PTR 1[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	test	rax, rax
	je	.L45
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 9[rdx]
	mov	QWORD PTR 9[rax], rdx
.L45:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 1[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 9[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	or	edx, 120
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	remove_page, .-remove_page
	.globl	merge_page
	.type	merge_page, @function
merge_page:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
.L51:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 3
	and	eax, 15
	movzx	eax, al
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	page_addr_index
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 12
	je	.L53
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jne	.L49
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	test	rax, rax
	je	.L49
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	cmp	rdx, rax
	jne	.L49
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	movzx	edx, BYTE PTR [rax]
	and	edx, -5
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	rdi, rax
	call	remove_page
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	remove_page
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	insert_page
	jmp	.L50
.L49:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	je	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 9[rax]
	test	rax, rax
	je	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 9[rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	mov	ecx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jne	.L54
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	and	edx, -5
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 9[rax]
	mov	rdi, rax
	call	remove_page
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	remove_page
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 9[rax]
	mov	QWORD PTR 1[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 9[rax], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	rsi, rdx
	mov	edi, eax
	call	insert_page
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	neg	rax
	add	QWORD PTR -24[rbp], rax
.L50:
	jmp	.L51
.L53:
	nop
.L54:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	merge_page, .-merge_page
	.globl	_free_page
	.type	_free_page, @function
_free_page:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 4
	test	al, al
	je	.L58
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 3
	and	eax, 15
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	set_not_inuse
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 3
	and	eax, 15
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	insert_page
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	merge_page
	jmp	.L55
.L58:
	nop
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	_free_page, .-_free_page
	.globl	free_page
	.type	free_page, @function
free_page:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	real_addr_to_page_addr
	mov	rdi, rax
	call	_free_page
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	free_page, .-free_page
	.globl	cal_order
	.type	cal_order, @function
cal_order:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L61
.L64:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 12
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	ja	.L62
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L63
.L62:
	add	DWORD PTR -4[rbp], 1
.L61:
	cmp	DWORD PTR -4[rbp], 12
	jle	.L64
	mov	eax, DWORD PTR -4[rbp]
.L63:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	cal_order, .-cal_order
	.globl	init_buddy
	.type	init_buddy, @function
init_buddy:
.LFB16:
	.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	eax, 0
	call	init_page_array
	mov	DWORD PTR -4[rbp], 8192
	jmp	.L66
.L67:
	mov	rcx, QWORD PTR pages[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	mov	edi, 12
	call	insert_page
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 4096
	mov	DWORD PTR -4[rbp], eax
.L66:
	cmp	DWORD PTR -4[rbp], 131071
	jle	.L67
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	init_buddy, .-init_buddy
	.section	.rodata
.LC0:
	.string	"buddy%h\n"
.LC1:
	.string	"Empty"
.LC2:
	.string	"%d   "
.LC3:
	.string	"\n*******************\n"
	.text
	.globl	print_buddies
	.type	print_buddies, @function
print_buddies:
.LFB17:
	.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	DWORD PTR -12[rbp], 0
	jmp	.L69
.L73:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printk@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L70
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printk@PLT
	jmp	.L71
.L70:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
.L72:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	page_addr_index
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printk@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L72
.L71:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printk@PLT
	add	DWORD PTR -12[rbp], 1
.L69:
	cmp	DWORD PTR -12[rbp], 12
	jle	.L73
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	print_buddies, .-print_buddies
	.section	.rodata
.LC4:
	.string	"\n"
	.text
	.globl	print_buddy
	.type	print_buddy, @function
print_buddy:
.LFB18:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printk@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L75
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printk@PLT
	jmp	.L76
.L75:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buddies[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
.L77:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	page_addr_index
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printk@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 1[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L77
.L76:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printk@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	print_buddy, .-print_buddy
	.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	"624954.c"
	.text
	.local	pages
	.comm	pages,4,4
	.local	buddies
	.comm	buddies,52,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_page_array, %function
init_page_array:
	@ 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
	ldr	r3, .L6
	mov	r2, #16777216
	str	r2, [r3]
	mov	r3, #1572864
	str	r3, [fp, #-12]
	mov	r3, #8192
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, .L6
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldrb	r3, [r2]
	bic	r3, r3, #1
	strb	r3, [r2]
	ldr	r3, .L6
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldrb	r3, [r2]
	orr	r3, r3, #2
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bhi	.L3
	b	.L4
.L5:
	ldr	r3, .L6
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldrb	r3, [r2]
	orr	r3, r3, #1
	strb	r3, [r2]
	ldr	r3, .L6
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	ldrb	r3, [r2]
	bic	r3, r3, #2
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #131072
	blt	.L5
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	pages
	.size	init_page_array, .-init_page_array
	.align	2
	.global	set_not_inuse
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_not_inuse, %function
set_not_inuse:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, r2
	ldrb	r3, [r2]
	bic	r3, r3, #2
	strb	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r2, r2, r3
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L10
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_not_inuse, .-set_not_inuse
	.align	2
	.global	set_inuse
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_inuse, %function
set_inuse:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L13:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, r2
	ldrb	r3, [r2]
	orr	r3, r3, #2
	strb	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r2, r2, r3
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L13
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_inuse, .-set_inuse
	.align	2
	.global	set_order
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_order, %function
set_order:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, r2
	ldr	r3, [fp, #-16]
	and	r3, r3, #15
	and	r3, r3, #255
	ldrb	r2, [r1]
	and	r3, r3, #15
	bic	r2, r2, #120
	lsl	r3, r3, #3
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r2, r2, r3
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L16
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_order, .-set_order
	.align	2
	.global	page_addr_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	page_addr_index, %function
page_addr_index:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #-16777216
	ldr	r2, .L19
	umull	r1, r3, r2, r3
	lsr	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L20:
	.align	2
.L19:
	.word	-1431655765
	.size	page_addr_index, .-page_addr_index
	.align	2
	.global	page_addr_to_real_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	page_addr_to_real_addr, %function
page_addr_to_real_addr:
	@ 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	r0, [fp, #-8]
	bl	page_addr_index
	mov	r3, r0
	lsl	r3, r3, #12
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	page_addr_to_real_addr, .-page_addr_to_real_addr
	.align	2
	.global	real_addr_to_page_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	real_addr_to_page_addr, %function
real_addr_to_page_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #12
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #16777216
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	real_addr_to_page_addr, .-real_addr_to_page_addr
	.align	2
	.global	insert_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_page, %function
insert_page:
	@ 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]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	set_order
	ldr	r2, .L33
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L26
	ldr	r1, .L33
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	b	.L32
.L26:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcs	.L28
	ldr	r1, .L33
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #1]
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #2]
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #3]
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #5]
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #6]
	ldrb	r2, [fp, #-18]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #7]
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #8]
	b	.L32
.L28:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L29
.L31:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L30
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L31
.L30:
	ldr	r3, [fp, #-12]
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #1]
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #2]
	ldrb	r2, [fp, #-18]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #3]
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #5]
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #6]
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #7]
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-8]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #1]
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #2]
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #3]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #5]
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #6]
	ldrb	r2, [fp, #-18]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #7]
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #8]
.L32:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	buddies
	.size	insert_page, .-insert_page
	.align	2
	.global	pop_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop_page, %function
pop_page:
	@ 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, #-16]
	ldr	r2, .L37
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r2, .L37
	ldr	r3, [fp, #-16]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L37
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	strb	r2, [r3, #5]
	mov	r2, #0
	strb	r2, [r3, #6]
	mov	r2, #0
	strb	r2, [r3, #7]
	mov	r2, #0
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #1]
	mov	r2, #0
	strb	r2, [r3, #2]
	mov	r2, #0
	strb	r2, [r3, #3]
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L38:
	.align	2
.L37:
	.word	buddies
	.size	pop_page, .-pop_page
	.align	2
	.global	_alloc_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	_alloc_page, %function
_alloc_page:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L40
.L42:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L40:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L47
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L41
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	cmp	r3, #12
	ble	.L42
.L41:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	cmp	r3, #13
	bne	.L45
	mov	r3, #0
	b	.L44
.L46:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	pop_page
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	insert_page
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r0, r3, #1
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, #12
	lsl	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r1, r3
	bl	insert_page
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L45:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L46
	ldr	r0, [fp, #-24]
	bl	pop_page
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	set_inuse
	ldr	r2, [fp, #-12]
	ldrb	r3, [r2]
	orr	r3, r3, #4
	strb	r3, [r2]
	ldr	r3, [fp, #-12]
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	buddies
	.size	_alloc_page, .-_alloc_page
	.align	2
	.global	alloc_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_page, %function
alloc_page:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	_alloc_page
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L50
	mov	r3, #0
	b	.L51
.L50:
	ldr	r0, [fp, #-8]
	bl	page_addr_to_real_addr
	mov	r3, r0
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alloc_page, .-alloc_page
	.align	2
	.global	remove_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_page, %function
remove_page:
	@ 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, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #15
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	cmp	r3, #0
	bne	.L53
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r2, .L56
	ldr	r3, [fp, #-8]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3, #5]
	mov	r2, #0
	strb	r2, [r3, #6]
	mov	r2, #0
	strb	r2, [r3, #7]
	mov	r2, #0
	strb	r2, [r3, #8]
.L54:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3, #1]
	mov	r2, #0
	strb	r2, [r3, #2]
	mov	r2, #0
	strb	r2, [r3, #3]
	mov	r2, #0
	strb	r2, [r3, #4]
	b	.L55
.L53:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [r2]
	lsr	r1, r1, #8
	ldrb	r2, [r2, #4]	@ zero_extendqisi2
	lsl	r2, r2, #24
	orr	r2, r2, r1
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #1]
	lsr	r1, r2, #8
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #2]
	lsr	r1, r2, #16
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #3]
	lsr	r2, r2, #24
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [r2, #4]
	lsr	r1, r1, #8
	ldrb	r2, [r2, #8]	@ zero_extendqisi2
	lsl	r2, r2, #24
	orr	r2, r2, r1
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #5]
	lsr	r1, r2, #8
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #6]
	lsr	r1, r2, #16
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #7]
	lsr	r2, r2, #24
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #8]
.L55:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3, #1]
	mov	r2, #0
	strb	r2, [r3, #2]
	mov	r2, #0
	strb	r2, [r3, #3]
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3, #5]
	mov	r2, #0
	strb	r2, [r3, #6]
	mov	r2, #0
	strb	r2, [r3, #7]
	mov	r2, #0
	strb	r2, [r3, #8]
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2]
	orr	r3, r3, #120
	strb	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L57:
	.align	2
.L56:
	.word	buddies
	.size	remove_page, .-remove_page
	.align	2
	.global	merge_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_page, %function
merge_page:
	@ 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]
.L63:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #15
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	page_addr_index
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	beq	.L65
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	asr	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L61
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	cmp	r3, #0
	beq	.L61
	mov	r2, #12
	ldr	r3, [fp, #-12]
	lsl	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	lsr	r1, r1, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r1
	cmp	r2, r3
	bne	.L61
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, r3
	ldrb	r3, [r2]
	bic	r3, r3, #4
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r0, r3
	bl	remove_page
	ldr	r0, [fp, #-16]
	bl	remove_page
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	insert_page
	b	.L62
.L61:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	asr	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L66
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	mov	r2, #12
	ldr	r3, [fp, #-12]
	lsl	r3, r2, r3
	add	r3, r1, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L66
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2]
	bic	r3, r3, #4
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r0, r3
	bl	remove_page
	ldr	r0, [fp, #-16]
	bl	remove_page
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3, #1]
	mov	r2, #0
	strb	r2, [r3, #2]
	mov	r2, #0
	strb	r2, [r3, #3]
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3, #5]
	mov	r2, #0
	strb	r2, [r3, #6]
	mov	r2, #0
	strb	r2, [r3, #7]
	mov	r2, #0
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	add	r0, r3, #1
	mov	r2, #12
	ldr	r3, [fp, #-12]
	lsl	r3, r2, r3
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	bl	insert_page
	mov	r2, #12
	ldr	r3, [fp, #-12]
	lsl	r3, r2, r3
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L62:
	b	.L63
.L65:
	nop
.L66:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	merge_page, .-merge_page
	.align	2
	.global	_free_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	_free_page, %function
_free_page:
	@ 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, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #15
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	set_not_inuse
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #15
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	insert_page
	ldr	r0, [fp, #-8]
	bl	merge_page
	b	.L67
.L70:
	nop
.L67:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_free_page, .-_free_page
	.align	2
	.global	free_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_page, %function
free_page:
	@ 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	r0, [fp, #-8]
	bl	real_addr_to_page_addr
	mov	r3, r0
	mov	r0, r3
	bl	_free_page
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_page, .-free_page
	.align	2
	.global	cal_order
	.syntax unified
	.arm
	.fpu softvfp
	.type	cal_order, %function
cal_order:
	@ 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, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L73
.L76:
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	mov	r2, #1
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bhi	.L74
	ldr	r3, [fp, #-8]
	b	.L75
.L74:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L73:
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	ble	.L76
	ldr	r3, [fp, #-8]
.L75:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cal_order, .-cal_order
	.align	2
	.global	init_buddy
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_buddy, %function
init_buddy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	init_page_array
	mov	r3, #8192
	str	r3, [fp, #-8]
	b	.L78
.L79:
	ldr	r3, .L80
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	mov	r0, #12
	bl	insert_page
	ldr	r3, [fp, #-8]
	add	r3, r3, #4096
	str	r3, [fp, #-8]
.L78:
	ldr	r3, [fp, #-8]
	cmp	r3, #131072
	blt	.L79
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	pages
	.size	init_buddy, .-init_buddy
	.section	.rodata
	.align	2
.LC0:
	.ascii	"buddy%h\012\000"
	.align	2
.LC1:
	.ascii	"Empty\000"
	.align	2
.LC2:
	.ascii	"%d   \000"
	.align	2
.LC3:
	.ascii	"\012*******************\012\000"
	.text
	.align	2
	.global	print_buddies
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_buddies, %function
print_buddies:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L83
.L87:
	ldr	r1, [fp, #-12]
	ldr	r0, .L88
	bl	printk
	ldr	r2, .L88+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L84
	ldr	r0, .L88+8
	bl	printk
	b	.L85
.L84:
	ldr	r2, .L88+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
.L86:
	ldr	r0, [fp, #-8]
	bl	page_addr_index
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L88+12
	bl	printk
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L86
.L85:
	ldr	r0, .L88+16
	bl	printk
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L83:
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L87
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC0
	.word	buddies
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	print_buddies, .-print_buddies
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012\000"
	.text
	.align	2
	.global	print_buddy
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_buddy, %function
print_buddy:
	@ 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]
	ldr	r1, [fp, #-16]
	ldr	r0, .L94
	bl	printk
	ldr	r2, .L94+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L91
	ldr	r0, .L94+8
	bl	printk
	b	.L92
.L91:
	ldr	r2, .L94+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
.L93:
	ldr	r0, [fp, #-8]
	bl	page_addr_index
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L94+12
	bl	printk
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	lsr	r2, r2, #8
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L93
.L92:
	ldr	r0, .L94+16
	bl	printk
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L95:
	.align	2
.L94:
	.word	.LC0
	.word	buddies
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.size	print_buddy, .-print_buddy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
