	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_parse_vobsub_extradata_mp4
_ffmpeg_parse_vobsub_extradata_mp4:     ## @ffmpeg_parse_vobsub_extradata_mp4
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %eax
	cmpl	$64, (%rdi)
	jne	LBB0_13
## %bb.1:
	movq	8(%rdi), %r8
	movq	(%rsi), %r13
	leaq	64(%r13), %rdx
	leaq	8(%rsi), %r9
	leaq	12(%rsi), %r10
	leaq	4(%r8), %rbx
	leaq	256(%r8), %rcx
	cmpq	%r10, %r13
	setb	%r15b
	cmpq	%rdx, %r9
	setb	%r12b
	cmpq	%rcx, %r13
	setb	%r14b
	cmpq	%rdx, %rbx
	setb	%r11b
	cmpq	%rcx, %r9
	setb	%r9b
	cmpq	%r10, %rbx
	setb	%r10b
	xorl	%edx, %edx
	testb	%r12b, %r15b
	jne	LBB0_6
## %bb.2:
	andb	%r11b, %r14b
	jne	LBB0_6
## %bb.3:
	movl	$0, %ecx
	andb	%r10b, %r9b
	jne	LBB0_7
## %bb.4:
	movdqu	4(%r8), %xmm0
	movdqu	20(%r8), %xmm1
	movdqu	36(%r8), %xmm2
	movdqu	52(%r8), %xmm3
	movdqa	%xmm0, %xmm4
	punpckldq	%xmm1, %xmm4            ## xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
	pshufd	$170, %xmm3, %xmm5              ## xmm5 = xmm3[2,2,2,2]
	pblendw	$63, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,2,3,4,5],xmm5[6,7]
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	punpcklqdq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0]
	pshufd	$85, %xmm0, %xmm3               ## xmm3 = xmm0[1,1,1,1]
	pblendw	$12, %xmm1, %xmm3               ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5,6,7]
	pblendw	$240, %xmm2, %xmm3              ## xmm3 = xmm3[0,1,2,3],xmm2[4,5,6,7]
	punpckhdq	%xmm1, %xmm0            ## xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	pblendw	$240, %xmm5, %xmm0              ## xmm0 = xmm0[0,1,2,3],xmm5[4,5,6,7]
	pslld	$16, %xmm4
	por	%xmm0, %xmm4
	pslld	$8, %xmm3
	por	%xmm4, %xmm3
	movdqu	%xmm3, (%r13)
	movl	$1, 8(%rsi)
	movdqu	68(%r8), %xmm0
	movdqu	84(%r8), %xmm1
	movdqu	100(%r8), %xmm2
	movdqu	116(%r8), %xmm3
	movdqa	%xmm0, %xmm4
	punpckldq	%xmm1, %xmm4            ## xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
	pshufd	$170, %xmm3, %xmm5              ## xmm5 = xmm3[2,2,2,2]
	pblendw	$63, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,2,3,4,5],xmm5[6,7]
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	punpcklqdq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0]
	pshufd	$85, %xmm0, %xmm3               ## xmm3 = xmm0[1,1,1,1]
	pblendw	$12, %xmm1, %xmm3               ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5,6,7]
	pblendw	$240, %xmm2, %xmm3              ## xmm3 = xmm3[0,1,2,3],xmm2[4,5,6,7]
	punpckhdq	%xmm1, %xmm0            ## xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	pblendw	$240, %xmm5, %xmm0              ## xmm0 = xmm0[0,1,2,3],xmm5[4,5,6,7]
	pslld	$16, %xmm4
	por	%xmm0, %xmm4
	pslld	$8, %xmm3
	por	%xmm4, %xmm3
	movdqu	%xmm3, 16(%r13)
	movl	$1, 8(%rsi)
	movdqu	132(%r8), %xmm0
	movdqu	148(%r8), %xmm1
	movdqu	164(%r8), %xmm2
	movdqu	180(%r8), %xmm3
	movdqa	%xmm0, %xmm4
	punpckldq	%xmm1, %xmm4            ## xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
	pshufd	$170, %xmm3, %xmm5              ## xmm5 = xmm3[2,2,2,2]
	pblendw	$63, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,2,3,4,5],xmm5[6,7]
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	punpcklqdq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0]
	pshufd	$85, %xmm0, %xmm3               ## xmm3 = xmm0[1,1,1,1]
	pblendw	$12, %xmm1, %xmm3               ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5,6,7]
	pblendw	$240, %xmm2, %xmm3              ## xmm3 = xmm3[0,1,2,3],xmm2[4,5,6,7]
	punpckhdq	%xmm1, %xmm0            ## xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	pblendw	$240, %xmm5, %xmm0              ## xmm0 = xmm0[0,1,2,3],xmm5[4,5,6,7]
	pslld	$16, %xmm4
	por	%xmm0, %xmm4
	pslld	$8, %xmm3
	por	%xmm4, %xmm3
	movdqu	%xmm3, 32(%r13)
	movl	$1, 8(%rsi)
	movl	$48, %ecx
	movl	$12, %edx
	jmp	LBB0_7
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	leaq	(%r8,%rcx,4), %rcx
	addq	$12, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rcx), %ebx
	movl	-4(%rcx), %eax
	shll	$16, %ebx
	shll	$8, %eax
	orl	%ebx, %eax
	orl	(%rcx), %eax
	movl	%eax, (%r13,%rdx,4)
	movl	$1, 8(%rsi)
	incq	%rdx
	addq	$16, %rcx
	cmpq	$16, %rdx
	jne	LBB0_8
