	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_sync                      ## -- Begin function test_sync
	.p2align	4, 0x90
_test_sync:                             ## @test_sync
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	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	%rdi, -80(%rbp)
	movl	$2, -72(%rbp)
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_inflateInit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	%r12, -64(%rbp)
	movl	%r15d, -56(%rbp)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_inflate
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	addl	$-2, %ebx
	movl	%ebx, -72(%rbp)
	movq	%r14, %rdi
	callq	_inflateSync
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_inflate
	movq	_Z_DATA_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	leaq	-80(%rbp), %rdi
	callq	_inflateEnd
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.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	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
L_.str.1:                               ## @.str.1
	.asciz	"inflate"

L_.str.2:                               ## @.str.2
	.asciz	"inflateSync"

	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_DATA_ERROR,4,2               ## @Z_DATA_ERROR
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"inflate should report DATA_ERROR\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_sync                      ; -- Begin function test_sync
	.p2align	2
_test_sync:                             ; @test_sync
	.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, x3
	mov	x20, x2
	mov	x21, x1
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]
	str	x0, [sp]
	mov	w8, #2
	str	w8, [sp, #8]
	mov	x0, sp
	bl	_inflateInit
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CHECK_ERR
	str	x20, [sp, #16]
	str	w19, [sp, #24]
Lloh8:
	adrp	x8, _Z_NO_FLUSH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_inflate
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_CHECK_ERR
	sub	w8, w21, #2
	str	w8, [sp, #8]
	mov	x0, sp
	bl	_inflateSync
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_CHECK_ERR
Lloh15:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_inflate
Lloh18:
	adrp	x8, _Z_DATA_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Z_DATA_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, sp
	bl	_inflateEnd
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@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:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
l_.str.1:                               ; @.str.1
	.asciz	"inflate"

l_.str.2:                               ; @.str.2
	.asciz	"inflateSync"

	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_DATA_ERROR,4,2               ; @Z_DATA_ERROR
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"inflate should report DATA_ERROR\n"

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

.subsections_via_symbols
