	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_sequence_header
_mpeg4_sequence_header:                 ## @mpeg4_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1342111744, -80(%rbp)         ## imm = 0xB0010000
	movb	(%rdi), %al
	movb	%al, -76(%rbp)
	movabsq	$72057635729375232, %rax        ## imm = 0x1000009B5010000
	movq	%rax, -75(%rbp)
	movl	$16777216, -67(%rbp)            ## imm = 0x1000000
	movb	$32, -63(%rbp)
	movl	4(%rdi), %r12d
	movl	8(%rdi), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_c@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rsi, %r14
	addq	$20, %rsi
	callq	_CODE_GEN
	movl	12(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	movl	$1, %ebx
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movl	24(%r15), %eax
	movq	_GO7007_STD_NTSC@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	sete	%bl
	orl	$2, %ebx
	jmp	LBB0_4
LBB0_3:
	movl	24(%r15), %eax
	movq	_GO7007_STD_NTSC@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	sete	%bl
	orl	$4, %ebx
LBB0_4:
	leaq	2(%r14), %rdi
	movl	%r12d, %eax
	cltd
	idivl	-84(%rbp)                       ## 4-byte Folded Reload
	movl	%eax, %r12d
	leaq	-80(%rbp), %rsi
	movl	$18, %edx
	callq	_memcpy
	movl	(%r13), %edi
	movl	$401, %esi                      ## imm = 0x191
	movl	$17, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$4, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	%r12d, %esi
	movl	$16, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$3, %esi
	movl	$2, %edx
	callq	_CODE_ADD
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_vti_bitlen
	movl	%ebx, %edi
	movl	$1001, %esi                     ## imm = 0x3E9
	movl	%eax, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	16(%r15), %esi
	movl	$13, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	20(%r15), %esi
	movl	$13, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	movl	$10288, %esi                    ## imm = 0x2830
	movl	$14, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	callq	_CODE_LENGTH
	movl	%eax, %r15d
	leal	7(%r15), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	andl	$-8, %ebx
	movl	(%r13), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	subl	%r15d, %ebx
	addl	$7, %ebx
	movl	$-1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	notl	%esi
	movl	%ebx, %edx
	callq	_CODE_ADD
	movl	(%r13), %edi
	callq	_CODE_LENGTH
	addl	$144, %eax
	movw	%ax, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_c,4,2                          ## @c
	.comm	_GO7007_STD_NTSC,4,2            ## @GO7007_STD_NTSC
	.no_dead_strip	_mpeg4_sequence_header
.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 mpeg4_sequence_header
lCPI0_0:
	.byte	0                               ; 0x0
	.byte	0                               ; 0x0
	.byte	1                               ; 0x1
	.byte	181                             ; 0xb5
	.byte	9                               ; 0x9
	.byte	0                               ; 0x0
	.byte	0                               ; 0x0
	.byte	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mpeg4_sequence_header:                 ; @mpeg4_sequence_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #-1342111744
	stur	w8, [sp, #6]
	ldp	w8, w22, [x0]
	strb	w8, [sp, #10]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #11]
	mov	w8, #16777216
	stur	w8, [sp, #19]
	mov	w8, #32
	strb	w8, [sp, #23]
	ldr	w24, [x0, #8]
Lloh5:
	adrp	x23, _c@GOTPAGE
Lloh6:
	ldr	x23, [x23, _c@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, x1, #20
	bl	_CODE_GEN
	ldr	w8, [x20, #12]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x20, #24]
Lloh7:
	adrp	x9, _GO7007_STD_NTSC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GO7007_STD_NTSC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #2
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20, #24]
Lloh10:
	adrp	x9, _GO7007_STD_NTSC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GO7007_STD_NTSC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #4
LBB0_4:
	cinc	w21, w8, eq
	b	LBB0_6
LBB0_5:
	mov	w21, #1
LBB0_6:
	add	x0, x19, #2
	sdiv	w22, w22, w24
	add	x1, sp, #6
	mov	w2, #18
	bl	_memcpy
	ldr	w0, [x23]
	mov	w1, #401
	mov	w2, #17
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	x1, x21
	mov	w2, #4
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	w1, #1
	mov	w2, #4
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	x1, x22
	mov	w2, #16
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	w1, #3
	mov	w2, #2
	bl	_CODE_ADD
	ldr	w21, [x23]
	mov	x0, x20
	bl	_vti_bitlen
	mov	x2, x0
	mov	x0, x21
	mov	w1, #1001
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	w1, #1
	mov	w2, #1
	bl	_CODE_ADD
	ldr	w0, [x23]
	ldr	w1, [x20, #16]
	mov	w2, #13
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	w1, #1
	mov	w2, #1
	bl	_CODE_ADD
	ldr	w0, [x23]
	ldr	w1, [x20, #20]
	mov	w2, #13
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	w1, #10288
	mov	w2, #14
	bl	_CODE_ADD
	ldr	w0, [x23]
	bl	_CODE_LENGTH
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w20, w9, w8, mi
	ldr	w0, [x23]
	mov	w1, #0
	mov	w2, #1
	bl	_CODE_ADD
	ldr	w0, [x23]
	mov	w8, #7
	sub	w2, w8, w20
	mov	w8, #-1
	lsl	w8, w8, w2
	mvn	w1, w8
	bl	_CODE_ADD
	ldr	w0, [x23]
	bl	_CODE_LENGTH
	add	w0, w0, #144
	strh	w0, [x19]
	ldr	x8, [sp, #24]
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_8
; %bb.7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_c,4,2                          ; @c
	.comm	_GO7007_STD_NTSC,4,2            ; @GO7007_STD_NTSC
	.no_dead_strip	_mpeg4_sequence_header
.subsections_via_symbols
