	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_dict_deflate              ## -- Begin function test_dict_deflate
	.p2align	4, 0x90
_test_dict_deflate:                     ## @test_dict_deflate
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	(%rax), %r9
	imulq	$780903145, %r9, %rax           ## imm = 0x2E8BA2E9
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	%eax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rax,%rcx,2), %eax
	notl	%eax
	addl	%r9d, %eax
	movq	_Z_DEFLATED@GOTPCREL(%rip), %rdx
	leal	7(%r9), %ecx
	testl	%r9d, %r9d
	cmovnsl	%r9d, %ecx
	andl	$-8, %ecx
	negl	%ecx
	addl	%r9d, %ecx
	addl	$8, %ecx
	imulq	$954437177, %r9, %rsi           ## imm = 0x38E38E39
	movq	%rsi, %rdi
	shrq	$63, %rdi
	shrq	$32, %rsi
	sarl	%esi
	addl	%edi, %esi
	leal	(%rsi,%rsi,8), %esi
	negl	%esi
	leal	(%r9,%rsi), %r8d
	incl	%r8d
	imulq	$1717986919, %r9, %rsi          ## imm = 0x66666667
	movq	%rsi, %rdi
	shrq	$63, %rdi
	shrq	$32, %rsi
	sarl	%esi
	addl	%edi, %esi
	leal	(%rsi,%rsi,4), %esi
	subl	%esi, %r9d
	cmpl	$2, %eax
	movl	$-1, %esi
	cmovael	%eax, %esi
	movl	(%rdx), %edx
	movq	_zalloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_zfree@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-88(%rbp), %r13
	movq	%r13, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_deflateInit2
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	(%r12), %rsi
	movq	_dictionaryLen@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_deflateSetDictionary
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_dataLen@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_deflateBound
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	addl	$100, %eax
	movslq	%eax, %rsi
	movq	%rsi, (%r15)
	movl	$1, %edi
	callq	_calloc
	movq	%rax, (%r14)
	movl	-64(%rbp), %ecx
	movq	_dictId@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	%rax, -88(%rbp)
	movl	(%r15), %eax
	movl	%eax, -80(%rbp)
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -76(%rbp)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_deflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	leaq	-88(%rbp), %rdi
	callq	_deflateEnd
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_data,8,3                       ## @data
	.comm	_Z_DEFLATED,4,2                 ## @Z_DEFLATED
	.comm	_zalloc,4,2                     ## @zalloc
	.comm	_zfree,4,2                      ## @zfree
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deflateInit"

	.comm	_dictionaryLen,4,2              ## @dictionaryLen
L_.str.1:                               ## @.str.1
	.asciz	"deflateSetDictionary"

	.comm	_dataLen,4,2                    ## @dataLen
	.comm	_dictId,4,2                     ## @dictId
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"deflate dict should report Z_STREAM_END\n"

L_.str.3:                               ## @.str.3
	.asciz	"deflateEnd"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_dict_deflate              ; -- Begin function test_dict_deflate
	.p2align	2
_test_dict_deflate:                     ; @test_dict_deflate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _data@GOTPAGE
Lloh1:
	ldr	x21, [x21, _data@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x8, [x8]
	mov	w9, #41705
	movk	w9, #11915, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #1
	mov	w10, #11
	mul	w9, w9, w10
	mvn	w9, w9
	add	w9, w9, w8
Lloh2:
	adrp	x10, _Z_DEFLATED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _Z_DEFLATED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x10]
	negs	w10, w8
	and	w10, w10, #0x7
	and	w11, w8, #0x7
	csneg	w10, w11, w10, mi
	add	w3, w10, #8
	mov	w10, #36409
	movk	w10, #14563, lsl #16
	mul	x10, x8, x10
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w11, asr #1
	add	w10, w10, w10, lsl #3
	sub	w10, w8, w10
	add	w4, w10, #1
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x10, x8, x10
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w11, asr #1
	add	w10, w10, w10, lsl #2
	sub	w5, w8, w10
Lloh5:
	adrp	x8, _zalloc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _zalloc@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _zfree@GOTPAGE
Lloh9:
	ldr	x10, [x10, _zfree@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, #2
	csinv	w1, w9, wzr, hs
	stp	w10, w8, [sp, #40]
	str	xzr, [sp, #32]
	mov	x0, sp
	bl	_deflateInit2
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CHECK_ERR
	ldr	x1, [x21]
Lloh13:
	adrp	x8, _dictionaryLen@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dictionaryLen@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, sp
	bl	_deflateSetDictionary
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_CHECK_ERR
Lloh18:
	adrp	x22, _dataLen@GOTPAGE
Lloh19:
	ldr	x22, [x22, _dataLen@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, sp
	bl	_deflateBound
	lsl	w8, w0, #1
	add	w8, w8, #100
	sxtw	x1, w8
	str	x1, [x19]
	mov	w0, #1
	bl	_calloc
	str	x0, [x20]
Lloh20:
	adrp	x8, _dictId@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dictId@GOTPAGEOFF]
	ldr	w9, [sp, #24]
Lloh22:
	str	w9, [x8]
	str	x0, [sp]
	ldr	x8, [x19]
	ldr	x9, [x21]
	str	x9, [sp, #16]
	ldr	w9, [x22]
	stp	w8, w9, [sp, #8]
Lloh23:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_deflate
Lloh26:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, sp
	bl	_deflateEnd
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_CHECK_ERR
	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
	add	sp, sp, #96
	ret
LBB0_2:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_data,8,3                       ; @data
	.comm	_Z_DEFLATED,4,2                 ; @Z_DEFLATED
	.comm	_zalloc,4,2                     ; @zalloc
	.comm	_zfree,4,2                      ; @zfree
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deflateInit"

	.comm	_dictionaryLen,4,2              ; @dictionaryLen
l_.str.1:                               ; @.str.1
	.asciz	"deflateSetDictionary"

	.comm	_dataLen,4,2                    ; @dataLen
	.comm	_dictId,4,2                     ; @dictId
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"deflate dict should report Z_STREAM_END\n"

l_.str.3:                               ; @.str.3
	.asciz	"deflateEnd"

.subsections_via_symbols
