	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_close
_server_close:                          ## @server_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	xorl	%edi, %edi
	callq	_fflush
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_msg_send_resp
	movq	_file_addr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_munmap
	movq	$0, (%rbx)
LBB0_2:
	movq	_fd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_4
## %bb.3:
	callq	_close
	movq	$0, (%rbx)
LBB0_4:
	leaq	L_str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"closing..."

	.comm	_file_addr,8,3                  ## @file_addr
	.comm	_bytes,4,2                      ## @bytes
	.comm	_fd,8,3                         ## @fd
L_str:                                  ## @str
	.asciz	"done"

	.no_dead_strip	_server_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_close
_server_close:                          ; @server_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, #0
	bl	_fflush
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_msg_send_resp
Lloh2:
	adrp	x19, _file_addr@GOTPAGE
Lloh3:
	ldr	x19, [x19, _file_addr@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _bytes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bytes@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_munmap
	str	xzr, [x19]
LBB0_2:
Lloh7:
	adrp	x19, _fd@GOTPAGE
Lloh8:
	ldr	x19, [x19, _fd@GOTPAGEOFF]
	ldr	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	bl	_close
	str	xzr, [x19]
LBB0_4:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_puts
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"closing..."

	.comm	_file_addr,8,3                  ; @file_addr
	.comm	_bytes,4,2                      ; @bytes
	.comm	_fd,8,3                         ; @fd
l_str:                                  ; @str
	.asciz	"done"

	.no_dead_strip	_server_close
.subsections_via_symbols
