	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decompress_chunks_thread
_decompress_chunks_thread:              ## @decompress_chunks_thread
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	24(%r15), %r13
	movslq	%edx, %rbx
	shlq	$5, %rbx
	movslq	(%r13,%rbx), %r12
	shlq	$2, %r12
	addq	16(%r15), %r12
	movq	24(%r13,%rbx), %rsi
	addq	8(%r15), %rsi
	movl	16(%r13,%rbx), %edx
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_init
	movq	8(%r13,%rbx), %rax
	movq	_HAP_COMP_SNAPPY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rsi
	callq	_ff_snappy_uncompress
	testl	%eax, %eax
	js	LBB0_2
## %bb.5:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_HAP_COMP_NONE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	leaq	(%rbx,%r13), %rax
	addq	$16, %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	callq	_bytestream2_get_buffer
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAP_COMP_SNAPPY,8,3            ## @HAP_COMP_SNAPPY
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Snappy uncompress error\n"

	.comm	_HAP_COMP_NONE,8,3              ## @HAP_COMP_NONE
	.no_dead_strip	_decompress_chunks_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decompress_chunks_thread
_decompress_chunks_thread:              ; @decompress_chunks_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x21, #24]
	sxtw	x9, w2
	add	x23, x8, x9, lsl #5
	ldrsw	x8, [x23]
	ldp	x10, x9, [x21, #8]
	add	x20, x9, x8, lsl #2
	ldr	x8, [x23, #24]
	add	x1, x8, x10
	mov	x22, x23
	ldr	w2, [x22, #16]!
	add	x0, sp, #12
	bl	_bytestream2_init
	ldr	x8, [x23, #8]
Lloh0:
	adrp	x9, _HAP_COMP_SNAPPY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HAP_COMP_SNAPPY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21]
	str	w8, [sp, #8]
	add	x0, sp, #12
	add	x2, sp, #8
	mov	x1, x20
	bl	_ff_snappy_uncompress
	tbz	w0, #31, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x9, _HAP_COMP_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HAP_COMP_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w2, [x22]
	add	x0, sp, #12
	mov	x1, x20
	bl	_bytestream2_get_buffer
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HAP_COMP_SNAPPY,8,3            ; @HAP_COMP_SNAPPY
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Snappy uncompress error\n"

	.comm	_HAP_COMP_NONE,8,3              ; @HAP_COMP_NONE
	.no_dead_strip	_decompress_chunks_thread
.subsections_via_symbols
