	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_st3d
_mov_read_st3d:                         ## @mov_read_st3d
	.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	(%rdi), %rdi
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	cmpl	$4, %edx
	jg	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%rsi, %r14
	movq	8(%rdi), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r15
	movq	%rsi, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_r8
	cmpl	$3, %eax
	jae	LBB0_5
## %bb.6:
	cltq
	leaq	l_switch.table.mov_read_st3d(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_av_stereo3d_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	%r14d, (%rax)
	jmp	LBB0_8
LBB0_5:
	movq	(%rbx), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Empty stereoscopic video box\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_STEREO3D_2D,4,2             ## @AV_STEREO3D_2D
	.comm	_AV_STEREO3D_TOPBOTTOM,4,2      ## @AV_STEREO3D_TOPBOTTOM
	.comm	_AV_STEREO3D_SIDEBYSIDE,4,2     ## @AV_STEREO3D_SIDEBYSIDE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Unknown st3d mode value %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mov_read_st3d
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mov_read_st3d
l_switch.table.mov_read_st3d:
	.quad	_AV_STEREO3D_2D
	.quad	_AV_STEREO3D_TOPBOTTOM
	.quad	_AV_STEREO3D_SIDEBYSIDE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_st3d
_mov_read_st3d:                         ; @mov_read_st3d
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w8, [x0]
	subs	w8, w8, #1
	b.lt	LBB0_7
; %bb.1:
	cmp	w2, #4
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
	mov	x20, x1
	ldr	x9, [x0, #8]
	ldr	x8, [x9, w8, uxtw #3]
	ldr	x21, [x8]
	mov	x0, x1
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_r8
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #3
	b.hs	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, l_switch.table.mov_read_st3d@PAGE
Lloh9:
	add	x8, x8, l_switch.table.mov_read_st3d@PAGEOFF
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w19, [x8]
	bl	_av_stereo3d_alloc
	str	x0, [x21]
	cbz	x0, LBB0_9
; %bb.5:
	mov	x8, x0
	mov	w0, #0
	str	w19, [x8]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	str	x0, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_av_log
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Empty stereoscopic video box\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_STEREO3D_2D,4,2             ; @AV_STEREO3D_2D
	.comm	_AV_STEREO3D_TOPBOTTOM,4,2      ; @AV_STEREO3D_TOPBOTTOM
	.comm	_AV_STEREO3D_SIDEBYSIDE,4,2     ; @AV_STEREO3D_SIDEBYSIDE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Unknown st3d mode value %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mov_read_st3d
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mov_read_st3d
l_switch.table.mov_read_st3d:
	.quad	_AV_STEREO3D_2D
	.quad	_AV_STEREO3D_TOPBOTTOM
	.quad	_AV_STEREO3D_SIDEBYSIDE

.subsections_via_symbols
