	.file	"extr_ngx_slab.c_ngx_slab_free_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ngx_slab_free_pages, @function
ngx_slab_free_pages:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	add	DWORD PTR [rdi], edx
	mov	DWORD PTR [rsi], edx
	sub	edx, 1
	mov	r13d, edx
	jne	.L16
.L2:
	cmp	QWORD PTR 16[rbx], 0
	je	.L3
	mov	rdi, rbx
	call	ngx_slab_page_prev@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	r8, rax
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 16[r8], rax
	mov	QWORD PTR 8[rax], rdx
.L3:
	movsx	rax, DWORD PTR [rbx]
	lea	rax, [rax+rax*2]
	lea	rbp, [rbx+rax*8]
	cmp	QWORD PTR 24[r12], rbp
	ja	.L17
.L4:
	cmp	QWORD PTR 16[r12], rbx
	jb	.L18
.L5:
	test	r13d, r13d
	je	.L7
	movsx	rdx, r13d
	lea	rax, [rdx+rdx*2]
	mov	QWORD PTR 8[rbx+rax*8], rbx
.L7:
	lea	rax, 8[r12]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 8[rax], rbx
	mov	QWORD PTR 8[r12], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	esi, [rdx+rdx*2]
	lea	rdi, 24[rbx]
	sal	esi, 3
	call	ngx_memzero@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rbp, -24[rbx]
	mov	rdi, rbp
	call	ngx_slab_page_type@PLT
	cmp	rax, QWORD PTR NGX_SLAB_PAGE[rip]
	jne	.L5
	movsx	rax, DWORD PTR -24[rbx]
	cmp	rax, QWORD PTR NGX_SLAB_PAGE_FREE[rip]
	je	.L19
.L6:
	cmp	QWORD PTR 16[rbp], 0
	je	.L5
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	add	r13d, eax
	add	eax, DWORD PTR [rbx]
	mov	DWORD PTR 0[rbp], eax
	call	ngx_slab_page_prev@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	r8, rax
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[r8], rax
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR NGX_SLAB_PAGE_FREE[rip]
	mov	QWORD PTR 16[rbx], 0
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR NGX_SLAB_PAGE[rip]
	mov	QWORD PTR 8[rbx], rax
	mov	rbx, rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	ngx_slab_page_type@PLT
	cmp	rax, QWORD PTR NGX_SLAB_PAGE[rip]
	jne	.L4
	cmp	QWORD PTR 16[rbp], 0
	je	.L4
	mov	eax, DWORD PTR 0[rbp]
	add	DWORD PTR [rbx], eax
	mov	rdi, rbp
	add	r13d, eax
	call	ngx_slab_page_prev@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	r8, rax
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[r8], rax
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR NGX_SLAB_PAGE_FREE[rip]
	mov	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR NGX_SLAB_PAGE[rip]
	mov	QWORD PTR 8[rbp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	ngx_slab_page_prev@PLT
	mov	rbp, rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ngx_slab_free_pages, .-ngx_slab_free_pages
	.comm	NGX_SLAB_PAGE_FREE,8,8
	.comm	NGX_SLAB_PAGE,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_ngx_slab.c_ngx_slab_free_pages.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_slab_free_pages, %function
ngx_slab_free_pages:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	add	r3, r3, r2
	subs	r7, r2, #1
	str	r3, [r0]
	mov	r5, r0
	mov	r4, r1
	str	r2, [r1]
	bne	.L25
.L2:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L3
	mov	r0, r4
	bl	ngx_slab_page_prev
	ldmib	r4, {r2, r3}
	str	r3, [r0, #8]
	str	r2, [r3, #4]
.L3:
	ldr	r0, [r4]
	ldr	r3, [r5, #12]
	add	r0, r0, r0, lsl #1
	add	r6, r4, r0, lsl #2
	cmp	r3, r6
	bhi	.L26
.L4:
	ldr	r3, [r5, #8]
	cmp	r3, r4
	bcc	.L27
.L5:
	cmp	r7, #0
	addne	r3, r7, r7, lsl #1
	addne	r3, r4, r3, lsl #2
	strne	r4, [r3, #4]
	ldr	r3, [r5, #4]
	add	r2, r5, #4
	stmib	r4, {r2, r3}
	str	r4, [r3, #4]
	str	r4, [r5, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	add	r1, r7, r7, lsl #1
	lsl	r1, r1, #2
	add	r0, r4, #12
	bl	ngx_memzero
	b	.L2
.L27:
	sub	r6, r4, #12
	mov	r0, r6
	bl	ngx_slab_page_type
	ldr	r8, .L29
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L5
	ldr	r9, .L29+4
	ldr	r2, [r4, #-12]
	ldr	r3, [r9]
	cmp	r2, r3
	beq	.L28
.L6:
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L5
	ldr	r2, [r6]
	ldr	r3, [r4]
	mov	r0, r6
	add	r3, r3, r2
	str	r3, [r6]
	add	r7, r7, r2
	bl	ngx_slab_page_prev
	mov	r2, #0
	ldr	r3, [r6, #8]
	ldr	lr, [r6, #4]
	ldr	r1, [r8]
	ldr	ip, [r9]
	str	r3, [r0, #8]
	str	lr, [r3, #4]
	stmib	r4, {r1, r2}
	str	ip, [r4]
	mov	r4, r6
	b	.L5
.L26:
	mov	r0, r6
	bl	ngx_slab_page_type
	ldr	r8, .L29
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L4
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [r6]
	ldr	r3, [r4]
	mov	r0, r6
	add	r3, r3, r2
	str	r3, [r4]
	add	r7, r7, r2
	bl	ngx_slab_page_prev
	mov	r2, #0
	ldr	r3, [r6, #8]
	ldr	r1, .L29+4
	str	r3, [r0, #8]
	ldr	ip, [r8]
	ldr	r0, [r6, #4]
	ldr	r1, [r1]
	str	r0, [r3, #4]
	stm	r6, {r1, ip}
	str	r2, [r6, #8]
	b	.L4
.L28:
	mov	r0, r6
	bl	ngx_slab_page_prev
	mov	r6, r0
	b	.L6
.L30:
	.align	2
.L29:
	.word	NGX_SLAB_PAGE
	.word	NGX_SLAB_PAGE_FREE
	.size	ngx_slab_free_pages, .-ngx_slab_free_pages
	.comm	NGX_SLAB_PAGE_FREE,4,4
	.comm	NGX_SLAB_PAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
