	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_flush                     ## -- Begin function test_flush
	.p2align	4, 0x90
_test_flush:                            ## @test_flush
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_dataLen@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_zalloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_zfree@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	_Z_DEFAULT_COMPRESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_deflateInit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r12, -80(%rbp)
	movl	$3, -72(%rbp)
	movl	(%r14), %eax
	movl	%eax, -68(%rbp)
	movq	_Z_FULL_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_deflate
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	incb	3(%r12)
	addl	$-3, %ebx
	movl	%ebx, -72(%rbp)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_deflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
LBB0_2:
	leaq	-80(%rbp), %rdi
	callq	_deflateEnd
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	-64(%rbp), %rax
	movq	%rax, (%r14)
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dataLen,4,2                    ## @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_FULL_FLUSH,4,2               ## @Z_FULL_FLUSH
L_.str.1:                               ## @.str.1
	.asciz	"deflate flush 1"

	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.2:                               ## @.str.2
	.asciz	"deflate flush 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_flush                     ; -- Begin function test_flush
	.p2align	2
_test_flush:                            ; @test_flush
	.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	x8, _dataLen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dataLen@GOTPAGEOFF]
Lloh2:
	ldr	w21, [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, #40]
	str	xzr, [sp, #32]
Lloh9:
	adrp	x8, _Z_DEFAULT_COMPRESSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Z_DEFAULT_COMPRESSION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, sp
	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, #24]
	str	x20, [sp]
	mov	w8, #3
	ldr	x9, [x19]
	stp	w8, w9, [sp, #8]
Lloh17:
	adrp	x8, _Z_FULL_FLUSH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Z_FULL_FLUSH@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_deflate
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_CHECK_ERR
	ldrb	w8, [x20, #3]
	add	w8, w8, #1
	strb	w8, [x20, #3]
	sub	w8, w21, #3
	str	w8, [sp, #8]
Lloh22:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_deflate
Lloh25:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.1:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_CHECK_ERR
LBB0_2:
	mov	x0, sp
	bl	_deflateEnd
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_CHECK_ERR
	ldr	x8, [sp, #16]
	str	x8, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_dataLen,4,2                    ; @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_FULL_FLUSH,4,2               ; @Z_FULL_FLUSH
l_.str.1:                               ; @.str.1
	.asciz	"deflate flush 1"

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

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

.subsections_via_symbols