## %bb.9:
	movl	16(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.10:
	movl	20(%rdi), %edx
	testl	%edx, %edx
	movl	$720, %ecx                      ## imm = 0x2D0
	cmovlel	%ecx, %eax
	movl	$480, %ecx                      ## imm = 0x1E0
	cmovgl	%edx, %ecx
	jmp	LBB0_12
LBB0_11:
	movl	$480, %ecx                      ## imm = 0x1E0
	movl	$720, %eax                      ## imm = 0x2D0
LBB0_12:
	movl	%eax, 12(%rsi)
	movl	%ecx, 16(%rsi)
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ffmpeg_parse_vobsub_extradata_mp4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_parse_vobsub_extradata_mp4
_ffmpeg_parse_vobsub_extradata_mp4:     ; @ffmpeg_parse_vobsub_extradata_mp4
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #64
	b.ne	LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x9, [x0, #8]
	mov	x13, x1
	ldr	x8, [x13], #12
	add	x14, x8, #64
	add	x15, x1, #8
	add	x12, x9, #4
	add	x16, x9, #256
	cmp	x8, x16
	ccmp	x12, x14, #2, lo
	cset	w11, lo
	cmp	x15, x16
	ccmp	x12, x13, #2, lo
	cset	w12, lo
	cmp	x15, x14
	ccmp	x8, x13, #2, lo
	b.lo	LBB0_6
; %bb.2:
	tbnz	w11, #0, LBB0_6
; %bb.3:
	mov	x11, x10
	tbnz	w12, #0, LBB0_7
; %bb.4:
	add	x10, x9, #4
	ld4.4s	{ v0, v1, v2, v3 }, [x10]
	shl.4s	v4, v0, #16
	shl.4s	v5, v1, #8
	orr.16b	v4, v5, v4
	orr.16b	v0, v4, v2
	str	q0, [x8]
	mov	w10, #1
	str	w10, [x1, #8]
	add	x11, x9, #68
	ld4.4s	{ v0, v1, v2, v3 }, [x11]
	shl.4s	v4, v0, #16
	shl.4s	v5, v1, #8
	orr.16b	v4, v5, v4
	orr.16b	v0, v4, v2
	str	q0, [x8, #16]
	str	w10, [x1, #8]
	add	x11, x9, #132
	ld4.4s	{ v0, v1, v2, v3 }, [x11]
	shl.4s	v4, v0, #16
	shl.4s	v5, v1, #8
	orr.16b	v4, v5, v4
	orr.16b	v0, v4, v2
	str	q0, [x8, #32]
	str	w10, [x1, #8]
	mov	w11, #48
	mov	w10, #12
	b	LBB0_7
LBB0_5:
	mov	w0, #1
	ret
LBB0_6:
	mov	x11, x10
LBB0_7:
	lsl	x10, x10, #2
	add	x9, x9, x11, lsl #2
	add	x9, x9, #8
	mov	w11, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w12, w13, [x9, #-4]
	ldr	w14, [x9, #4]
	lsl	w13, w13, #8
	orr	w12, w13, w12, lsl #16
	orr	w12, w12, w14
	str	w12, [x8, x10]
	str	w11, [x1, #8]
	add	x10, x10, #4
	add	x9, x9, #16
	cmp	x10, #64
	b.ne	LBB0_8
; %bb.9:
	ldr	w10, [x0, #16]
	mov	w8, #480
	mov	w9, #720
	cmp	w10, #1
	b.lt	LBB0_11
; %bb.10:
	ldr	w11, [x0, #20]
	cmp	w11, #1
	csel	w9, w9, w10, lt
	csel	w8, w8, w11, lt
LBB0_11:
	mov	w0, #0
	stp	w9, w8, [x1, #12]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ffmpeg_parse_vobsub_extradata_mp4
.subsections_via_symbols
