	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deflate_stored
_deflate_stored:                        ## @deflate_stored
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-5(%rax), %ecx
	cmpl	$65540, %eax                    ## imm = 0x10004
	movl	$65535, %r13d                   ## imm = 0xFFFF
	cmovll	%ecx, %r13d
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, 4(%rbx)
	jg	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %r15
	movq	16(%rbx), %r14
	movq	%rbx, %rdi
	callq	_MAX_DIST
	addq	%r14, %rax
	movb	$1, %cl
	cmpq	%rax, %r15
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rax
	cmpq	16(%rbx), %rax
	setge	%cl
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%cl, %edi
	leaq	L_.str(%rip), %rsi
	callq	_Assert
	movq	%rbx, %rdi
	callq	_fill_window
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r12, %rsi
	callq	_Assert
	movslq	4(%rbx), %r15
	addq	8(%rbx), %r15
	movq	%r15, 8(%rbx)
	movl	$0, 4(%rbx)
	movq	24(%rbx), %rax
	leaq	(%rax,%r13), %rcx
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%ecx, %r15d
	jl	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ecx, %rax
	subl	%eax, %r15d
	movl	%r15d, 4(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_FLUSH_BLOCK
	movq	8(%rbx), %r15
	movq	24(%rbx), %rax
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	subq	%rax, %r15
	movq	%rbx, %rdi
	callq	_MAX_DIST
	cmpq	%rax, %r15
	jl	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_FLUSH_BLOCK
	jmp	LBB0_1
LBB0_6:
	movq	_need_more@GOTPCREL(%rip), %r14
	jmp	LBB0_17
LBB0_13:
	movq	$0, 32(%rbx)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	_finish_done@GOTPCREL(%rip), %r14
	movl	$1, %esi
	jmp	LBB0_16
LBB0_15:
	movq	8(%rbx), %rax
	movq	_block_done@GOTPCREL(%rip), %r14
	xorl	%esi, %esi
	cmpq	24(%rbx), %rax
	jle	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	callq	_FLUSH_BLOCK
LBB0_17:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slide too late"

	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_need_more,4,2                  ## @need_more
L_.str.1:                               ## @.str.1
	.asciz	"block gone"

	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_finish_done,4,2                ## @finish_done
	.comm	_block_done,4,2                 ## @block_done
	.no_dead_strip	_deflate_stored
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deflate_stored
_deflate_stored:                        ; @deflate_stored
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #5
	mov	w10, #4
	movk	w10, #1, lsl #16
	mov	w11, #65535
	cmp	w8, w10
	csel	w24, w9, w11, lt
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _Z_NO_FLUSH@GOTPAGE
Lloh3:
	ldr	x25, [x25, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh4:
	adrp	x23, _need_more@GOTPAGE
Lloh5:
	ldr	x23, [x23, _need_more@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.gt	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x26, x27, [x19, #8]
	mov	x0, x19
	bl	_MAX_DIST
	add	x8, x0, x27
	cmp	x26, x8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x8, [x19, #16]
	cmp	x8, x9
	cset	w0, ge
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x21
	bl	_Assert
	mov	x0, x19
	bl	_fill_window
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x25]
	cmp	w9, w20
	b.eq	LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbz	w8, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #24]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	mov	x1, x22
	bl	_Assert
	ldrsw	x8, [x19, #4]
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
	str	wzr, [x19, #4]
	ldr	x9, [x19, #24]
	add	x10, x9, x24
	cmp	x8, #0
	ccmp	w8, w10, #0, ne
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x9, w10
	sub	w8, w8, w10
	str	w8, [x19, #4]
	str	x9, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_FLUSH_BLOCK
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x26, x8, x9
	mov	x0, x19
	bl	_MAX_DIST
	cmp	x26, x0
	b.lt	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_FLUSH_BLOCK
	b	LBB0_1
LBB0_12:
	str	xzr, [x19, #32]
Lloh8:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_14
; %bb.13:
Lloh11:
	adrp	x23, _finish_done@GOTPAGE
Lloh12:
	ldr	x23, [x23, _finish_done@GOTPAGEOFF]
	mov	w1, #1
	b	LBB0_16
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
Lloh13:
	adrp	x23, _block_done@GOTPAGE
Lloh14:
	ldr	x23, [x23, _block_done@GOTPAGEOFF]
	cmp	x8, x9
	b.le	LBB0_17
; %bb.15:
	mov	w1, #0
LBB0_16:
	mov	x0, x19
	bl	_FLUSH_BLOCK
LBB0_17:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slide too late"

	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_need_more,4,2                  ; @need_more
l_.str.1:                               ; @.str.1
	.asciz	"block gone"

	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_finish_done,4,2                ; @finish_done
	.comm	_block_done,4,2                 ; @block_done
	.no_dead_strip	_deflate_stored
.subsections_via_symbols
