	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_kfrm
_decode_kfrm:                           ## @decode_kfrm
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	leaq	56(%r12), %r13
	movq	%r13, %rdi
	callq	_bytestream2_tell
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_bytestream2_peek_le32
	cmpl	$101, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_decode_fint
	testl	%eax, %eax
	js	LBB0_20
LBB0_2:
	movq	48(%r12), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_inflateReset
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r14
	movq	%r13, %rdi
	callq	_bytestream2_tell
	movl	%eax, %eax
	addq	%r14, %rax
	movq	%rax, 32(%r12)
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	movl	%eax, 24(%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %r14
	testq	%r14, %r14
	jle	LBB0_19
## %bb.7:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	48(%r12), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movslq	(%rcx), %rcx
	decq	%r14
	imulq	%rcx, %r14
	shlq	$2, %r14
	addq	(%rax), %r14
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %r14
	incl	%r13d
	movslq	(%rbx), %r15
	cmpl	%r15d, %r13d
	jge	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, 16(%r12)
	movl	40(%r12), %eax
	movl	%eax, 8(%r12)
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_inflate
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_11
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_13:
	testl	%r15d, %r15d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_19
## %bb.14:
	movq	(%r12), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movslq	(%rcx), %rcx
	decq	%r15
	imulq	%rcx, %r15
	shlq	$2, %r15
	addq	(%rax), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %r15
	incl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %ebx
	jge	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, 16(%r12)
	movl	40(%r12), %eax
	movl	%eax, 8(%r12)
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_inflate
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:
	movl	%eax, %ecx
	callq	_av_log
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_19:
	movq	%r13, %rdi
	callq	_bytestream2_tell
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	addl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	subl	%eax, %esi
	movq	%r13, %rdi
	callq	_bytestream2_skip
	xorl	%eax, %eax
LBB0_20:
	addq	$40, %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_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_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.1:                               ## @.str.1
	.asciz	"Inflate failed with return code: %d.\n"

	.no_dead_strip	_decode_kfrm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_kfrm
_decode_kfrm:                           ; @decode_kfrm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x25, [x0, #8]
	add	x21, x25, #56
	mov	x0, x21
	bl	_bytestream2_tell
	mov	x22, x0
	mov	x0, x21
	bl	_bytestream2_peek_le32
	cmp	w0, #101
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_decode_fint
	tbnz	w0, #31, LBB0_17
LBB0_2:
	ldr	x8, [x25, #48]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.3:
	add	x23, x25, #8
	mov	x0, x23
	bl	_inflateReset
Lloh0:
	adrp	x26, _Z_OK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.4:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x22, [x24]
	mov	x0, x21
	bl	_bytestream2_tell
	add	x8, x22, w0, uxtw
	str	x8, [x25, #32]
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	str	w0, [x25, #24]
	ldr	w8, [x19]
	subs	w8, w8, #1
	b.lt	LBB0_12
; %bb.5:
	mov	w28, #0
	ldr	x9, [x25, #48]
	ldp	x9, x10, [x9]
	ldr	x10, [x10]
	ldr	w9, [x9]
	mul	w8, w9, w8
	add	x22, x10, w8, sxtw #2
Lloh2:
	adrp	x24, _Z_SYNC_FLUSH@GOTPAGE
Lloh3:
	ldr	x24, [x24, _Z_SYNC_FLUSH@GOTPAGEOFF]
Lloh4:
	adrp	x27, _Z_STREAM_END@GOTPAGE
Lloh5:
	ldr	x27, [x27, _Z_STREAM_END@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x22, [x25, #16]
	ldr	w8, [x25, #40]
	str	w8, [x25, #8]
	ldr	w1, [x24]
	mov	x0, x23
	bl	_inflate
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #48]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	sub	x22, x22, x8, lsl #2
	add	w28, w28, #1
	ldr	w8, [x19]
	cmp	w28, w8
	b.lt	LBB0_6
; %bb.8:
	subs	w8, w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	w28, #0
	ldr	x9, [x25]
	ldp	x9, x10, [x9]
	ldr	x10, [x10]
	ldr	w9, [x9]
	mul	w8, w9, w8
	add	x22, x10, w8, sxtw #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x22, [x25, #16]
	ldr	w8, [x25, #40]
	str	w8, [x25, #8]
	ldr	w1, [x24]
	mov	x0, x23
	bl	_inflate
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	sub	x22, x22, x8, lsl #2
	add	w28, w28, #1
	ldr	w8, [x19]
	cmp	w28, w8
	b.lt	LBB0_10
LBB0_12:
	mov	x0, x21
	bl	_bytestream2_tell
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w8, w20
	sub	w1, w8, w0
	mov	x0, x21
	bl	_bytestream2_skip
	mov	w0, #0
	b	LBB0_17
LBB0_13:
	mov	x3, x0
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
	mov	x0, x19
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	mov	x3, x0
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_15:
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.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_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.1:                               ; @.str.1
	.asciz	"Inflate failed with return code: %d.\n"

	.no_dead_strip	_decode_kfrm
.subsections_via_symbols
