	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uncompress_buffer
_uncompress_buffer:                     ## @uncompress_buffer
	.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	%r12
	pushq	%rbx
	movl	$16400, %eax                    ## imm = 0x4010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	cmpl	$1, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_sshbuf_mutable_ptr
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	callq	_sshbuf_len
	movq	(%rbx), %rcx
	movl	%eax, 24(%rcx)
	leaq	-16432(%rbp), %r15
	movq	_Z_PARTIAL_FLUSH@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%rcx), %rdi
	movq	%r15, 16(%rcx)
	movl	$16384, 8(%rcx)                 ## imm = 0x4000
	movl	(%r12), %esi
	callq	_inflate
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movl	$16384, %edx                    ## imm = 0x4000
	subl	8(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sshbuf_put
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rcx
	jmp	LBB0_3
LBB0_4:
	movl	%eax, %ecx
	cmpl	$130, %eax
	je	LBB0_12
## %bb.5:
	cmpl	$131, %ecx
	je	LBB0_11
## %bb.6:
	xorl	%eax, %eax
	cmpl	$132, %ecx
	je	LBB0_14
## %bb.7:
	movq	(%rbx), %rax
	incl	4(%rax)
LBB0_8:
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$16400, %rsp                    ## imm = 0x4010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_Z_PARTIAL_FLUSH,4,2            ## @Z_PARTIAL_FLUSH
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.no_dead_strip	_uncompress_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uncompress_buffer
_uncompress_buffer:                     ; @uncompress_buffer
	.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
	mov	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_sshbuf_mutable_ptr
	ldr	x8, [x19]
	str	x0, [x8, #32]
	cbz	x0, LBB0_13
; %bb.2:
	mov	x0, x21
	bl	_sshbuf_len
	mov	x8, x0
	ldr	x0, [x19]
	str	w8, [x0, #24]
	mov	w21, #16384
	add	x22, sp, #8
Lloh5:
	adrp	x23, _Z_PARTIAL_FLUSH@GOTPAGE
Lloh6:
	ldr	x23, [x23, _Z_PARTIAL_FLUSH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [x0, #8]!
	str	x22, [x0, #8]
	ldr	w1, [x23]
	bl	_inflate
	cmp	w0, #129
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	sub	w2, w21, w8
	add	x1, sp, #8
	mov	x0, x20
	bl	_sshbuf_put
	cbnz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
	b	LBB0_3
LBB0_6:
	cmp	w0, #130
	b.eq	LBB0_10
; %bb.7:
	cmp	w0, #131
	b.eq	LBB0_11
; %bb.8:
	cmp	w0, #132
	b.ne	LBB0_12
; %bb.9:
	mov	w0, #0
	b	LBB0_15
LBB0_10:
Lloh7:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh9:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_13:
Lloh11:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_Z_PARTIAL_FLUSH,4,2            ; @Z_PARTIAL_FLUSH
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.no_dead_strip	_uncompress_buffer
.subsections_via_symbols
