	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_encode_video_packet_header ## -- Begin function ff_mpeg4_encode_video_packet_header
	.p2align	4, 0x90
_ff_mpeg4_encode_video_packet_header:   ## @ff_mpeg4_encode_video_packet_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	decq	%rdi
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r15d
	leaq	20(%rbx), %r14
	movq	%rbx, %rdi
	callq	_ff_mpeg4_get_video_packet_prefix_length
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	8(%rbx), %edx
	imull	4(%rbx), %edx
	addl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_put_bits
	movl	12(%rbx), %esi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_encode_video_packet_header ; -- Begin function ff_mpeg4_encode_video_packet_header
	.p2align	2
_ff_mpeg4_encode_video_packet_header:   ; @ff_mpeg4_encode_video_packet_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	sub	x0, x8, #1
	bl	_av_log2
	add	w20, w0, #1
	add	x21, x19, #20
	mov	x0, x19
	bl	_ff_mpeg4_get_video_packet_prefix_length
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_put_bits
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldp	w8, w9, [x19]
	ldr	w10, [x19, #8]
	madd	w2, w10, w9, w8
	mov	x0, x21
	mov	x1, x20
	bl	_put_bits
	ldp	w1, w2, [x19, #12]
	mov	x0, x21
	bl	_put_bits
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_put_bits
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
