	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_chunk_headers
_parse_chunk_headers:                   ## @parse_chunk_headers
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%esi, %edi
	movl	$24, %esi
	callq	_av_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.2:
	movl	%r15d, %eax
	addq	$32, %r12
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	shll	$12, %eax
	movl	-28(%r12), %ecx
	movl	-24(%r12), %edx
	shll	$4, %ecx
	orl	%eax, %ecx
	sarl	$4, %edx
	orl	%ecx, %edx
	movl	%edx, 16(%r14,%rbx)
	movq	%r12, %rdi
	callq	_AV_RB64
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 20(%r14,%rbx)
	addq	$24, %rbx
	addq	$64, %r12
	cmpq	%rbx, %r15
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-20(%r12), %eax
	movl	%eax, (%r14,%rbx)
	movl	-24(%r12), %eax
	andl	$15, %eax
	movl	%eax, 4(%r14,%rbx)
	movl	-32(%r12), %eax
	testb	$-128, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	shll	$4, %eax
	movzbl	%al, %eax
	movl	-28(%r12), %ecx
	movl	-24(%r12), %edx
	movl	%ecx, %esi
	shrl	$4, %esi
	andl	$15, %esi
	orl	%eax, %esi
	shll	$4, %ecx
	movzbl	%cl, %eax
	shrl	$4, %edx
	andl	$15, %edx
	orl	%eax, %edx
	movq	8(%r14,%rbx), %rax
	movl	%esi, (%rax)
	movl	%edx, 4(%rax)
	movl	$0, 16(%r14,%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_parse_chunk_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_chunk_headers
_parse_chunk_headers:                   ; @parse_chunk_headers
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #24
	bl	_av_calloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w21, w21
	add	x20, x20, #32
	add	x22, x19, #16
	movi.2s	v8, #240
	movi.2s	v9, #15
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w9, w10, [x20, #-28]
	lsl	w9, w9, #4
	orr	w8, w9, w8, lsl #12
	orr	w8, w8, w10, asr #4
	str	w8, [x22]
	mov	x0, x20
	bl	_AV_RB64
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w0, [x22, #4]
	add	x20, x20, #64
	add	x22, x22, #24
	subs	x21, x21, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x20, #-20]
	stur	w8, [x22, #-16]
	ldur	w8, [x20, #-24]
	and	w8, w8, #0xf
	stur	w8, [x22, #-12]
	ldur	w8, [x20, #-32]
	tbz	w8, #7, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	ldur	x9, [x22, #-8]
	ldur	d0, [x20, #-28]
	fmov	s1, w8
	zip1.2s	v1, v1, v0
	shl.2s	v1, v1, #4
	and.8b	v1, v1, v8
	ushr.2s	v0, v0, #4
	and.8b	v0, v0, v9
	orr.8b	v0, v0, v1
	str	d0, [x9]
	str	wzr, [x22]
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_parse_chunk_headers
.subsections_via_symbols
