	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_large_inflate             ## -- Begin function test_large_inflate
	.p2align	4, 0x90
_test_large_inflate:                    ## @test_large_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	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	%rdi, -96(%rbp)
	movl	%esi, -88(%rbp)
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_inflateInit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	%r14, -80(%rbp)
	movl	%ebx, -72(%rbp)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_inflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %r15
	leaq	-96(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_CHECK_ERR
	movq	%r14, -80(%rbp)
	movl	%ebx, -72(%rbp)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_inflate
	cmpl	(%r13), %eax
	jne	LBB0_2
LBB0_3:
	leaq	-96(%rbp), %rdi
	callq	_inflateEnd
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_CHECK_ERR
	movq	-64(%rbp), %rdx
	addq	%rbx, %rbx
	movq	_diff@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	cmpq	%rbx, %rdx
	jne	LBB0_5
## %bb.4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	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
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.1:                               ## @.str.1
	.asciz	"large inflate"

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

	.comm	_diff,8,3                       ## @diff
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"bad large inflate: %zu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_large_inflate             ; -- Begin function test_large_inflate
	.p2align	2
_test_large_inflate:                    ; @test_large_inflate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
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
	str	x20, [sp, #24]
	str	w19, [sp, #32]
Lloh8:
	adrp	x22, _Z_NO_FLUSH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _Z_NO_FLUSH@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x0, sp, #8
	bl	_inflate
Lloh10:
	adrp	x23, _Z_STREAM_END@GOTPAGE
Lloh11:
	ldr	x23, [x23, _Z_STREAM_END@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.1:
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_CHECK_ERR
	str	x20, [sp, #24]
	str	w19, [sp, #32]
	ldr	w1, [x22]
	add	x0, sp, #8
	bl	_inflate
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_3:
	add	x0, sp, #8
	bl	_inflateEnd
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_CHECK_ERR
	ldr	x2, [sp, #40]
Lloh16:
	adrp	x8, _diff@GOTPAGE
Lloh17:
	ldr	x8, [x8, _diff@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x8, x8, x19, lsl #1
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.4:
	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	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.1:                               ; @.str.1
	.asciz	"large inflate"

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

	.comm	_diff,8,3                       ; @diff
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"bad large inflate: %zu\n"

.subsections_via_symbols
