	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DeflateInput
_DeflateInput:                          ## @DeflateInput
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LogDEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdx
	callq	_log_DumpBp
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_mbuf_Read
	movq	%rax, %r14
	movl	-56(%rbp), %ebx
	shll	$8, %ebx
	addl	-52(%rbp), %ebx
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	movl	(%r13), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	4(%r13), %ebx
	jle	LBB0_3
## %bb.2:
	movq	_LogCCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	%r14, %rdi
	callq	_m_freem
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_ccp_SendResetReq
	jmp	LBB0_35
LBB0_3:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	incl	%ebx
	movl	%ebx, (%r13)
	movl	$0, 4(%r13)
	movq	_DEFLATE_CHUNK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB_CCPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_m_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_MBUF_CTOP
	movq	%rax, %rbx
	movl	$0, (%rax)
	movq	%r14, %rdi
	callq	_MBUF_CTOP
	leaq	8(%r13), %r15
	movq	%rax, 40(%r13)
	movl	(%r14), %ecx
	movl	%ecx, 8(%r13)
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	4(%rbx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rax, 16(%r13)
	movl	$1, 24(%r13)
	cmpq	$0, 8(%r14)
	jne	LBB0_4
## %bb.5:
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
LBB0_6:
	addl	$2, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_inflate
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.10:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_DEFLATE_CHUNK_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
LBB0_32:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, 24(%r13)
	xorl	%ebx, %ebx
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_inflate
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 24(%r13)
	jne	LBB0_13
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	testq	%r14, %r14
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_m_free
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_MBUF_CTOP
	movq	%rax, 40(%r13)
	movl	(%r14), %eax
	movl	%eax, 8(%r13)
	cmpq	$0, 8(%r14)
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	addl	%eax, -68(%rbp)                 ## 4-byte Folded Spill
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 24(%r13)
	jne	LBB0_33
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ecx
	movl	$-2, %eax
	testb	$1, %cl
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, (%rax)
	addq	$-4, 16(%r13)
	movl	$-1, %eax
	jmp	LBB0_30
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	cmpl	$0, 24(%r13)
	jne	LBB0_33
	jmp	LBB0_27
LBB0_31:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_DEFLATE_CHUNK_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %edi
	movq	_MB_CCPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_m_get
	movq	%rax, %rbx
	movq	%rax, 8(%r15)
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%rax, %rdi
	callq	_MBUF_CTOP
	movq	%rax, 16(%r13)
	movq	_DEFLATE_CHUNK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
LBB0_7:
	movl	$1, %ebx
	xorl	%ecx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_14
## %bb.9:
	movq	_LogCCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	32(%r13), %rdx
	testq	%rdx, %rdx
	leaq	L_.str.4(%rip), %rcx
	cmovneq	%rdx, %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_m_freem
	movq	%r14, %rdi
	jmp	LBB0_18
LBB0_13:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_14:
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_m_freem
LBB0_16:
	testl	%ebx, %ebx
	je	LBB0_34
## %bb.17:
	movq	_LogCCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_log_Printf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	callq	_m_freem
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_ccp_SendResetReq
	jmp	LBB0_35
LBB0_34:
	movq	_DEFLATE_CHUNK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	24(%r13), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	(%rdx), %ecx
	shll	$8, %ecx
	orl	4(%rdx), %ecx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	%ecx, (%rsi)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addl	$2, 4(%rbx)
	addl	$-2, (%rbx)
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	addl	%edx, (%r12)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	addl	$-2, %ecx
	addl	%ecx, 4(%r12)
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %r8d
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_garbage@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movl	$8, 24(%r13)
	movq	_EMPTY_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	movl	$8, 8(%r13)
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_inflate
	movq	%rbx, %r15
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movq	%r15, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DeflateInput: Decompress packet:"

L_.str.1:                               ## @.str.1
	.asciz	"DeflateInput: Seq %d\n"

	.comm	_LogCCP,4,2                     ## @LogCCP
L_.str.2:                               ## @.str.2
	.asciz	"DeflateInput: Seq error: Got %d, expected %d\n"

	.comm	_DEFLATE_CHUNK_LEN,4,2          ## @DEFLATE_CHUNK_LEN
	.comm	_MB_CCPIN,4,2                   ## @MB_CCPIN
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.3:                               ## @.str.3
	.asciz	"DeflateInput: inflate returned %d (%s)\n"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"DeflateInput: Length error\n"

L_.str.6:                               ## @.str.6
	.asciz	"DeflateInput: %d => %d bytes, proto 0x%04x\n"

	.comm	_garbage,8,3                    ## @garbage
	.comm	_EMPTY_BLOCK,8,3                ## @EMPTY_BLOCK
	.no_dead_strip	_DeflateInput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function DeflateInput
lCPI0_0:
	.long	4294967294                      ; 0xfffffffe
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_DeflateInput:                          ; @DeflateInput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x25, _LogDEBUG@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LogDEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	bl	_log_DumpBp
	add	x1, sp, #64
	mov	x0, x21
	mov	w2, #2
	bl	_mbuf_Read
	mov	x23, x0
	ldp	w8, w9, [sp, #64]
	add	w19, w9, w8, lsl #8
	ldr	w0, [x25]
	str	x19, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
	ldr	w8, [x20]
	cmp	w19, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w9, [x20, #4]
	cmp	w19, w9
	b.le	LBB0_3
; %bb.2:
Lloh9:
	adrp	x9, _LogCCP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LogCCP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
	mov	x0, x23
	bl	_m_freem
	add	x0, x22, #8
	b	LBB0_29
LBB0_3:
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
	add	w8, w19, #1
	stp	w8, wzr, [x20]
Lloh14:
	adrp	x8, _DEFLATE_CHUNK_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEFLATE_CHUNK_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _MB_CCPIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MB_CCPIN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_m_get
	mov	x21, x0
	bl	_MBUF_CTOP
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	mov	x25, x0
	str	wzr, [x25], #4
	mov	x0, x23
	bl	_MBUF_CTOP
	ldr	w8, [x23]
	mov	x24, x20
	str	w8, [x24, #8]!
	str	x0, [x24, #32]
	str	x25, [x24, #8]
	mov	w27, #1
	str	w27, [x24, #16]
	add	w19, w8, #2
Lloh20:
	adrp	x8, _Z_NO_FLUSH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Z_NO_FLUSH@GOTPAGEOFF]
	ldr	x9, [x23, #8]
Lloh22:
	adrp	x22, _Z_SYNC_FLUSH@GOTPAGE
Lloh23:
	ldr	x22, [x22, _Z_SYNC_FLUSH@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x22, x8, eq
	ldr	w26, [x8]
	mov	x0, x24
	mov	x1, x26
	bl	_inflate
                                        ; kill: def $w0 killed $w0 def $x0
Lloh24:
	adrp	x28, _Z_OK@GOTPAGE
Lloh25:
	ldr	x28, [x28, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w0, w8
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	b.ne	LBB0_19
; %bb.4:
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
	mov	w27, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x26
	bl	_inflate
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w26, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_23
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	cmp	w8, #0
	ccmp	x23, #0, #4, eq
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_m_free
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_MBUF_CTOP
	str	x0, [x20, #40]
	ldr	w8, [x23]
	str	w8, [x20, #8]
	add	w19, w8, w19
	ldr	x8, [x23, #8]
	ldr	w9, [x22]
	cmp	x8, #0
	csel	w26, w9, w26, eq
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w27, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	tbnz	w8, #0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	x8, [x20, #16]
	sub	x8, x8, #4
	str	x8, [x20, #16]
	mov	w8, #-1
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh26:
	adrp	x8, _DEFLATE_CHUNK_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DEFLATE_CHUNK_LEN@GOTPAGEOFF]
	mov	x28, x25
	mov	x25, x19
	mov	x19, x22
	mov	x22, x8
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	add	w9, w8, w9
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	ldr	w0, [x22]
Lloh28:
	adrp	x8, _MB_CCPIN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MB_CCPIN@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_m_get
	mov	x27, x0
	str	x0, [x21, #8]
	bl	_MBUF_CTOP
	str	x0, [x20, #16]
	ldr	w8, [x22]
	mov	x22, x19
	mov	x19, x25
	mov	x25, x28
Lloh31:
	adrp	x28, _Z_OK@GOTPAGE
Lloh32:
	ldr	x28, [x28, _Z_OK@GOTPAGEOFF]
	mov	x21, x27
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #-2
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh33:
	adrp	x9, _DEFLATE_CHUNK_LEN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _DEFLATE_CHUNK_LEN@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	add	w8, w9, w8
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
	str	w8, [x20, #24]
	b	LBB0_6
LBB0_19:
	mov	w25, #0
	b	LBB0_21
LBB0_20:
	ldr	w25, [sp, #60]                  ; 4-byte Folded Reload
LBB0_21:
Lloh36:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.22:
Lloh39:
	adrp	x8, _LogCCP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _LogCCP@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	x9, [x20, #32]
Lloh42:
	adrp	x10, l_.str.4@PAGE
Lloh43:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x9, #0
	csel	x9, x10, x9, eq
	stp	x0, x9, [sp]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_log_Printf
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_m_freem
	mov	x0, x23
	b	LBB0_28
LBB0_23:
	ldr	w25, [sp, #60]                  ; 4-byte Folded Reload
LBB0_24:
	cbz	x23, LBB0_26
; %bb.25:
	mov	x0, x23
	bl	_m_freem
LBB0_26:
	cbz	w27, LBB0_32
; %bb.27:
Lloh46:
	adrp	x8, _LogCCP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _LogCCP@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_log_Printf
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
LBB0_28:
	bl	_m_freem
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x0, x8, #8
LBB0_29:
	bl	_ccp_SendResetReq
	mov	x21, #0
LBB0_30:
	ldr	x8, [sp, #72]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.31:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_32:
Lloh54:
	adrp	x8, _DEFLATE_CHUNK_LEN@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DEFLATE_CHUNK_LEN@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	sub	w8, w8, w9
	add	w9, w25, w8
	str	w8, [x21]
	ldp	x11, x10, [sp, #40]             ; 16-byte Folded Reload
	ldp	w8, w10, [x10]
	orr	w8, w10, w8, lsl #8
	ldp	x12, x21, [sp, #24]             ; 16-byte Folded Reload
	str	w8, [x12]
	ldr	d0, [x21]
Lloh57:
	adrp	x8, lCPI0_0@PAGE
Lloh58:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [x21]
	sub	w8, w9, #2
	ldp	w9, w10, [x11]
	add	w9, w9, w19
	add	w10, w10, w8
	stp	w9, w10, [x11]
Lloh59:
	adrp	x9, _LogDEBUG@GOTPAGE
Lloh60:
	ldr	x9, [x9, _LogDEBUG@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x9]
	ldr	w9, [x12]
	stp	x8, x9, [sp, #8]
	str	x19, [sp]
Lloh62:
	adrp	x1, l_.str.6@PAGE
Lloh63:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_log_Printf
Lloh64:
	adrp	x8, _garbage@GOTPAGE
Lloh65:
	ldr	x8, [x8, _garbage@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	mov	w8, #8
	str	w8, [x20, #24]
Lloh67:
	adrp	x9, _EMPTY_BLOCK@GOTPAGE
Lloh68:
	ldr	x9, [x9, _EMPTY_BLOCK@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	str	x9, [x20, #40]
	str	w8, [x20, #8]
	ldr	w1, [x22]
	mov	x0, x24
	bl	_inflate
	b	LBB0_30
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdr	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DeflateInput: Decompress packet:"

l_.str.1:                               ; @.str.1
	.asciz	"DeflateInput: Seq %d\n"

	.comm	_LogCCP,4,2                     ; @LogCCP
l_.str.2:                               ; @.str.2
	.asciz	"DeflateInput: Seq error: Got %d, expected %d\n"

	.comm	_DEFLATE_CHUNK_LEN,4,2          ; @DEFLATE_CHUNK_LEN
	.comm	_MB_CCPIN,4,2                   ; @MB_CCPIN
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.3:                               ; @.str.3
	.asciz	"DeflateInput: inflate returned %d (%s)\n"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"DeflateInput: Length error\n"

l_.str.6:                               ; @.str.6
	.asciz	"DeflateInput: %d => %d bytes, proto 0x%04x\n"

	.comm	_garbage,8,3                    ; @garbage
	.comm	_EMPTY_BLOCK,8,3                ; @EMPTY_BLOCK
	.no_dead_strip	_DeflateInput
.subsections_via_symbols
