	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_write_stereo_mode
_mkv_write_stereo_mode:                 ## @mkv_write_stereo_mode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	$1, (%r8)
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	$1, (%r9)
	movl	16(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_13
LBB0_2:
	movl	(%r13), %edi
	callq	_atoi
	movl	%eax, %r12d
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_ff_matroska_video_stereo_mode@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_NB@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %r12d
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	cmpl	%eax, %r12d
	jge	LBB0_13
## %bb.9:
	cmpl	$10, %r12d
	je	LBB0_13
## %bb.10:
	cmpl	$12, %r12d
	je	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ff_mkv_stereo3d_conv
	testl	%eax, %eax
	js	LBB0_12
LBB0_13:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.15:
	movq	8(%r15), %rcx
	movq	_AV_PKT_DATA_STEREO3D@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rax
	xorl	%esi, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rsi)
	je	LBB0_17
## %bb.31:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_16
	jmp	LBB0_32
LBB0_14:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_32:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	cmpl	%eax, %ebx
	je	LBB0_36
## %bb.33:
	movq	_MODE_WEBM@GOTPCREL(%rip), %rcx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	setne	%dil
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ebx
	setle	%dl
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ebx
	sete	%cl
	orb	%dl, %cl
	orb	%dil, %cl
	cmpb	$1, %cl
	jne	LBB0_37
## %bb.34:
	cmpl	%eax, %ebx
	jge	LBB0_37
## %bb.35:
	movq	_MATROSKA_ID_VIDEOSTEREOMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_put_ebml_uint
LBB0_36:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	8(%rcx,%rsi), %rax
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$6, %ecx
	ja	LBB0_32
## %bb.18:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_25:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_37:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_12:
	movl	%eax, %r12d
	jmp	LBB0_36
LBB0_20:
	movq	_AV_STEREO3D_FLAG_INVERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	jne	LBB0_21
## %bb.22:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_LEFT_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_28:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_ROW_INTERLEAVED_LR@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %ebx
	movq	_AV_STEREO3D_FLAG_INVERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	cmpl	$1, %ecx
	adcl	$-1, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$2, (%rax)
	jmp	LBB0_32
LBB0_30:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_BOTH_EYES_BLOCK_LR@GOTPCREL(%rip), %rcx
	movq	_AV_STEREO3D_FLAG_INVERT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	4(%rax), %edx
	movl	(%rcx), %ebx
	cmpl	$1, %edx
	sbbl	$-1, %ebx
	jmp	LBB0_32
LBB0_29:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_COL_INTERLEAVED_LR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_AV_STEREO3D_FLAG_INVERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	cmpl	$1, %ecx
	adcl	$-1, %ebx
	jmp	LBB0_24
LBB0_27:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_CHECKERBOARD_LR@GOTPCREL(%rip), %rcx
	movq	_AV_STEREO3D_FLAG_INVERT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	4(%rax), %edx
	movl	(%rcx), %ebx
	cmpl	$1, %edx
	adcl	$-1, %ebx
	jmp	LBB0_32
LBB0_19:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_32
LBB0_21:
	movq	_MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ebx
LBB0_24:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$2, (%rax)
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_20
	.long	L0_0_set_28
	.long	L0_0_set_30
	.long	L0_0_set_29
	.long	L0_0_set_27
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_NB,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_NB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stereo_mode"

	.comm	_ff_matroska_video_stereo_mode,8,3 ## @ff_matroska_video_stereo_mode
	.comm	_AV_PKT_DATA_STEREO3D,8,3       ## @AV_PKT_DATA_STEREO3D
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_MONO,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_MONO
	.comm	_AV_STEREO3D_FLAG_INVERT,4,2    ## @AV_STEREO3D_FLAG_INVERT
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_LEFT_RIGHT,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_LEFT_RIGHT
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_CHECKERBOARD_LR,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_CHECKERBOARD_LR
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_ROW_INTERLEAVED_LR,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_ROW_INTERLEAVED_LR
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_COL_INTERLEAVED_LR,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_COL_INTERLEAVED_LR
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_BOTH_EYES_BLOCK_LR,4,2 ## @MATROSKA_VIDEO_STEREOMODE_TYPE_BOTH_EYES_BLOCK_LR
	.comm	_MODE_WEBM,4,2                  ## @MODE_WEBM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"The specified stereo mode is not valid.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MATROSKA_ID_VIDEOSTEREOMODE,4,2 ## @MATROSKA_ID_VIDEOSTEREOMODE
	.no_dead_strip	_mkv_write_stereo_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_write_stereo_mode
