	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipher_get_length              ## -- Begin function cipher_get_length
	.p2align	4, 0x90
_cipher_get_length:                     ## @cipher_get_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	8(%rdi), %rax
	movq	_CFLAG_CHACHAPOLY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_chachapoly_get_length          ## TAILCALL
LBB0_1:
	cmpl	$3, %r8d
	jg	LBB0_3
## %bb.2:
	movq	_SSH_ERR_MESSAGE_INCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_3:
	movq	%rcx, %rdi
	callq	_PEEK_U32
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFLAG_CHACHAPOLY,4,2           ## @CFLAG_CHACHAPOLY
	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ## @SSH_ERR_MESSAGE_INCOMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipher_get_length              ; -- Begin function cipher_get_length
	.p2align	2
_cipher_get_length:                     ; @cipher_get_length
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CFLAG_CHACHAPOLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFLAG_CHACHAPOLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_chachapoly_get_length
LBB0_2:
	cmp	w4, #3
	b.gt	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x3
	bl	_PEEK_U32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CFLAG_CHACHAPOLY,4,2           ; @CFLAG_CHACHAPOLY
	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ; @SSH_ERR_MESSAGE_INCOMPLETE
.subsections_via_symbols
