	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_parse_vobsub_extradata_mkv
_ffmpeg_parse_vobsub_extradata_mkv:     ## @ffmpeg_parse_vobsub_extradata_mkv
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	incl	%edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%rax, %rdi
	callq	_memcpy
	movslq	(%r15), %rax
	movb	$0, (%rbx,%rax)
	leaq	L_.str(%rip), %rsi
	leaq	-136(%rbp), %rdx
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strtok_r
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	leaq	4(%r14), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	leaq	-136(%rbp), %rdx
	callq	_strtok_r
	movq	%rax, %r15
	movl	%r12d, %r13d
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r12d
	testl	%ebx, %ebx
	movl	$1, %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	je	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-112(%rbp), %rdx
	leaq	-108(%rbp), %rcx
	leaq	-104(%rbp), %r8
	leaq	-100(%rbp), %r9
	xorl	%eax, %eax
	leaq	-52(%rbp), %rbx
	pushq	%rbx
	leaq	-56(%rbp), %rbx
	pushq	%rbx
	leaq	-60(%rbp), %rbx
	pushq	%rbx
	leaq	-64(%rbp), %rbx
	pushq	%rbx
	leaq	-68(%rbp), %rbx
	pushq	%rbx
	leaq	-72(%rbp), %rbx
	pushq	%rbx
	leaq	-76(%rbp), %rbx
	pushq	%rbx
	leaq	-80(%rbp), %rbx
	pushq	%rbx
	leaq	-84(%rbp), %rbx
	pushq	%rbx
	leaq	-88(%rbp), %rbx
	pushq	%rbx
	leaq	-92(%rbp), %rbx
	pushq	%rbx
	leaq	-96(%rbp), %rbx
	pushq	%rbx
	callq	_sscanf
	addq	$96, %rsp
	xorl	%ebx, %ebx
	cmpl	$16, %eax
	sete	%bl
	testl	%r13d, %r13d
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sscanf
	xorl	%r12d, %r12d
	cmpl	$2, %eax
	sete	%r12b
	testl	%ebx, %ebx
	je	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.10:
	movl	$1, %ebx
LBB0_11:
	cmpl	$0, (%r14)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	je	LBB0_15
LBB0_14:
	cmpl	$0, 4(%r14)
	jne	LBB0_16
LBB0_15:
	movabsq	$2061584302800, %rax            ## imm = 0x1E0000002D0
	movq	%rax, (%r14)
