	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ssh_packet_close_internal
LCPI0_0:
	.quad	0x43e0000000000000              ## double 9.2233720368547758E+18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ssh_packet_close_internal:             ## @ssh_packet_close_internal
	.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	(%rdi), %r12
	cmpq	$0, 144(%r12)
	je	LBB0_21
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, 144(%r12)
	testl	%esi, %esi
	je	LBB0_4
## %bb.2:
	movq	(%r12), %rbx
	movq	8(%r12), %r13
	movq	%rbx, %rdi
	callq	_close
	cmpq	%r13, %rbx
	je	LBB0_4
## %bb.3:
	movq	8(%r12), %rdi
	callq	_close
LBB0_4:
	movq	136(%r12), %rdi
	callq	_sshbuf_free
	movq	128(%r12), %rdi
	callq	_sshbuf_free
	movq	120(%r12), %rdi
	callq	_sshbuf_free
	movq	112(%r12), %rdi
	callq	_sshbuf_free
	movq	_MODE_MAX@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	104(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kex_free_newkeys
	movq	104(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ssh_clear_newkeys
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_6
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.8:
	movq	96(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.9:
	callq	_sshbuf_free
	cmpq	$0, 88(%r12)
	je	LBB0_14
## %bb.10:
	movsd	72(%r12), %xmm1                 ## xmm1 = mem[0],zero
	movsd	80(%r12), %xmm2                 ## xmm2 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	%xmm1, %xmm3
	subsd	%xmm0, %xmm3
	cvttsd2si	%xmm3, %rax
	cvttsd2si	%xmm1, %rcx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	andq	%rax, %rsi
	orq	%rcx, %rsi
	movapd	%xmm2, %xmm3
	subsd	%xmm0, %xmm3
	cvttsd2si	%xmm3, %rax
	cvttsd2si	%xmm2, %rcx
	movq	%rcx, %rdx
	sarq	$63, %rdx
	andq	%rax, %rdx
	orq	%rcx, %rdx
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm1
	jne	LBB0_11
	jnp	LBB0_12
LBB0_11:
	divsd	%xmm1, %xmm2
	movapd	%xmm2, %xmm0
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_debug
	cmpq	$0, 16(%r12)
	jne	LBB0_14
## %bb.13:
	leaq	72(%r12), %rdi
	callq	_deflateEnd
LBB0_14:
	cmpq	$0, 64(%r12)
	je	LBB0_19
## %bb.15:
	movsd	48(%r12), %xmm1                 ## xmm1 = mem[0],zero
	movsd	56(%r12), %xmm2                 ## xmm2 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	%xmm2, %xmm3
	subsd	%xmm0, %xmm3
	cvttsd2si	%xmm3, %rax
	cvttsd2si	%xmm2, %rcx
	movq	%rcx, %rsi
	sarq	$63, %rsi
	andq	%rax, %rsi
	orq	%rcx, %rsi
	movapd	%xmm1, %xmm3
	subsd	%xmm0, %xmm3
	cvttsd2si	%xmm3, %rax
	cvttsd2si	%xmm1, %rcx
	movq	%rcx, %rdx
	sarq	$63, %rdx
	andq	%rax, %rdx
	orq	%rcx, %rdx
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm2
	jne	LBB0_16
	jnp	LBB0_17
LBB0_16:
	divsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	callq	_debug
	cmpq	$0, 24(%r12)
	jne	LBB0_19
## %bb.18:
	leaq	48(%r12), %rdi
	callq	_inflateEnd
LBB0_19:
	movq	40(%r12), %rdi
	callq	_cipher_free
	movq	32(%r12), %rdi
	callq	_cipher_free
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 32(%r12)
	movq	16(%r15), %rdi
	callq	_free
	movq	$0, 16(%r15)
	movq	8(%r15), %rdi
	callq	_free
	movq	$0, 8(%r15)
	movq	(%r15), %rdi
	callq	_free
	movq	$0, (%r15)
	jmp	LBB0_21
LBB0_20:
	movq	40(%r12), %rdi
	callq	_cipher_free
	movq	32(%r12), %rdi
	callq	_cipher_free
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 32(%r12)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_MAX,8,3                   ## @MODE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compress outgoing: raw data %llu, compressed %llu, factor %.2f"

L_.str.1:                               ## @.str.1
	.asciz	"compress incoming: raw data %llu, compressed %llu, factor %.2f"

	.no_dead_strip	_ssh_packet_close_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssh_packet_close_internal
_ssh_packet_close_internal:             ; @ssh_packet_close_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x22, [x0]
	ldr	x8, [x22, #144]
	cbz	x8, LBB0_17
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x22, #144]
	cbz	w1, LBB0_4
; %bb.2:
	ldp	x21, x23, [x22]
	mov	x0, x21
	bl	_close
	cmp	x21, x23
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x22, #8]
	bl	_close
LBB0_4:
	ldr	x0, [x22, #136]
	bl	_sshbuf_free
	ldr	x0, [x22, #128]
	bl	_sshbuf_free
	ldr	x0, [x22, #120]
	bl	_sshbuf_free
	ldr	x0, [x22, #112]
	bl	_sshbuf_free
Lloh0:
	adrp	x23, _MODE_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MODE_MAX@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #104]
	lsl	x24, x21, #3
	ldr	x0, [x8, x24]
	bl	_kex_free_newkeys
	ldr	x8, [x22, #104]
	str	xzr, [x8, x24]
	mov	x0, x19
	mov	x1, x21
	bl	_ssh_clear_newkeys
	add	x21, x21, #1
	ldr	x8, [x23]
	cmp	x21, x8
	b.lo	LBB0_6
LBB0_7:
	cbz	w20, LBB0_16
; %bb.8:
	ldr	x0, [x22, #96]
	cbz	x0, LBB0_15
; %bb.9:
	bl	_sshbuf_free
	ldr	x8, [x22, #88]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x20, x22
	ldp	d0, d1, [x20, #72]!
	fcvtzu	x1, d0
	fcvtzu	x2, d1
	fdiv	d1, d1, d0
	fcmp	d0, #0.0
	movi	d0, #0000000000000000
	fcsel	d0, d0, d1, eq
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	ldur	x8, [x20, #-56]
	cbnz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_deflateEnd
LBB0_12:
	ldr	x8, [x22, #64]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x20, x22
	ldp	d0, d1, [x20, #48]!
	fcvtzu	x1, d1
	fcvtzu	x2, d0
	fdiv	d0, d0, d1
	fcmp	d1, #0.0
	movi	d1, #0000000000000000
	fcsel	d0, d1, d0, eq
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	ldur	x8, [x20, #-24]
	cbnz	x8, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_inflateEnd
LBB0_15:
	ldr	x0, [x22, #40]
	bl	_cipher_free
	ldr	x0, [x22, #32]
	bl	_cipher_free
	stp	xzr, xzr, [x22, #32]
	ldr	x0, [x19, #16]
	bl	_free
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_free
	str	xzr, [x19, #8]
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	b	LBB0_17
LBB0_16:
	ldr	x0, [x22, #40]
	bl	_cipher_free
	ldr	x0, [x22, #32]
	bl	_cipher_free
	stp	xzr, xzr, [x22, #32]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_MAX,8,3                   ; @MODE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compress outgoing: raw data %llu, compressed %llu, factor %.2f"

l_.str.1:                               ; @.str.1
	.asciz	"compress incoming: raw data %llu, compressed %llu, factor %.2f"

	.no_dead_strip	_ssh_packet_close_internal
.subsections_via_symbols
