	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_reset                   ## -- Begin function sshbuf_reset
	.p2align	4, 0x90
_sshbuf_reset:                          ## @sshbuf_reset
	.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	%rdi, %rbx
	cmpq	$0, 48(%rdi)
	jne	LBB0_7
## %bb.1:
	cmpl	$2, (%rbx)
	jl	LBB0_2
LBB0_7:
	movq	32(%rbx), %rax
	movq	%rax, 40(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_sshbuf_check_sanity
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	8(%rbx), %rsi
	movq	_SSHBUF_SIZE_INIT@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_6
## %bb.3:
	movq	16(%rbx), %rdi
	movl	$1, %ecx
	callq	_recallocarray
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, 16(%rbx)
	movq	%rax, 24(%rbx)
	movq	(%r14), %rsi
	movq	%rsi, 8(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	(%r14), %rsi
LBB0_6:
	movq	16(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_explicit_bzero                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SSHBUF_SIZE_INIT,8,3           ## @SSHBUF_SIZE_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_reset                   ; -- Begin function sshbuf_reset
	.p2align	2
_sshbuf_reset:                          ; @sshbuf_reset
	.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, x0
	ldr	x8, [x0, #48]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_3
LBB0_2:
	ldr	x8, [x19, #32]
	str	x8, [x19, #40]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_sshbuf_check_sanity
	stp	xzr, xzr, [x19, #32]
	ldr	x1, [x19, #8]
Lloh0:
	adrp	x20, _SSHBUF_SIZE_INIT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SSHBUF_SIZE_INIT@GOTPAGEOFF]
	ldr	x2, [x20]
	cmp	x1, x2
	b.eq	LBB0_7
; %bb.4:
	ldr	x0, [x19, #16]
	mov	w3, #1
	bl	_recallocarray
	cbz	x0, LBB0_6
; %bb.5:
	stp	x0, x0, [x19, #16]
	ldr	x1, [x20]
	str	x1, [x19, #8]
	b	LBB0_7
LBB0_6:
	ldr	x1, [x20]
LBB0_7:
	ldr	x0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_explicit_bzero
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SSHBUF_SIZE_INIT,8,3           ; @SSHBUF_SIZE_INIT
.subsections_via_symbols
