	.file	"extr_nlmeans.c_nlmeans_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nlmeans_close, @function
nlmeans_close:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR [rdi]
	test	r12, r12
	je	.L1
	mov	r14, rdi
	lea	rdi, 40[r12]
	xor	r13d, r13d
	call	taskset_fini@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	rax, QWORD PTR [r12]
.L3:
	mov	edx, DWORD PTR [rax+r13]
	test	edx, edx
	jle	.L11
	lea	r15, 0[r13+r13*2]
	xor	ebx, ebx
	add	r15, r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r9
	call	free@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	rax, QWORD PTR 32[rdi+rbp]
	add	rax, r15
	mov	QWORD PTR 16[rax], 0
	mov	r8, QWORD PTR 8[rax]
.L4:
	test	r8, r8
	jne	.L5
	mov	rax, QWORD PTR [r12]
	add	rbx, 1
	cmp	DWORD PTR [rax+r13], ebx
	jle	.L11
.L7:
	lea	rbp, [rbx+rbx*2]
	sal	rbp, 4
	mov	rax, QWORD PTR 32[rdi+rbp]
	add	rax, r15
	mov	r9, QWORD PTR 16[rax]
	mov	r8, QWORD PTR 8[rax]
	test	r9, r9
	je	.L4
	cmp	r9, r8
	jne	.L28
.L5:
	mov	rdi, r8
	add	rbx, 1
	call	free@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	rax, QWORD PTR 32[rdi+rbp]
	mov	QWORD PTR 8[rax+r15], 0
	mov	rax, QWORD PTR [r12]
	cmp	DWORD PTR [rax+r13], ebx
	jg	.L7
.L11:
	add	r13, 4
	cmp	r13, 12
	jne	.L3
	mov	eax, DWORD PTR 8[r12]
	add	eax, DWORD PTR 12[r12]
	xor	ebp, ebp
	test	eax, eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rbx, 0[rbp+rbp*2]
	add	rbp, 1
	sal	rbx, 4
	mov	rdi, QWORD PTR 32[rdi+rbx]
	call	hb_lock_close@PLT
	mov	rax, QWORD PTR 24[r12]
	mov	rdi, QWORD PTR 32[rax+rbx]
	add	rdi, 24
	call	hb_lock_close@PLT
	mov	rax, QWORD PTR 24[r12]
	mov	rdi, QWORD PTR 32[rax+rbx]
	add	rdi, 48
	call	hb_lock_close@PLT
	mov	eax, DWORD PTR 12[r12]
	add	eax, DWORD PTR 8[r12]
	mov	rdi, QWORD PTR 24[r12]
	cmp	eax, ebp
	jg	.L8
.L9:
	call	free@PLT
	mov	rdi, QWORD PTR 16[r12]
	call	free@PLT
	mov	rdi, r12
	call	free@PLT
	mov	QWORD PTR [r14], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	ret
	.cfi_endproc
.LFE0:
	.size	nlmeans_close, .-nlmeans_close
	.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_nlmeans.c_nlmeans_close.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nlmeans_close, %function
nlmeans_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r0]
	cmp	r7, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r9, #0
	mov	r5, r9
	mov	r6, r0
	add	r0, r7, #24
	bl	taskset_fini
	ldr	ip, [r7, #16]
	ldr	r3, [r7]
.L3:
	ldr	r2, [r3, r9]
	cmp	r2, #0
	movgt	r4, #0
	addgt	r8, r9, r9, lsl #1
	bgt	.L7
	b	.L11
.L27:
	mov	r0, r2
	bl	free
	ldr	ip, [r7, #16]
	add	r3, ip, r10
	ldr	r3, [r3, #20]
	add	r3, r3, r8
	ldr	r0, [r3, #4]
	str	r5, [r3, #8]
.L4:
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r7]
	ldr	r2, [r3, r9]
	cmp	r2, r4
	ble	.L11
.L7:
	rsb	r1, r4, r4, lsl #3
	add	r3, ip, r1, lsl #2
	ldr	r3, [r3, #20]
	add	r4, r4, #1
	add	r3, r3, r8
	ldr	r2, [r3, #8]
	ldr	r0, [r3, #4]
	cmp	r2, #0
	lsl	r10, r1, #2
	beq	.L4
	cmp	r2, r0
	bne	.L27
.L5:
	bl	free
	ldr	ip, [r7, #16]
	add	r1, ip, r10
	ldr	r3, [r1, #20]
	add	r3, r3, r8
	str	r5, [r3, #4]
	ldr	r3, [r7]
	ldr	r2, [r3, r9]
	cmp	r2, r4
	bgt	.L7
.L11:
	add	r9, r9, #4
	cmp	r9, #12
	bne	.L3
	ldmib	r7, {r2, r3}
	add	r3, r3, r2
	cmp	r3, #0
	movgt	r5, #0
	ble	.L9
.L8:
	rsb	r4, r5, r5, lsl #3
	add	ip, ip, r4, lsl #2
	ldr	r0, [ip, #20]
	bl	hb_lock_close
	ldr	r3, [r7, #16]
	lsl	r4, r4, #2
	add	r3, r3, r4
	ldr	r0, [r3, #20]
	add	r5, r5, #1
	add	r0, r0, #12
	bl	hb_lock_close
	ldr	r3, [r7, #16]
	add	r4, r3, r4
	ldr	r0, [r4, #20]
	add	r0, r0, #24
	bl	hb_lock_close
	ldr	r3, [r7, #4]
	ldr	r2, [r7, #8]
	ldr	ip, [r7, #16]
	add	r3, r3, r2
	cmp	r3, r5
	bgt	.L8
.L9:
	mov	r0, ip
	bl	free
	ldr	r0, [r7, #12]
	bl	free
	mov	r0, r7
	bl	free
	mov	r3, #0
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	nlmeans_close, .-nlmeans_close
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
