	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_session_close                  ## -- Begin function session_close
	.p2align	4, 0x90
_session_close:                         ## @session_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	88(%rsi), %rax
	movl	(%rax), %r15d
	callq	_ssh_remote_ipaddr
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_ssh_remote_port
	movl	16(%r13), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_verbose
	cmpl	$-1, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_session_pty_cleanup
LBB0_2:
	movq	80(%r13), %rdi
	callq	_free
	movq	72(%r13), %rdi
	callq	_free
	movq	64(%r13), %rdi
	callq	_free
	movq	56(%r13), %rdi
	callq	_free
	movq	48(%r13), %rdi
	callq	_free
	movq	40(%r13), %rdi
	callq	_free
	movq	32(%r13), %rdi
	callq	_free
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi,%rbx), %rdi
	callq	_free
	movq	24(%r13), %rax
	movq	(%rax,%rbx), %rdi
	callq	_free
	incq	%r14
	movq	24(%r13), %rdi
	addq	$16, %rbx
	cmpq	8(%r13), %r14
	jb	LBB0_5
LBB0_6:
	callq	_free
LBB0_7:
	movq	%r13, %rdi
	callq	_session_proctitle
	movl	16(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_session_unused                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Close session: user %s from %.200s port %d id %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_session_close                  ; -- Begin function session_close
	.p2align	2
_session_close:                         ; @session_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #88]
	ldr	w21, [x8]
	bl	_ssh_remote_ipaddr
	mov	x22, x0
	mov	x0, x20
	bl	_ssh_remote_port
	mov	x3, x0
	ldr	w4, [x19, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_verbose
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_session_pty_cleanup
LBB0_2:
	ldr	x0, [x19, #80]
	bl	_free
	ldr	x0, [x19, #72]
	bl	_free
	ldr	x0, [x19, #64]
	bl	_free
	ldr	x0, [x19, #56]
	bl	_free
	ldr	x0, [x19, #48]
	bl	_free
	ldr	x0, [x19, #40]
	bl	_free
	ldr	x0, [x19, #32]
	bl	_free
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x20, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, x20
	ldr	x0, [x8, #8]
	bl	_free
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x20]
	bl	_free
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	ldr	x0, [x19, #24]
	add	x20, x20, #16
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_6:
	bl	_free
LBB0_7:
	mov	x0, x19
	bl	_session_proctitle
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_session_unused
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Close session: user %s from %.200s port %d id %d"

.subsections_via_symbols
