	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg1_sequence_header
_mpeg1_sequence_header:                 ## @mpeg1_sequence_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_c@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rsi, %r14
	addq	$6, %rsi
	callq	_CODE_GEN
	movq	(%r15), %rcx
	movq	_V4L2_PIX_FMT_MPEG1@GOTPCREL(%rip), %rdx
	movl	8(%r15), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	movl	$1, %r12d
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	16(%r15), %rax
	movq	_GO7007_STD_NTSC@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	sete	%r12b
	orl	$2, %r12d
	jmp	LBB0_6
LBB0_5:
	xorl	%ecx, %ecx
	cmpl	$129, %eax
	sete	%cl
	addl	%ecx, %ecx
	incl	%ecx
	cmpl	$128, %eax
	movl	$2, %r12d
	cmovnel	%ecx, %r12d
	jmp	LBB0_6
LBB0_4:
	movq	16(%r15), %rax
	movq	_GO7007_STD_NTSC@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	sete	%r12b
	orl	$4, %r12d
LBB0_6:
	movl	24(%r15), %eax
	cmpl	$25024, %eax                    ## imm = 0x61C0
	jle	LBB0_7
## %bb.10:
	cmpl	$25025, %eax                    ## imm = 0x61C1
	je	LBB0_14
## %bb.11:
	cmpl	$30000, %eax                    ## imm = 0x7530
	je	LBB0_15
## %bb.12:
	cmpl	$30030, %eax                    ## imm = 0x754E
	jne	LBB0_16
## %bb.13:
	xorl	%eax, %eax
	cmpq	$0, 40(%r15)
	setne	%al
	leal	(%rax,%rax,2), %ebx
	addl	$5, %ebx
	jmp	LBB0_17
LBB0_7:
	movl	$1, %ebx
	cmpl	$24000, %eax                    ## imm = 0x5DC0
	je	LBB0_17
## %bb.8:
	cmpl	$24024, %eax                    ## imm = 0x5DD8
	jne	LBB0_16
## %bb.9:
	movl	$2, %ebx
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
	cmpq	$0, 40(%r15)
	setne	%al
	leal	(%rax,%rax,2), %ebx
	addl	$3, %ebx
	jmp	LBB0_17
LBB0_15:
	xorl	%eax, %eax
	cmpq	$0, 40(%r15)
	setne	%al
	leal	(%rax,%rax,2), %ebx
	orl	$4, %ebx
	jmp	LBB0_17
LBB0_16:
	movl	$5, %ebx
LBB0_17:
	movl	(%r13), %edi
	movl	28(%r15), %esi
	movl	$12, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	32(%r15), %esi
	movl	$12, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movq	(%r15), %rax
	movq	_V4L2_PIX_FMT_MPEG2@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	movl	$20000, %eax                    ## imm = 0x4E20
	movl	$262143, %esi                   ## imm = 0x3FFFF
	cmovel	%eax, %esi
	movl	$18, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	movl	$112, %eax
	movl	$20, %esi
	cmovel	%eax, %esi
	movl	$10, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	callq	_CODE_LENGTH
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	subl	%ecx, %eax
	je	LBB0_19
## %bb.18:
	movl	$8, %edx
	subl	%eax, %edx
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_CODE_ADD
LBB0_19:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_25
## %bb.20:
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$24, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$8, %ebx
	movl	$181, %esi
	movl	$8, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$328, %esi                      ## imm = 0x148
	movl	$12, %edx
	callq	_CODE_ADD
	xorl	%esi, %esi
	cmpq	$0, 40(%r15)
	sete	%sil
	movl	(%r13), %edi
	shll	$19, %esi
	orl	$131073, %esi                   ## imm = 0x20001
	movl	$20, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	callq	_CODE_LENGTH
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	subl	%ecx, %eax
	je	LBB0_22
## %bb.21:
	subl	%eax, %ebx
	movl	(%r13), %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_CODE_ADD
