	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_stop_discard        ## -- Begin function ssh_packet_stop_discard
	.p2align	4, 0x90
_ssh_packet_stop_discard:               ## @ssh_packet_stop_discard
	.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
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.1:
	movq	_PACKET_MAX_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	%rax, %r13
	cmovaq	%rax, %rcx
	subq	%rcx, %r13
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	movl	$97, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	callq	_sshbuf_len
	cmpq	%r13, %rax
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_sshbuf_put
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_6
LBB0_4:
	movq	16(%rbx), %r15
	movl	8(%rbx), %edi
	movl	12(%rbx), %r12d
	callq	_sshbuf_ptr
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mac_compute
LBB0_5:
	movq	%r14, %rdi
	callq	_ssh_remote_ipaddr
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ssh_remote_port
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_logit
	movq	_SSH_ERR_MAC_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_MAX_SIZE,8,3            ## @PACKET_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Finished discarding for %.200s port %d"

	.comm	_SSH_ERR_MAC_INVALID,4,2        ## @SSH_ERR_MAC_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_stop_discard        ; -- Begin function ssh_packet_stop_discard
	.p2align	2
_ssh_packet_stop_discard:               ; @ssh_packet_stop_discard
	.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
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0]
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _PACKET_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET_MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	csel	x9, x9, xzr, hi
	sub	x20, x8, x9
	add	x0, sp, #8
	mov	w1, #97
	mov	w2, #1024
	bl	_memset
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #8]
	bl	_sshbuf_len
	cmp	x0, x20
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23, #8]
	add	x1, sp, #8
	mov	w2, #1024
	bl	_sshbuf_put
	cbz	w0, LBB0_2
	b	LBB0_6
LBB0_4:
	ldr	x21, [x23, #16]
	ldp	w0, w22, [x23, #8]
	bl	_sshbuf_ptr
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	mov	x4, #0
	mov	w5, #0
	bl	_mac_compute
LBB0_5:
	mov	x0, x19
	bl	_ssh_remote_ipaddr
	mov	x20, x0
	mov	x0, x19
	bl	_ssh_remote_port
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_logit
Lloh8:
	adrp	x8, _SSH_ERR_MAC_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_MAC_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #1040
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_MAX_SIZE,8,3            ; @PACKET_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Finished discarding for %.200s port %d"

	.comm	_SSH_ERR_MAC_INVALID,4,2        ; @SSH_ERR_MAC_INVALID
.subsections_via_symbols
