	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_zbuf
_decode_zbuf:                           ## @decode_zbuf
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ff_png_zalloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_ff_png_zfree@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-104(%rbp), %rdi
	callq	_inflateInit
	movq	_Z_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_1
## %bb.2:
	movq	%r15, -104(%rbp)
	subq	%r15, %rbx
	shrq	$2, %rbx
	movl	%ebx, -96(%rbp)
	movq	_AV_BPRINT_SIZE_UNLIMITED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_av_bprint_init
	cmpl	$0, -96(%rbp)
	jle	LBB0_12
## %bb.3:
	leaq	-44(%rbp), %r12
	leaq	-104(%rbp), %rbx
	movq	_Z_STREAM_END@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$2, %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rcx
	callq	_av_bprint_get_buffer
	movl	-44(%rbp), %eax
	cmpl	$1, %eax
	jbe	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx
	movq	%rcx, -88(%rbp)
	decl	%eax
	movl	%eax, -80(%rbp)
	movq	_Z_PARTIAL_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_inflate
	movl	(%r15), %ecx
	cmpl	(%r13), %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdx
	subq	-56(%rbp), %rdx
	addq	%rdx, (%r14)
	cmpl	%ecx, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -96(%rbp)
	jg	LBB0_4
LBB0_12:
	leaq	-104(%rbp), %rdi
	callq	_inflateEnd
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	$0, (%rcx,%rax,8)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_1:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	leaq	-104(%rbp), %rdi
	callq	_inflateEnd
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_av_bprint_finalize
LBB0_13:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_png_zalloc,4,2              ## @ff_png_zalloc
	.comm	_ff_png_zfree,4,2               ## @ff_png_zfree
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ## @AV_BPRINT_SIZE_UNLIMITED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_Z_PARTIAL_FLUSH,4,2            ## @Z_PARTIAL_FLUSH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.no_dead_strip	_decode_zbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_zbuf
_decode_zbuf:                           ; @decode_zbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ff_png_zalloc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_png_zalloc@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ff_png_zfree@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_png_zfree@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	str	xzr, [sp, #48]
	add	x0, sp, #16
	bl	_inflateInit
Lloh6:
	adrp	x22, _Z_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.1:
	str	x21, [sp, #16]
	sub	x8, x20, x21
	lsr	x8, x8, #2
	str	w8, [sp, #24]
Lloh8:
	adrp	x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_BPRINT_SIZE_UNLIMITED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_av_bprint_init
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
Lloh11:
	adrp	x20, _Z_PARTIAL_FLUSH@GOTPAGE
Lloh12:
	ldr	x20, [x20, _Z_PARTIAL_FLUSH@GOTPAGEOFF]
Lloh13:
	adrp	x21, _Z_STREAM_END@GOTPAGE
Lloh14:
	ldr	x21, [x21, _Z_STREAM_END@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	mov	w1, #2
	bl	_av_bprint_get_buffer
	ldr	w8, [sp, #4]
	subs	w8, w8, #1
	b.ls	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #8]
	str	x9, [sp, #32]
	str	w8, [sp, #40]
	ldr	w1, [x20]
	add	x0, sp, #16
	bl	_inflate
	ldr	w9, [x22]
	ldr	w8, [x21]
	cmp	w0, w9
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #32]
	ldr	x10, [sp, #8]
	ldr	x11, [x19]
	sub	x9, x9, x10
	add	x9, x9, x11
	str	x9, [x19]
	ldr	w9, [sp, #24]
	cmp	w0, w8
	ccmp	w9, #0, #4, ne
	b.gt	LBB0_3
LBB0_6:
	add	x0, sp, #16
	bl	_inflateEnd
	mov	w20, #0
	ldp	x9, x8, [x19]
	str	xzr, [x8, x9, lsl #3]
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
LBB0_10:
	add	x0, sp, #16
	bl	_inflateEnd
	mov	x0, x19
	mov	x1, #0
	bl	_av_bprint_finalize
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_png_zalloc,4,2              ; @ff_png_zalloc
	.comm	_ff_png_zfree,4,2               ; @ff_png_zfree
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_AV_BPRINT_SIZE_UNLIMITED,4,2   ; @AV_BPRINT_SIZE_UNLIMITED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_Z_PARTIAL_FLUSH,4,2            ; @Z_PARTIAL_FLUSH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.no_dead_strip	_decode_zbuf
.subsections_via_symbols