LBB0_22:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_25
## %bb.23:
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$24, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$2898, %esi                     ## imm = 0xB52
	movl	$12, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movq	16(%r15), %rax
	movq	_GO7007_STD_NTSC@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	incl	%esi
	movl	$3, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$261, %esi                      ## imm = 0x105
	movl	$9, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$1285, %esi                     ## imm = 0x505
	movl	$16, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	28(%r15), %esi
	movl	$14, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	32(%r15), %esi
	movl	$14, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	callq	_CODE_LENGTH
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	subl	%ecx, %eax
	je	LBB0_25
## %bb.24:
	movl	$8, %edx
	subl	%eax, %edx
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_CODE_ADD
LBB0_25:
	movl	(%r13), %edi
	callq	_CODE_LENGTH
	addl	$32, %eax
	movq	%r14, %rcx
	movb	%al, (%r14)
	movb	%ah, 1(%rcx)
	movl	$-1291780096, 2(%r14)           ## imm = 0xB3010000
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_c,4,2                          ## @c
	.comm	_V4L2_PIX_FMT_MPEG1,8,3         ## @V4L2_PIX_FMT_MPEG1
	.comm	_GO7007_STD_NTSC,8,3            ## @GO7007_STD_NTSC
	.comm	_V4L2_PIX_FMT_MPEG2,8,3         ## @V4L2_PIX_FMT_MPEG2
	.no_dead_strip	_mpeg1_sequence_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg1_sequence_header
