	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flashsv2_prime
_flashsv2_prime:                        ## @flashsv2_prime
	.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
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	%rsi, 24(%rdi)
	movl	%edx, 8(%rdi)
	movl	(%rdi), %eax
	movl	32(%rdi), %ecx
	movl	%ecx, 16(%rdi)
	leal	(%rax,%rax,2), %eax
	movl	%eax, 12(%rdi)
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_inflate
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_deflateInit
	movl	%eax, %ecx
	movq	_Z_OK@GOTPCREL(%rip), %r13
	movl	$-1, %eax
	cmpl	(%r13), %ecx
	jne	LBB0_7
## %bb.2:
	movl	32(%rbx), %eax
	movl	%eax, -72(%rbp)
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	subl	12(%rbx), %eax
	movl	%eax, -88(%rbp)
	movq	40(%rbx), %rax
	movq	%rax, -80(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -84(%rbp)
	movl	(%r12), %esi
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	callq	_deflate
	movq	%r15, %rdi
	callq	_deflateEnd
	movq	%r14, %rdi
	callq	_inflateReset
	cmpl	(%r13), %eax
	jne	LBB0_5
## %bb.3:
	movq	40(%rbx), %rax
	movq	%rax, 24(%rbx)
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	subl	-84(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	movl	32(%rbx), %ecx
	movl	%ecx, 16(%rbx)
	leal	(%rax,%rax,2), %eax
	movl	%eax, 12(%rbx)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_inflate
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movl	48(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.no_dead_strip	_flashsv2_prime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flashsv2_prime
_flashsv2_prime:                        ; @flashsv2_prime
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x20, x0
	str	w2, [x20, #8]!
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	str	x1, [x0, #24]
	ldr	w8, [x0, #32]
	ldr	w9, [x0]
	add	w9, w9, w9, lsl #1
	stp	w9, w8, [x0, #12]
Lloh0:
	adrp	x21, _Z_SYNC_FLUSH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Z_SYNC_FLUSH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_inflate
	mov	x0, sp
	mov	w1, #0
	bl	_deflateInit
Lloh2:
	adrp	x22, _Z_OK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #32]
	str	w8, [sp, #16]
	ldp	w8, w9, [x19]
	add	w8, w8, w8, lsl #1
	ldr	w10, [x19, #12]
	sub	w8, w8, w10
	ldr	x10, [x19, #40]
	str	x10, [sp, #8]
	stp	w8, w9, [sp]
	ldr	w1, [x21]
	mov	x0, sp
	bl	_deflate
	mov	x0, sp
	bl	_deflateEnd
	mov	x0, x20
	bl	_inflateReset
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19, #40]
	str	x8, [x19, #24]
	ldr	w8, [sp, #4]
	ldp	w10, w9, [x19]
	sub	w8, w9, w8
	ldr	w11, [x19, #32]
	add	w9, w10, w10, lsl #1
	str	w8, [x19, #8]
	stp	w9, w11, [x19, #12]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_inflate
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	b	LBB0_8
LBB0_6:
	mov	x3, x0
	ldr	w0, [x19, #48]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.no_dead_strip	_flashsv2_prime
.subsections_via_symbols