_mkv_write_stereo_mode:                 ; @mkv_write_stereo_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x25, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x28, _MATROSKA_VIDEO_STEREOMODE_TYPE_NB@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MATROSKA_VIDEO_STEREOMODE_TYPE_NB@GOTPAGEOFF]
	ldr	w22, [x28]
	mov	w8, #1
	str	w8, [x4]
	str	w8, [x5]
	ldr	w0, [x2, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	mov	x27, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	mov	x27, x0
	cbz	x0, LBB0_9
LBB0_2:
	ldr	w0, [x27]
	bl	_atoi
	mov	x26, x0
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	str	x24, [sp]                       ; 8-byte Folded Spill
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	mov	x22, x23
	mov	x24, x21
	mov	x23, x19
	mov	x19, x20
	mov	x20, #0
Lloh6:
	adrp	x21, _ff_matroska_video_stereo_mode@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ff_matroska_video_stereo_mode@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	ldr	x8, [x21]
	ldr	w1, [x8, x20, lsl #2]
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x28]
	cmp	x20, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	ldr	w8, [x28]
	mov	x26, x20
LBB0_7:
	mov	x20, x19
	mov	x19, x23
	mov	x21, x24
	mov	x23, x22
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x24, [sp]                       ; 8-byte Folded Reload
LBB0_8:
	cmp	w26, w8
	ccmp	w26, #10, #4, lt
	ccmp	w26, #12, #4, ne
	b.ne	LBB0_16
LBB0_9:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.10:
	ldr	x9, [x25, #8]
Lloh8:
	adrp	x10, _AV_PKT_DATA_STEREO3D@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_PKT_DATA_STEREO3D@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	add	x9, x9, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x10
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_11
	b	LBB0_25
LBB0_13:
	ldr	x8, [x9]
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #6
	b.hi	LBB0_25
; %bb.14:
Lloh11:
	adrp	x10, lJTI0_0@PAGE
Lloh12:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_15
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_15:
Lloh13:
	adrp	x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
	mov	x0, x25
	mov	x1, x26
	bl	_ff_mkv_stereo3d_conv
	tbz	w0, #31, LBB0_9
	b	LBB0_30
LBB0_17:
	ldr	w8, [x8, #4]
Lloh15:
	adrp	x9, _AV_STEREO3D_FLAG_INVERT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AV_STEREO3D_FLAG_INVERT@GOTPAGEOFF]
Lloh17:
	adrp	x10, _MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT@GOTPAGEOFF]
Lloh19:
	adrp	x11, _MATROSKA_VIDEO_STEREOMODE_TYPE_LEFT_RIGHT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _MATROSKA_VIDEO_STEREOMODE_TYPE_LEFT_RIGHT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w22, [x8]
	b	LBB0_22
LBB0_18:
Lloh22:
	adrp	x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_ROW_INTERLEAVED_LR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_ROW_INTERLEAVED_LR@GOTPAGEOFF]