_mpeg1_sequence_header:                 ; @mpeg1_sequence_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _c@GOTPAGE
Lloh1:
	ldr	x24, [x24, _c@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x1, x1, #6
	bl	_CODE_GEN
	ldr	x9, [x20]
Lloh2:
	adrp	x8, _V4L2_PIX_FMT_MPEG1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_PIX_FMT_MPEG1@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x8]
	ldr	w8, [x20, #8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x20, #16]
Lloh5:
	adrp	x9, _GO7007_STD_NTSC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GO7007_STD_NTSC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #2
	cinc	w22, w8, eq
	b	LBB0_7
LBB0_4:
	cmp	w8, #129
	mov	w9, #3
	csinc	w9, w9, wzr, eq
	mov	w10, #2
	cmp	w8, #128
	csel	w22, w10, w9, eq
	b	LBB0_7
LBB0_5:
	ldr	x8, [x20, #16]
Lloh8:
	adrp	x9, _GO7007_STD_NTSC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GO7007_STD_NTSC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #4
	cinc	w22, w8, eq
	b	LBB0_7
LBB0_6:
	mov	w22, #1
LBB0_7:
	ldr	w8, [x20, #24]
	mov	w9, #25024
	cmp	w8, w9
	b.le	LBB0_12
; %bb.8:
	mov	w9, #25025
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.9:
	mov	w9, #30000
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.10:
	mov	w9, #30030
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.11:
	ldr	x8, [x20, #40]
	cmp	x8, #0
	mov	w8, #8
	mov	w9, #5
	csel	w23, w9, w8, eq
	b	LBB0_19
LBB0_12:
	mov	w9, #24000
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.13:
	mov	w9, #24024
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.14:
	mov	w23, #2
	b	LBB0_19
LBB0_15:
	ldr	x8, [x20, #40]
	cmp	x8, #0
	mov	w8, #6
	mov	w9, #3
	csel	w23, w9, w8, eq
	b	LBB0_19
LBB0_16:
	ldr	x8, [x20, #40]
	cmp	x8, #0
	mov	w8, #7
	mov	w9, #4
	csel	w23, w9, w8, eq
	b	LBB0_19
LBB0_17:
	mov	w23, #1
	b	LBB0_19
LBB0_18:
	mov	w23, #5
LBB0_19:
	ldr	w0, [x24]
	ldr	w1, [x20, #28]
	mov	w2, #12
	bl	_CODE_ADD
	ldr	w0, [x24]
	ldr	w1, [x20, #32]
	mov	w2, #12
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	x1, x22
	mov	w2, #4
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	x1, x23
	mov	w2, #4
	bl	_CODE_ADD
	ldr	w0, [x24]
Lloh11:
	adrp	x22, _V4L2_PIX_FMT_MPEG2@GOTPAGE
Lloh12:
	ldr	x22, [x22, _V4L2_PIX_FMT_MPEG2@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	mov	w8, #262143
	mov	w9, #20000
	csel	w1, w9, w8, eq
	mov	w2, #18
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #1
	mov	w2, #1
	bl	_CODE_ADD
	ldr	w0, [x24]
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	mov	w8, #20
	mov	w9, #112
	csel	w1, w9, w8, eq
	mov	w2, #10
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #0
	mov	w2, #3
	bl	_CODE_ADD
	ldr	w0, [x24]
	bl	_CODE_LENGTH
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w8, w9, w8, mi
	cbz	w8, LBB0_21
; %bb.20:
	mov	w9, #8
	sub	w2, w9, w8
	ldr	w0, [x24]
	mov	w1, #0
	bl	_CODE_ADD
LBB0_21:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.22:
	ldr	w0, [x24]
	mov	w1, #1
	mov	w2, #24
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w22, #8
	mov	w1, #181
	mov	w2, #8
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #328
	mov	w2, #12
	bl	_CODE_ADD
	ldr	x8, [x20, #40]
	ldr	w0, [x24]
	mov	w9, #1
	movk	w9, #2, lsl #16
	orr	w10, w9, #0x80000
	cmp	x8, #0
	csel	w1, w10, w9, eq
	mov	w2, #20
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #0
	mov	w2, #16
	bl	_CODE_ADD
	ldr	w0, [x24]
	bl	_CODE_LENGTH
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w8, w9, w8, mi
	cbz	w8, LBB0_24
; %bb.23:
	sub	w2, w22, w8
	ldr	w0, [x24]
	mov	w1, #0
	bl	_CODE_ADD
LBB0_24:
	cbz	w21, LBB0_27
; %bb.25:
	ldr	w0, [x24]
	mov	w21, #1
	mov	w1, #1
	mov	w2, #24
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #2898
	mov	w2, #12
	bl	_CODE_ADD
	ldr	w0, [x24]
	ldr	x8, [x20, #16]
Lloh13:
	adrp	x9, _GO7007_STD_NTSC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GO7007_STD_NTSC@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cinc	w1, w21, eq
	mov	w2, #3
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #261
	mov	w2, #9
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #1285
	mov	w2, #16
	bl	_CODE_ADD
	ldr	w0, [x24]
	ldr	w1, [x20, #28]
	mov	w2, #14
	bl	_CODE_ADD
	ldr	w0, [x24]
	mov	w1, #1
	mov	w2, #1
	bl	_CODE_ADD
	ldr	w0, [x24]
	ldr	w1, [x20, #32]
	mov	w2, #14
	bl	_CODE_ADD
	ldr	w0, [x24]
	bl	_CODE_LENGTH
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w8, w9, w8, mi
	cbz	w8, LBB0_27
; %bb.26:
	mov	w9, #8
	sub	w2, w9, w8
	ldr	w0, [x24]
	mov	w1, #0
	bl	_CODE_ADD
LBB0_27:
	ldr	w0, [x24]
	bl	_CODE_LENGTH
	add	w0, w0, #32
	strb	w0, [x19]
	lsr	w8, w0, #8
	strb	w8, [x19, #1]
	mov	w8, #-1291780096
	stur	w8, [x19, #2]
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_c,4,2                          ; @c
	.comm	_V4L2_PIX_FMT_MPEG1,8,3         ; @V4L2_PIX_FMT_MPEG1
	.comm	_GO7007_STD_NTSC,8,3            ; @GO7007_STD_NTSC
	.comm	_V4L2_PIX_FMT_MPEG2,8,3         ; @V4L2_PIX_FMT_MPEG2
	.no_dead_strip	_mpeg1_sequence_header
.subsections_via_symbols
