	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_id3v2_parse_chapters        ## -- Begin function ff_id3v2_parse_chapters
	.p2align	4, 0x90
_ff_id3v2_parse_chapters:               ## @ff_id3v2_parse_chapters
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	movq	(%rsi), %r14
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_15
## %bb.1:
	leaq	L_.str(%rip), %rbx
	leaq	-48(%rbp), %r12
	leaq	-52(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_av_dynarray_add_nofree
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_15
LBB0_5:
	movl	-52(%rbp), %r9d
	cmpl	$2, %r9d
	jl	LBB0_10
## %bb.6:
	movq	%r9, %r8
	shrq	%r8
	cmpl	$1, %r8d
	jne	LBB0_16
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_16:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	leal	-2(%r9), %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	1(%rdi), %ebx
	movq	-48(%rbp), %rdx
	movslq	%ebx, %rbx
	movq	(%rdx,%rbx,8), %rax
	movq	(%rdx,%rcx,8), %rsi
	movq	%rsi, (%rdx,%rbx,8)
	movq	-48(%rbp), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	-48(%rbp), %rax
	movslq	%edi, %rdi
	movq	(%rax,%rdi,8), %rdx
	movq	8(%rax,%rcx,8), %rsi
	movq	%rsi, (%rax,%rdi,8)
	movq	-48(%rbp), %rax
	movq	%rdx, 8(%rax,%rcx,8)
	addq	$2, %rcx
	addl	$-2, %edi
	cmpq	%rcx, %r10
	jne	LBB0_17
LBB0_8:
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	movl	%ecx, %edx
	notl	%edx
	addl	%r9d, %edx
	movq	-48(%rbp), %rsi
	movslq	%edx, %rdx
	movq	(%rsi,%rdx,8), %rdi
	movq	(%rsi,%rcx,8), %rbx
	movq	%rbx, (%rsi,%rdx,8)
	movq	-48(%rbp), %rdx
	movq	%rdi, (%rdx,%rcx,8)
LBB0_10:
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	movabsq	$4294967296001, %r12            ## imm = 0x3E800000001
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	-52(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax,%rbx,8), %r14
	movl	12(%r14), %ecx
	movl	4(%r14), %r9d
	movl	8(%r14), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_avpriv_new_chapter
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r14), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_av_dict_copy
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_14
LBB0_15:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CHAP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_id3v2_parse_chapters        ; -- Begin function ff_id3v2_parse_chapters
	.p2align	2
_ff_id3v2_parse_chapters:               ; @ff_id3v2_parse_chapters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldr	x22, [x1]
	cbz	x22, LBB0_13
; %bb.1:
	mov	x19, x0
	mov	w20, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x22]
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_av_dynarray_add_nofree
	mov	x20, x0
	tbz	w0, #31, LBB0_2
	b	LBB0_14
LBB0_5:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.le	LBB0_8
; %bb.6:
	mov	x9, #0
	lsl	x10, x8, #2
	and	x10, x10, #0x3fffffff8
	sub	w11, w8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [sp, #8]
	sbfiz	x13, x11, #3, #32
	ldr	x14, [x12, x13]
	ldr	x15, [x12, x9]
	str	x15, [x12, x13]
	ldr	x12, [sp, #8]
	str	x14, [x12, x9]
	sub	w11, w11, #1
	add	x9, x9, #8
	cmp	x10, x9
	b.ne	LBB0_7
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [sp, #4]
	cmp	x21, x8
	b.ge	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x22, [x8, x21, lsl #3]
	ldp	w4, w3, [x22, #8]
	ldr	w5, [x22, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #1
	movk	x2, #1000, lsl #32
	bl	_avpriv_new_chapter
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x22]
	mov	w2, #0
	bl	_av_dict_copy
	mov	x20, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CHAP"

.subsections_via_symbols