LBB0_19:
	ldr	w9, [x9]
	ldr	w8, [x8, #4]
Lloh24:
	adrp	x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	sub	w22, w9, w8
	mov	w8, #2
	str	w8, [x23]
	b	LBB0_25
LBB0_20:
Lloh27:
	adrp	x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_BOTH_EYES_BLOCK_LR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_BOTH_EYES_BLOCK_LR@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldr	w8, [x8, #4]
Lloh30:
	adrp	x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w10, w8
	cinc	w22, w9, ne
	b	LBB0_25
LBB0_21:
Lloh33:
	adrp	x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_COL_INTERLEAVED_LR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_COL_INTERLEAVED_LR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	ldr	w8, [x8, #4]
Lloh36:
	adrp	x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGE
Lloh37:
	ldr	x10, [x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	sub	w22, w9, w8
LBB0_22:
	mov	w8, #2
	str	w8, [x24]
	b	LBB0_25
LBB0_23:
Lloh39:
	adrp	x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_CHECKERBOARD_LR@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MATROSKA_VIDEO_STEREOMODE_TYPE_CHECKERBOARD_LR@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	ldr	w8, [x8, #4]
Lloh42:
	adrp	x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGE
Lloh43:
	ldr	x10, [x10, _AV_STEREO3D_FLAG_INVERT@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	sub	w22, w9, w8
	b	LBB0_25
LBB0_24:
Lloh45:
	adrp	x8, _MATROSKA_VIDEO_STEREOMODE_TYPE_MONO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MATROSKA_VIDEO_STEREOMODE_TYPE_MONO@GOTPAGEOFF]
Lloh47:
	ldr	w22, [x8]
LBB0_25:
	ldr	w8, [x28]
	cmp	w22, w8
	b.eq	LBB0_29
; %bb.26:
Lloh48:
	adrp	x9, _MODE_WEBM@GOTPAGE
Lloh49:
	ldr	x9, [x9, _MODE_WEBM@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
Lloh51:
	adrp	x10, _MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM@GOTPAGE
Lloh52:
	ldr	x10, [x10, _MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM@GOTPAGEOFF]
Lloh53:
	adrp	x11, _MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT@GOTPAGE
Lloh54:
	ldr	x11, [x11, _MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
Lloh56:
	ldr	w11, [x11]
	cmp	w22, w11
	ccmp	w22, w10, #4, ne
	ccmp	w9, w21, #0, gt
	ccmp	w22, w8, #0, ne
	b.lt	LBB0_28
; %bb.27:
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.1@PAGE
Lloh61:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh62:
	adrp	x8, _EINVAL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_28:
Lloh65:
	adrp	x8, _MATROSKA_ID_VIDEOSTEREOMODE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _MATROSKA_ID_VIDEOSTEREOMODE@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_put_ebml_uint
LBB0_29:
	mov	w0, #0
LBB0_30:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh55
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
	.byte	(LBB0_20-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_23-LBB0_15)>>2
	.byte	(LBB0_24-LBB0_15)>>2
                                        ; -- End function
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_NB,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_NB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stereo_mode"

	.comm	_ff_matroska_video_stereo_mode,8,3 ; @ff_matroska_video_stereo_mode
	.comm	_AV_PKT_DATA_STEREO3D,8,3       ; @AV_PKT_DATA_STEREO3D
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_MONO,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_MONO
	.comm	_AV_STEREO3D_FLAG_INVERT,4,2    ; @AV_STEREO3D_FLAG_INVERT
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_RIGHT_LEFT
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_LEFT_RIGHT,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_LEFT_RIGHT
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_TOP_BOTTOM
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_CHECKERBOARD_LR,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_CHECKERBOARD_LR
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_ROW_INTERLEAVED_LR,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_ROW_INTERLEAVED_LR
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_COL_INTERLEAVED_LR,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_COL_INTERLEAVED_LR
	.comm	_MATROSKA_VIDEO_STEREOMODE_TYPE_BOTH_EYES_BLOCK_LR,4,2 ; @MATROSKA_VIDEO_STEREOMODE_TYPE_BOTH_EYES_BLOCK_LR
	.comm	_MODE_WEBM,4,2                  ; @MODE_WEBM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"The specified stereo mode is not valid.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MATROSKA_ID_VIDEOSTEREOMODE,4,2 ; @MATROSKA_ID_VIDEOSTEREOMODE
	.no_dead_strip	_mkv_write_stereo_mode
.subsections_via_symbols
