	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_encode_visual_object_header
_mpeg4_encode_visual_object_header:     ## @mpeg4_encode_visual_object_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, %r15
	movq	8(%rdi), %rcx
	movl	(%rcx), %eax
	movq	_FF_PROFILE_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_1
## %bb.2:
	movl	$240, %eax
	cmpq	$0, 24(%r15)
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	cmpq	$0, 16(%r15)
	movl	$240, %eax
	cmovel	%edx, %eax
	jmp	LBB0_4
LBB0_1:
	shll	$4, %eax
LBB0_4:
	movl	4(%rcx), %ebx
	movq	_FF_LEVEL_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	movl	$1, %ecx
	cmovel	%ecx, %ebx
	orl	%eax, %ebx
	movl	%ebx, %eax
	andl	$-16, %eax
	xorl	%ecx, %ecx
	cmpl	$240, %eax
	sete	%cl
	leal	1(,%rcx,4), %r14d
	movq	%r15, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	_VOS_STARTCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%r15, %rdi
	movl	$8, %esi
	movl	%ebx, %edx
	callq	_put_bits
	movq	%r15, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	_VISUAL_OBJ_STARTCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r15, %rdi
	movl	$4, %esi
	movl	%r14d, %edx
	callq	_put_bits
	movq	%r15, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_mpeg4_stuffing              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_PROFILE_UNKNOWN,4,2         ## @FF_PROFILE_UNKNOWN
	.comm	_FF_LEVEL_UNKNOWN,4,2           ## @FF_LEVEL_UNKNOWN
	.comm	_VOS_STARTCODE,4,2              ## @VOS_STARTCODE
	.comm	_VISUAL_OBJ_STARTCODE,4,2       ## @VISUAL_OBJ_STARTCODE
	.no_dead_strip	_mpeg4_encode_visual_object_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4_encode_visual_object_header
_mpeg4_encode_visual_object_header:     ; @mpeg4_encode_visual_object_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, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _FF_PROFILE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FF_PROFILE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.1:
	ldr	x10, [x19, #24]
	mov	w9, #240
	cbnz	x10, LBB0_4
; %bb.2:
	ldr	x10, [x19, #16]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	b	LBB0_4
LBB0_3:
	lsl	w9, w9, #4
LBB0_4:
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x10, _FF_LEVEL_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FF_LEVEL_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	csinc	w8, w8, wzr, ne
	orr	w20, w8, w9
	and	w8, w20, #0xfffffff0
	cmp	w8, #240
	mov	w8, #5
	csinc	w21, w8, wzr, eq
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
Lloh6:
	adrp	x8, _VOS_STARTCODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VOS_STARTCODE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	x2, x20
	bl	_put_bits
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
Lloh9:
	adrp	x8, _VISUAL_OBJ_STARTCODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VISUAL_OBJ_STARTCODE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	x2, x21
	bl	_put_bits
	mov	x0, x19
	mov	w1, #3
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	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	_ff_mpeg4_stuffing
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_PROFILE_UNKNOWN,4,2         ; @FF_PROFILE_UNKNOWN
	.comm	_FF_LEVEL_UNKNOWN,4,2           ; @FF_LEVEL_UNKNOWN
	.comm	_VOS_STARTCODE,4,2              ; @VOS_STARTCODE
	.comm	_VISUAL_OBJ_STARTCODE,4,2       ; @VISUAL_OBJ_STARTCODE
	.no_dead_strip	_mpeg4_encode_visual_object_header
.subsections_via_symbols
