	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function deflate_block
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_deflate_block:                         ## @deflate_block
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	_BGZF_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%esi, %eax
	setge	%dil
	callq	_assert
	movq	_g_magic@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_BLOCK_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_memcpy
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	shlq	$2, %rax
	negq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax), %r15d
	leaq	-96(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	8(%rbx), %rax
	movq	%rax, -104(%rbp)
	movl	%r15d, -128(%rbp)
	movq	_BLOCK_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -112(%rbp)
	movq	_BLOCK_FOOTER_LENGTH@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	subl	%eax, %ecx
	movl	%ecx, -124(%rbp)
	movl	20(%rbx), %esi
	movq	_Z_DEFLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_Z_DEFAULT_STRATEGY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-128(%rbp), %rdi
	movl	$-15, %ecx
	movl	$8, %r8d
	callq	_deflateInit2
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r12
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_deflate
	movl	%eax, %r13d
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_deflateEnd
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r14d, %r13d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%ecx, %r13d
	movq	%r12, %rbx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	cmpl	$1025, %r15d                    ## imm = 0x401
	setge	%dil
	callq	_assert
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	$-1024, %eax                    ## imm = 0xFC00
	addq	$4096, -64(%rbp)                ## 8-byte Folded Spill
                                        ## imm = 0x1000
	jmp	LBB0_1
LBB0_5:
	cmpl	%ecx, %eax
	movq	%r12, %rbx
	jne	LBB0_6
## %bb.7:
	movl	-120(%rbp), %r14d
	movq	_BLOCK_FOOTER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_BLOCK_HEADER_LENGTH@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	leal	(%r14,%rcx), %r13d
	xorl	%edi, %edi
	movq	_BGZF_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	setle	%dil
	callq	_assert
	xorl	%edi, %edi
	testl	%r13d, %r13d
	setg	%dil
	callq	_assert
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	64(%rbx), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %esi
	decl	%esi
	callq	_packInt16
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crc32
	movq	8(%r12), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_crc32
	movslq	%r13d, %r14
	leaq	(%rbx,%r14,4), %rdi
	addq	$-32, %rdi
	movl	%eax, %esi
	callq	_packInt32
	leaq	(%rbx,%r14,4), %rdi
	addq	$-16, %rdi
	movl	%r15d, %esi
	callq	_packInt32
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	negl	%ebx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	cmpl	%r15d, %ebx
	setle	%dil
	callq	_assert
	movq	8(%r12), %rdi
	movq	%rdi, %rsi
	subq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	%ebx, %edx
	callq	_memcpy
LBB0_9:
	movl	%ebx, (%r12)
	jmp	LBB0_10
LBB0_6:
	movq	_BGZF_ERR_ZLIB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movl	$-1, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGZF_BLOCK_SIZE,4,2            ## @BGZF_BLOCK_SIZE
	.comm	_g_magic,8,3                    ## @g_magic
	.comm	_BLOCK_HEADER_LENGTH,8,3        ## @BLOCK_HEADER_LENGTH
	.comm	_BLOCK_FOOTER_LENGTH,4,2        ## @BLOCK_FOOTER_LENGTH
	.comm	_Z_DEFLATED,4,2                 ## @Z_DEFLATED
	.comm	_Z_DEFAULT_STRATEGY,4,2         ## @Z_DEFAULT_STRATEGY
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_BGZF_ERR_ZLIB,4,2              ## @BGZF_ERR_ZLIB
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.no_dead_strip	_deflate_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deflate_block
_deflate_block:                         ; @deflate_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x8, _BGZF_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BGZF_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	cmp	w26, w1
	cset	w0, ge
	bl	_assert
Lloh3:
	adrp	x8, _g_magic@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_magic@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
Lloh6:
	adrp	x8, _BLOCK_HEADER_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLOCK_HEADER_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	_memcpy
	mov	x8, #0
	mov	w23, #0
	add	x9, sp, #16
Lloh9:
	adrp	x28, _Z_OK@GOTPAGE
Lloh10:
	ldr	x28, [x28, _Z_OK@GOTPAGEOFF]
	add	x25, x9, #32
	sub	x24, x8, w21, sxtw #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w27, w21, w23
	stp	xzr, xzr, [x25]
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _BLOCK_HEADER_LENGTH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BLOCK_HEADER_LENGTH@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x10, x10, x9, lsl #2
	stp	x10, x8, [sp, #32]
Lloh14:
	adrp	x8, _BLOCK_FOOTER_LENGTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BLOCK_FOOTER_LENGTH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w8, w8, w9
	sub	w8, w26, w8
	stp	w27, w8, [sp, #16]
	ldr	w1, [x19, #20]
Lloh17:
	adrp	x8, _Z_DEFLATED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Z_DEFLATED@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _Z_DEFAULT_STRATEGY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Z_DEFAULT_STRATEGY@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
	add	x0, sp, #16
	mov	w3, #-15
	mov	w4, #8
	bl	_deflateInit2
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh23:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_deflate
	mov	x22, x0
Lloh26:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
	add	x0, sp, #16
	bl	_deflateEnd
	ldr	w8, [x28]
	cmp	w22, w20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w22, w8
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w27, #1024
	cset	w0, gt
	bl	_assert
	sub	w23, w23, #1024
	add	x24, x24, #1, lsl #12           ; =4096
	b	LBB0_1
LBB0_5:
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.6:
	add	w22, w21, w23
	ldr	w8, [sp, #24]
Lloh29:
	adrp	x9, _BLOCK_HEADER_LENGTH@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BLOCK_HEADER_LENGTH@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _BLOCK_FOOTER_LENGTH@GOTPAGE
Lloh33:
	ldr	x10, [x10, _BLOCK_FOOTER_LENGTH@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	add	w8, w8, w9
	add	w21, w8, w10
Lloh35:
	adrp	x8, _BGZF_BLOCK_SIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BGZF_BLOCK_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, le
	bl	_assert
	cmp	w21, #0
	cset	w0, gt
	bl	_assert
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	add	x0, x20, #64
	sub	w1, w21, #1
	bl	_packInt16
	mov	w0, #0
	mov	x1, #0
	mov	w2, #0
	bl	_crc32
	ldr	x1, [x19, #8]
	mov	x2, x22
	bl	_crc32
	mov	x1, x0
	add	x20, x20, w21, sxtw #2
	sub	x0, x20, #32
	bl	_packInt32
	sub	x0, x20, #16
	mov	x1, x22
	bl	_packInt32
	neg	w20, w23
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.7:
	cmp	w20, w22
	cset	w0, le
	bl	_assert
	ldr	x0, [x19, #8]
	sub	x1, x0, x24
	mov	x2, x20
	bl	_memcpy
LBB0_8:
	str	w20, [x19]
	b	LBB0_10
LBB0_9:
Lloh38:
	adrp	x8, _BGZF_ERR_ZLIB@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BGZF_ERR_ZLIB@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	mov	w21, #-1
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_BGZF_BLOCK_SIZE,4,2            ; @BGZF_BLOCK_SIZE
	.comm	_g_magic,8,3                    ; @g_magic
	.comm	_BLOCK_HEADER_LENGTH,8,3        ; @BLOCK_HEADER_LENGTH
	.comm	_BLOCK_FOOTER_LENGTH,4,2        ; @BLOCK_FOOTER_LENGTH
	.comm	_Z_DEFLATED,4,2                 ; @Z_DEFLATED
	.comm	_Z_DEFAULT_STRATEGY,4,2         ; @Z_DEFAULT_STRATEGY
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_BGZF_ERR_ZLIB,4,2              ; @BGZF_ERR_ZLIB
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.no_dead_strip	_deflate_block
.subsections_via_symbols
