	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvdsub_parse_extradata
_dvdsub_parse_extradata:                ## @dvdsub_parse_extradata
	.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	$1, %r13d
	cmpl	$0, 4(%rdi)
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.2:
	movq	8(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	incl	%edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	callq	_memcpy
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rax
	movb	$0, (%r15,%rax)
	movl	$1, %r13d
	leaq	L_.str(%rip), %rbx
	leaq	L_.str.1(%rip), %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	8(%r15), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_parse_palette
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %rax
	addq	%rax, %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strspn
	cltq
	addq	%rax, %r15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strcspn
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%r15)
	je	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	5(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_set_dimensions
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_8
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
LBB0_13:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n\r"

L_.str.1:                               ## @.str.1
	.asciz	"palette:"

L_.str.2:                               ## @.str.2
	.asciz	"size:"

L_.str.3:                               ## @.str.3
	.asciz	"%dx%d"

	.no_dead_strip	_dvdsub_parse_extradata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvdsub_parse_extradata
_dvdsub_parse_extradata:                ; @dvdsub_parse_extradata
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_13
; %bb.2:
	ldr	x21, [x19, #8]
	add	w0, w8, #1
	bl	_av_malloc
	cbz	x0, LBB0_15
; %bb.3:
	mov	x20, x0
	ldp	w2, w1, [x19]
	bl	_memcpy
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	ldrsw	x8, [x19]
	strb	wzr, [x20, x8]
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	mov	w22, #1
Lloh4:
	adrp	x25, l_.str.2@PAGE
Lloh5:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh6:
	adrp	x26, l_.str.3@PAGE
Lloh7:
	add	x26, x26, l_.str.3@PAGEOFF
	mov	x27, x20
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x27, #8
	mov	x0, x21
	bl	_parse_palette
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, w28, sxtw
	mov	x0, x27
	mov	x1, x23
	bl	_strspn
	add	x27, x27, w0, sxtw
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	x1, x23
	bl	_strcspn
	mov	x28, x0
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x27]
	cbz	w8, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x1, x27
	mov	w2, #8
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x27
	mov	w2, #5
	bl	_strncmp
	cbnz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x27, #5
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x1, x26
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_ff_set_dimensions
	mov	x22, x0
	tbz	w0, #31, LBB0_5
LBB0_12:
	mov	x0, x20
	bl	_av_free
	b	LBB0_14
LBB0_13:
	mov	w22, #1
LBB0_14:
	mov	x0, x22
	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
LBB0_15:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n\r"

l_.str.1:                               ; @.str.1
	.asciz	"palette:"

l_.str.2:                               ; @.str.2
	.asciz	"size:"

l_.str.3:                               ; @.str.3
	.asciz	"%dx%d"

	.no_dead_strip	_dvdsub_parse_extradata
.subsections_via_symbols
