	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4_decode_visual_object
_mpeg4_decode_visual_object:            ## @mpeg4_decode_visual_object
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_skip_bits
LBB0_2:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	_VOT_VIDEO_ID@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_VOT_STILL_TEXTURE_ID@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_get_bits1
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.7:
	movq	_AVCOL_RANGE_MPEG@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	movl	%ecx, 24(%rdx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOT_VIDEO_ID,4,2               ## @VOT_VIDEO_ID
	.comm	_VOT_STILL_TEXTURE_ID,4,2       ## @VOT_STILL_TEXTURE_ID
	.comm	_AVCOL_RANGE_JPEG,4,2           ## @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,4,2           ## @AVCOL_RANGE_MPEG
	.no_dead_strip	_mpeg4_decode_visual_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4_decode_visual_object
_mpeg4_decode_visual_object:            ; @mpeg4_decode_visual_object
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_get_bits1
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #7
	bl	_skip_bits
LBB0_2:
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
Lloh0:
	adrp	x8, _VOT_VIDEO_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VOT_VIDEO_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VOT_STILL_TEXTURE_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VOT_STILL_TEXTURE_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_get_bits1
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	w1, #3
	bl	_skip_bits
	mov	x0, x20
	bl	_get_bits1
	mov	x21, x0
	mov	x0, x20
	bl	_get_bits1
Lloh6:
	adrp	x8, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
Lloh8:
	adrp	x9, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #24]
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x19]
	str	x0, [x8, #16]
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x19]
	str	x0, [x8, #8]
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x19]
	str	x0, [x8]
LBB0_6:
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VOT_VIDEO_ID,4,2               ; @VOT_VIDEO_ID
	.comm	_VOT_STILL_TEXTURE_ID,4,2       ; @VOT_STILL_TEXTURE_ID
	.comm	_AVCOL_RANGE_JPEG,4,2           ; @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,4,2           ; @AVCOL_RANGE_MPEG
	.no_dead_strip	_mpeg4_decode_visual_object
.subsections_via_symbols