LBB0_16:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:
	movl	-112(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	movl	-108(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	-104(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 8(%rcx)
	movl	-100(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 12(%rcx)
	movl	-96(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 16(%rcx)
	movl	-92(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 20(%rcx)
	movl	-88(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 24(%rcx)
	movl	-84(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 28(%rcx)
	movl	-80(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 32(%rcx)
	movl	-76(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 36(%rcx)
	movl	-72(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 40(%rcx)
	movl	-68(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 44(%rcx)
	movl	-64(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 48(%rcx)
	movl	-60(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 52(%rcx)
	movl	-56(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 56(%rcx)
	movl	-52(%rbp), %edi
	callq	_hb_rgb2yuv
	movq	16(%r14), %rcx
	movl	%eax, 60(%rcx)
	movl	$1, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_18:
	movl	$1, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"palette: %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x"

L_.str.2:                               ## @.str.2
	.asciz	"size: %dx%d"

	.no_dead_strip	_ffmpeg_parse_vobsub_extradata_mkv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ffmpeg_parse_vobsub_extradata_mkv
lCPI0_0:
	.long	720                             ; 0x2d0
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ffmpeg_parse_vobsub_extradata_mkv:     ; @ffmpeg_parse_vobsub_extradata_mkv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w8, [x0]
	add	w0, w8, #1
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	ldp	w2, w1, [x21]
	bl	_memcpy
	ldrsw	x8, [x21]
	strb	wzr, [x20, x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #168
	mov	x0, x20
	bl	_strtok_r
	cbz	x0, LBB0_13
; %bb.2:
	mov	x22, x0
	mov	w28, #0
	mov	w27, #0
	sub	x8, x29, #160
	add	x10, x8, #4
	add	x9, x8, #8
	stp	x9, x10, [x29, #-184]           ; 16-byte Folded Spill
	add	x10, x8, #12
	add	x9, x8, #16
	stp	x9, x10, [sp, #184]             ; 16-byte Folded Spill
	add	x10, x8, #20
	add	x9, x8, #24
	stp	x9, x10, [sp, #168]             ; 16-byte Folded Spill
	add	x10, x8, #28
	add	x9, x8, #32
	stp	x9, x10, [sp, #152]             ; 16-byte Folded Spill
	add	x10, x8, #36
	add	x9, x8, #40
	stp	x9, x10, [sp, #136]             ; 16-byte Folded Spill
	add	x10, x8, #44
	add	x9, x8, #48
	stp	x9, x10, [sp, #120]             ; 16-byte Folded Spill
	add	x25, x8, #52
	add	x21, x8, #56
	add	x24, x8, #60
	add	x23, x19, #4
Lloh5:
	adrp	x26, l_.str@PAGE
Lloh6:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x2, x29, #168
	mov	x0, #0
	mov	x1, x26
	bl	_strtok_r
	mov	x22, x0
	cbz	x0, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #1
	cbz	w28, LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	cbnz	w27, LBB0_9
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	x21, x24, [sp, #96]
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	stp	x8, x25, [sp, #80]
	ldr	x9, [sp, #128]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #136]                  ; 8-byte Folded Reload
	stp	x8, x9, [sp, #64]
	ldr	x9, [sp, #144]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #152]                  ; 8-byte Folded Reload
	stp	x8, x9, [sp, #48]
	ldr	x9, [sp, #160]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #168]                  ; 8-byte Folded Reload
	stp	x8, x9, [sp, #32]
	ldr	x9, [sp, #176]                  ; 8-byte Folded Reload
	ldr	x8, [sp, #184]                  ; 8-byte Folded Reload
	stp	x8, x9, [sp, #16]
	sub	x2, x29, #160
	ldr	x8, [sp, #192]                  ; 8-byte Folded Reload
	str	x8, [sp, #8]
	ldur	x8, [x29, #-184]                ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x22
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	ldur	x3, [x29, #-176]                ; 8-byte Folded Reload
	bl	_sscanf
	cmp	w0, #16
	cset	w27, eq
	cbnz	w28, LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x23
	bl	_sscanf
	cmp	w0, #2
	cset	w28, eq
	cbz	w27, LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w28, LBB0_3
; %bb.10:
	mov	w27, #1
LBB0_11:
	ldr	w8, [x19]
	cbnz	w8, LBB0_14
	b	LBB0_15
LBB0_12:
	mov	w20, #1
	b	LBB0_18
LBB0_13:
	mov	w27, #0
	ldr	w8, [x19]
	cbz	w8, LBB0_15
LBB0_14:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_16
LBB0_15:
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
LBB0_16:
	mov	x0, x20
	bl	_free
	mov	w20, #1
	cbz	w27, LBB0_18
; %bb.17:
	ldur	w0, [x29, #-160]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8]
	ldur	w0, [x29, #-156]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	ldur	w0, [x29, #-152]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	ldur	w0, [x29, #-148]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #12]
	ldur	w0, [x29, #-144]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #16]
	ldur	w0, [x29, #-140]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #20]
	ldur	w0, [x29, #-136]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #24]
	ldur	w0, [x29, #-132]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #28]
	ldur	w0, [x29, #-128]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #32]
	ldur	w0, [x29, #-124]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #36]
	ldur	w0, [x29, #-120]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #40]
	ldur	w0, [x29, #-116]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #44]
	ldur	w0, [x29, #-112]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #48]
	ldur	w0, [x29, #-108]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #52]
	ldur	w0, [x29, #-104]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #56]
	ldur	w0, [x29, #-100]
	bl	_hb_rgb2yuv
	ldr	x8, [x19, #16]
	str	w0, [x8, #60]
	str	w20, [x19, #8]
	mov	w20, #0
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x20
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"palette: %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x, %06x"

l_.str.2:                               ; @.str.2
	.asciz	"size: %dx%d"

	.no_dead_strip	_ffmpeg_parse_vobsub_extradata_mkv
.subsections_via_symbols
