	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_write_field_order
_mkv_write_field_order:                 ## @mkv_write_field_order
	.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
	movl	%edx, %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	cmpl	$2, %ebx
	je	LBB0_2
## %bb.3:
	movl	%esi, %r15d
	movq	_MATROSKA_ID_VIDEOFLAGINTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_put_ebml_uint
	movq	_MODE_WEBM@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_8
## %bb.4:
	cmpl	$4, %ebx
	ja	LBB0_8
## %bb.5:
	movl	$27, %eax
	btl	%ebx, %eax
	jb	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE@GOTPCREL(%rip), %rax
	movq	_MATROSKA_ID_VIDEOFLAGINTERLACED@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movslq	%ebx, %rax
	leaq	l_switch.table.mkv_write_field_order(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_MATROSKA_ID_VIDEOFIELDORDER@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_ebml_uint                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MATROSKA_ID_VIDEOFLAGINTERLACED,4,2 ## @MATROSKA_ID_VIDEOFLAGINTERLACED
	.comm	_MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE,4,2 ## @MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE
	.comm	_MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED,4,2 ## @MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED
	.comm	_MODE_WEBM,4,2                  ## @MODE_WEBM
	.comm	_MATROSKA_ID_VIDEOFIELDORDER,4,2 ## @MATROSKA_ID_VIDEOFIELDORDER
	.comm	_MATROSKA_VIDEO_FIELDORDER_TT,4,2 ## @MATROSKA_VIDEO_FIELDORDER_TT
	.comm	_MATROSKA_VIDEO_FIELDORDER_BB,4,2 ## @MATROSKA_VIDEO_FIELDORDER_BB
	.comm	_MATROSKA_VIDEO_FIELDORDER_TB,4,2 ## @MATROSKA_VIDEO_FIELDORDER_TB
	.comm	_MATROSKA_VIDEO_FIELDORDER_BT,4,2 ## @MATROSKA_VIDEO_FIELDORDER_BT
	.no_dead_strip	_mkv_write_field_order
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mkv_write_field_order
l_switch.table.mkv_write_field_order:
	.quad	_MATROSKA_VIDEO_FIELDORDER_TT
	.quad	_MATROSKA_VIDEO_FIELDORDER_TB
	.quad	_MATROSKA_VIDEO_FIELDORDER_TT
	.quad	_MATROSKA_VIDEO_FIELDORDER_BT
	.quad	_MATROSKA_VIDEO_FIELDORDER_BB

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_write_field_order
_mkv_write_field_order:                 ; @mkv_write_field_order
	.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
	sub	w21, w2, #129
	cmp	w21, #4
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MATROSKA_ID_VIDEOFLAGINTERLACED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATROSKA_ID_VIDEOFLAGINTERLACED@GOTPAGEOFF]
	cmp	w21, #2
	b.eq	LBB0_6
; %bb.2:
	mov	x20, x1
	ldr	w1, [x8]
Lloh2:
	adrp	x8, _MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_put_ebml_uint
Lloh5:
	adrp	x8, _MODE_WEBM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_WEBM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.3:
	cmp	w21, #4
	b.hi	LBB0_5
; %bb.4:
	mov	w8, #27
	lsr	w8, w8, w21
	tbnz	w8, #0, LBB0_7
LBB0_5:
	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
LBB0_6:
Lloh8:
	adrp	x9, _MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, l_switch.table.mkv_write_field_order@PAGE
Lloh11:
	add	x8, x8, l_switch.table.mkv_write_field_order@PAGEOFF
	ldr	x9, [x8, w21, sxtw #3]
Lloh12:
	adrp	x8, _MATROSKA_ID_VIDEOFIELDORDER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MATROSKA_ID_VIDEOFIELDORDER@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	ldr	w2, [x9]
	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	_put_ebml_uint
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MATROSKA_ID_VIDEOFLAGINTERLACED,4,2 ; @MATROSKA_ID_VIDEOFLAGINTERLACED
	.comm	_MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE,4,2 ; @MATROSKA_VIDEO_INTERLACE_FLAG_PROGRESSIVE
	.comm	_MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED,4,2 ; @MATROSKA_VIDEO_INTERLACE_FLAG_INTERLACED
	.comm	_MODE_WEBM,4,2                  ; @MODE_WEBM
	.comm	_MATROSKA_ID_VIDEOFIELDORDER,4,2 ; @MATROSKA_ID_VIDEOFIELDORDER
	.comm	_MATROSKA_VIDEO_FIELDORDER_TT,4,2 ; @MATROSKA_VIDEO_FIELDORDER_TT
	.comm	_MATROSKA_VIDEO_FIELDORDER_BB,4,2 ; @MATROSKA_VIDEO_FIELDORDER_BB
	.comm	_MATROSKA_VIDEO_FIELDORDER_TB,4,2 ; @MATROSKA_VIDEO_FIELDORDER_TB
	.comm	_MATROSKA_VIDEO_FIELDORDER_BT,4,2 ; @MATROSKA_VIDEO_FIELDORDER_BT
	.no_dead_strip	_mkv_write_field_order
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mkv_write_field_order
l_switch.table.mkv_write_field_order:
	.quad	_MATROSKA_VIDEO_FIELDORDER_TT
	.quad	_MATROSKA_VIDEO_FIELDORDER_TB
	.quad	_MATROSKA_VIDEO_FIELDORDER_TT
	.quad	_MATROSKA_VIDEO_FIELDORDER_BT
	.quad	_MATROSKA_VIDEO_FIELDORDER_BB

.subsections_via_symbols
