	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_large_deflate             ## -- Begin function test_large_deflate
	.p2align	4, 0x90
_test_large_deflate:                    ## @test_large_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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	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)
	movq	_Z_BEST_COMPRESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %r13
	movq	%r13, %rdi
	callq	_deflateInit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	%rbx, -88(%rbp)
	movl	%r12d, -80(%rbp)
	movq	%r15, -72(%rbp)
	movl	%r14d, -64(%rbp)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_deflate
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	cmpl	$0, -64(%rbp)
	jne	LBB0_1
## %bb.3:
	movq	_Z_NO_COMPRESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Z_DEFAULT_STRATEGY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	callq	_deflateParams
	movq	%rbx, -72(%rbp)
	movl	-88(%rbp), %eax
	subl	%ebx, %eax
	movq	_diff@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, -64(%rbp)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_deflate
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_Z_BEST_COMPRESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Z_FILTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_deflateParams
	movq	%r15, -72(%rbp)
	movl	%r14d, -64(%rbp)
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_deflate
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_deflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	leaq	-88(%rbp), %rdi
	callq	_deflateEnd
	leaq	L_.str.6(%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_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_zalloc,4,2                     ## @zalloc
	.comm	_zfree,4,2                      ## @zfree
	.comm	_Z_BEST_COMPRESSION,4,2         ## @Z_BEST_COMPRESSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deflateInit"

	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
L_.str.1:                               ## @.str.1
	.asciz	"deflate large 1"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"deflate not greedy\n"

	.comm	_Z_NO_COMPRESSION,4,2           ## @Z_NO_COMPRESSION
	.comm	_Z_DEFAULT_STRATEGY,4,2         ## @Z_DEFAULT_STRATEGY
	.comm	_diff,4,2                       ## @diff
L_.str.3:                               ## @.str.3
	.asciz	"deflate large 2"

	.comm	_Z_FILTERED,4,2                 ## @Z_FILTERED
L_.str.4:                               ## @.str.4
	.asciz	"deflate large 3"

	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.5:                               ## @.str.5
	.asciz	"deflate large should report Z_STREAM_END\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_large_deflate             ; -- Begin function test_large_deflate
	.p2align	2
_test_large_deflate:                    ; @test_large_deflate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
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, #40]
	str	xzr, [sp, #32]
Lloh6:
	adrp	x23, _Z_BEST_COMPRESSION@GOTPAGE
Lloh7:
	ldr	x23, [x23, _Z_BEST_COMPRESSION@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, sp
	bl	_deflateInit
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CHECK_ERR
	str	x21, [sp]
	str	w22, [sp, #8]
	str	x20, [sp, #16]
	str	w19, [sp, #24]
Lloh10:
	adrp	x22, _Z_NO_FLUSH@GOTPAGE
Lloh11:
	ldr	x22, [x22, _Z_NO_FLUSH@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, sp
	bl	_deflate
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_CHECK_ERR
	ldr	w8, [sp, #24]
	cbnz	w8, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _Z_NO_COMPRESSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Z_NO_COMPRESSION@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _Z_DEFAULT_STRATEGY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Z_DEFAULT_STRATEGY@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, sp
	bl	_deflateParams
	str	x21, [sp, #16]
	ldr	w8, [sp]
	sub	w8, w8, w21
Lloh20:
	adrp	x9, _diff@GOTPAGE
Lloh21:
	ldr	x9, [x9, _diff@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	str	w8, [sp, #24]
	ldr	w1, [x22]
	mov	x0, sp
	bl	_deflate
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_CHECK_ERR
	ldr	w1, [x23]
Lloh25:
	adrp	x8, _Z_FILTERED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Z_FILTERED@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, sp
	bl	_deflateParams
	str	x20, [sp, #16]
	str	w19, [sp, #24]
	ldr	w1, [x22]
	mov	x0, sp
	bl	_deflate
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_CHECK_ERR
Lloh30:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_deflate
Lloh33:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh34:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, sp
	bl	_deflateEnd
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_CHECK_ERR
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
Lloh38:
	adrp	x8, _stderr@GOTPAGE
Lloh39:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_5:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_zalloc,4,2                     ; @zalloc
	.comm	_zfree,4,2                      ; @zfree
	.comm	_Z_BEST_COMPRESSION,4,2         ; @Z_BEST_COMPRESSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deflateInit"

	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
l_.str.1:                               ; @.str.1
	.asciz	"deflate large 1"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"deflate not greedy\n"

	.comm	_Z_NO_COMPRESSION,4,2           ; @Z_NO_COMPRESSION
	.comm	_Z_DEFAULT_STRATEGY,4,2         ; @Z_DEFAULT_STRATEGY
	.comm	_diff,4,2                       ; @diff
l_.str.3:                               ; @.str.3
	.asciz	"deflate large 2"

	.comm	_Z_FILTERED,4,2                 ; @Z_FILTERED
l_.str.4:                               ; @.str.4
	.asciz	"deflate large 3"

	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.5:                               ; @.str.5
	.asciz	"deflate large should report Z_STREAM_END\n"

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

.subsections_via_symbols
