	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_dict_inflate              ## -- Begin function test_dict_inflate
	.p2align	4, 0x90
_test_dict_inflate:                     ## @test_dict_inflate
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_zalloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_zfree@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	%rdi, -104(%rbp)
	movl	%esi, -96(%rbp)
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	callq	_inflateInit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_dataLen@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -88(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -80(%rbp)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_inflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_1
LBB0_8:
	leaq	-104(%rbp), %rdi
	callq	_inflateEnd
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_dataLen@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	callq	_free
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_Z_NEED_DICT@GOTPCREL(%rip), %r14
	leaq	-104(%rbp), %rbx
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_CHECK_ERR
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_inflate
	cmpl	(%r12), %eax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r14), %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax
	movq	_dictId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_dictionaryLen@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_inflateSetDictionary
	jmp	LBB0_7
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_zalloc,4,2                     ## @zalloc
	.comm	_zfree,4,2                      ## @zfree
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inflateInit"

	.comm	_dataLen,8,3                    ## @dataLen
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_Z_NEED_DICT,4,2                ## @Z_NEED_DICT
	.comm	_dictId,8,3                     ## @dictId
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"unexpected dictionary"

	.comm	_data,8,3                       ## @data
	.comm	_dictionaryLen,4,2              ## @dictionaryLen
L_.str.2:                               ## @.str.2
	.asciz	"inflate with dict"

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

L_.str.4:                               ## @.str.4
	.asciz	"bad inflate with dict\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_dict_inflate              ; -- Begin function test_dict_inflate
	.p2align	2
_test_dict_inflate:                     ; @test_dict_inflate
	.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
Lloh0:
	adrp	x8, _zalloc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zalloc@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _zfree@GOTPAGE
Lloh4:
	ldr	x9, [x9, _zfree@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	str	xzr, [sp, #48]
	str	x0, [sp, #8]
	str	w1, [sp, #16]
	add	x0, sp, #8
	bl	_inflateInit
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CHECK_ERR
Lloh8:
	adrp	x21, _dataLen@GOTPAGE
Lloh9:
	ldr	x21, [x21, _dataLen@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	w0, #1
	bl	_calloc
	mov	x19, x0
	str	x0, [sp, #24]
	ldr	x8, [x21]
	str	w8, [sp, #32]
Lloh10:
	adrp	x23, _Z_NO_FLUSH@GOTPAGE
Lloh11:
	ldr	x23, [x23, _Z_NO_FLUSH@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x0, sp, #8
	bl	_inflate
Lloh12:
	adrp	x24, _Z_STREAM_END@GOTPAGE
Lloh13:
	ldr	x24, [x24, _Z_STREAM_END@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh14:
	adrp	x22, _data@GOTPAGE
Lloh15:
	ldr	x22, [x22, _data@GOTPAGEOFF]
	cmp	w0, w8
	b.ne	LBB0_3
LBB0_1:
	add	x0, sp, #8
	bl	_inflateEnd
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_CHECK_ERR
	ldr	x1, [x22]
	ldr	x2, [x21]
	mov	x0, x19
	bl	_memcmp
	cbnz	x0, LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_free
	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
LBB0_3:
Lloh18:
	adrp	x25, _Z_NEED_DICT@GOTPAGE
Lloh19:
	ldr	x25, [x25, _Z_NEED_DICT@GOTPAGEOFF]
Lloh20:
	adrp	x26, _dictId@GOTPAGE
Lloh21:
	ldr	x26, [x26, _dictId@GOTPAGEOFF]
Lloh22:
	adrp	x20, l_.str.2@PAGE
Lloh23:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh24:
	adrp	x27, _dictionaryLen@GOTPAGE
Lloh25:
	ldr	x27, [x27, _dictionaryLen@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	bl	_CHECK_ERR
	ldr	w1, [x23]
	add	x0, sp, #8
	bl	_inflate
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #40]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x22]
	ldr	w2, [x27]
	add	x0, sp, #8
	bl	_inflateSetDictionary
	b	LBB0_4
LBB0_8:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_10:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_zalloc,4,2                     ; @zalloc
	.comm	_zfree,4,2                      ; @zfree
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inflateInit"

	.comm	_dataLen,8,3                    ; @dataLen
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_Z_NEED_DICT,4,2                ; @Z_NEED_DICT
	.comm	_dictId,8,3                     ; @dictId
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"unexpected dictionary"

	.comm	_data,8,3                       ; @data
	.comm	_dictionaryLen,4,2              ; @dictionaryLen
l_.str.2:                               ; @.str.2
	.asciz	"inflate with dict"

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

l_.str.4:                               ; @.str.4
	.asciz	"bad inflate with dict\n"

.subsections_via_symbols
