	.file	"extr_rcopy.c_server_close.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"closing..."
.LC1:
	.string	"done\n"
	.text
	.p2align 4
	.type	server_close, @function
server_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	lea	rdi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	printf@PLT
	xor	edi, edi
	call	fflush@PLT
	mov	edi, ebp
	xor	edx, edx
	mov	rsi, r12
	call	msg_send_resp@PLT
	mov	rdi, QWORD PTR file_addr[rip]
	test	rdi, rdi
	je	.L2
	mov	esi, DWORD PTR bytes[rip]
	call	munmap@PLT
	mov	QWORD PTR file_addr[rip], 0
.L2:
	mov	rdi, QWORD PTR fd[rip]
	test	rdi, rdi
	jle	.L3
	call	close@PLT
	mov	QWORD PTR fd[rip], 0
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rdi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	server_close, .-server_close
	.comm	file_addr,8,8
	.comm	fd,8,8
	.comm	bytes,4,4
	.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_rcopy.c_server_close.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"closing...\000"
	.align	2
.LC1:
	.ascii	"done\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_close, %function
server_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r0, .L9
	bl	printf
	ldr	r6, .L9+4
	mov	r0, #0
	bl	fflush
	mov	r1, r5
	mov	r0, r4
	mov	r2, #0
	bl	msg_send_resp
	ldr	r0, [r6]
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L9+8
	ldr	r1, [r3]
	bl	munmap
	mov	r3, #0
	str	r3, [r6]
.L2:
	ldr	r4, .L9+12
	ldr	r0, [r4]
	cmp	r0, #0
	ble	.L3
	bl	close
	mov	r3, #0
	str	r3, [r4]
.L3:
	ldr	r0, .L9+16
	pop	{r4, r5, r6, lr}
	b	printf
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	file_addr
	.word	bytes
	.word	fd
	.word	.LC1
	.size	server_close, .-server_close
	.comm	file_addr,4,4
	.comm	fd,4,4
	.comm	bytes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
