	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_deflate                   ## -- Begin function test_deflate
	.p2align	4, 0x90
_test_deflate:                          ## @test_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, %r12
	movq	%rdi, %r14
	movq	_dataLen@GOTPCREL(%rip), %rax
	movq	(%rax), %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_DEFAULT_COMPRESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdi
	callq	_deflateInit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%r14, -96(%rbp)
	cmpq	%rbx, -88(%rbp)
	je	LBB0_4
## %bb.1:
	cmpq	%r12, -80(%rbp)
	jae	LBB0_4
## %bb.2:
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %r13
	leaq	-96(%rbp), %r14
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -72(%rbp)
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_deflate
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_CHECK_ERR
	cmpq	%rbx, -88(%rbp)
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, -80(%rbp)
	jb	LBB0_3
LBB0_4:
	movl	$1, -68(%rbp)
	movq	_Z_FINISH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-96(%rbp), %rdi
	callq	_deflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %r14
	leaq	-96(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_CHECK_ERR
	movl	$1, -68(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_deflate
	cmpl	(%r12), %eax
	jne	LBB0_6
LBB0_7:
	leaq	-96(%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
	.cfi_endproc
                                        ## -- End function
	.comm	_dataLen,8,3                    ## @dataLen
	.comm	_zalloc,4,2                     ## @zalloc
	.comm	_zfree,4,2                      ## @zfree
	.comm	_Z_DEFAULT_COMPRESSION,4,2      ## @Z_DEFAULT_COMPRESSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deflateInit"

	.comm	_data,8,3                       ## @data
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
L_.str.1:                               ## @.str.1
	.asciz	"deflate small 1"

	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.2:                               ## @.str.2
	.asciz	"deflate small 2"

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_deflate                   ; -- Begin function test_deflate
	.p2align	2
_test_deflate:                          ; @test_deflate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _dataLen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dataLen@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _zalloc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zalloc@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _zfree@GOTPAGE
Lloh7:
	ldr	x9, [x9, _zfree@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	str	xzr, [sp, #48]
Lloh9:
	adrp	x8, _Z_DEFAULT_COMPRESSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Z_DEFAULT_COMPRESSION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_deflateInit
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CHECK_ERR
Lloh14:
	adrp	x8, _data@GOTPAGE
Lloh15:
	ldr	x8, [x8, _data@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	x20, [sp, #8]
	ldp	x8, x9, [sp, #16]
	cmp	x8, x21
	ccmp	x9, x19, #2, ne
	b.hs	LBB0_3
; %bb.1:
	movi.2s	v8, #1
Lloh17:
	adrp	x22, _Z_NO_FLUSH@GOTPAGE
Lloh18:
	ldr	x22, [x22, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh19:
	adrp	x20, l_.str.1@PAGE
Lloh20:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	d8, [sp, #32]
	ldr	w1, [x22]
	add	x0, sp, #8
	bl	_deflate
	mov	x1, x20
	bl	_CHECK_ERR
	ldp	x8, x9, [sp, #16]
	cmp	x8, x21
	ccmp	x9, x19, #2, ne
	b.lo	LBB0_2
LBB0_3:
	mov	w20, #1
	str	w20, [sp, #36]
Lloh21:
	adrp	x21, _Z_FINISH@GOTPAGE
Lloh22:
	ldr	x21, [x21, _Z_FINISH@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_deflate
Lloh23:
	adrp	x22, _Z_STREAM_END@GOTPAGE
Lloh24:
	ldr	x22, [x22, _Z_STREAM_END@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.4:
Lloh25:
	adrp	x19, l_.str.2@PAGE
Lloh26:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	bl	_CHECK_ERR
	str	w20, [sp, #36]
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_deflate
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_6:
	add	x0, sp, #8
	bl	_deflateEnd
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_CHECK_ERR
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_dataLen,8,3                    ; @dataLen
	.comm	_zalloc,4,2                     ; @zalloc
	.comm	_zfree,4,2                      ; @zfree
	.comm	_Z_DEFAULT_COMPRESSION,4,2      ; @Z_DEFAULT_COMPRESSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deflateInit"

	.comm	_data,8,3                       ; @data
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
l_.str.1:                               ; @.str.1
	.asciz	"deflate small 1"

	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.2:                               ; @.str.2
	.asciz	"deflate small 2"

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

.subsections_via_symbols
