	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_read_subelements_encoding
_mkv_read_subelements_encoding:         ## @mkv_read_subelements_encoding
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	-20(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_mkv_read_element_data_uint
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	(%r14), %rcx
	movq	_MKV_MAX_ENCODINGS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_2
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.4:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.6:
	cmpl	$1, %edx
	jne	LBB0_8
LBB0_7:
	movq	_MKV_CONTENT_ENCODING_ENCRYPTION@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_2:
	movq	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_MKV_CONTENT_ENCODING_COMPRESSION_ZLIB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	8(%r14), %rsi
	movl	%edx, (%rsi,%rcx,4)
	movl	-20(%rbp), %edx
	cmpl	$1, %edx
	je	LBB0_7
LBB0_8:
	movq	_MKV_CONTENT_ENCODING_UNKNOWN@GOTPCREL(%rip), %rdx
LBB0_9:
	movl	(%rdx), %edx
	movq	8(%r14), %rsi
	movl	%edx, (%rsi,%rcx,4)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_MKV_MAX_ENCODINGS,8,3          ## @MKV_MAX_ENCODINGS
	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_MKV_CONTENT_ENCODING_COMPRESSION_ZLIB,4,2 ## @MKV_CONTENT_ENCODING_COMPRESSION_ZLIB
	.comm	_MKV_CONTENT_ENCODING_ENCRYPTION,4,2 ## @MKV_CONTENT_ENCODING_ENCRYPTION
	.comm	_MKV_CONTENT_ENCODING_UNKNOWN,4,2 ## @MKV_CONTENT_ENCODING_UNKNOWN
	.no_dead_strip	_mkv_read_subelements_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_read_subelements_encoding
_mkv_read_subelements_encoding:         ; @mkv_read_subelements_encoding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x2
	mov	x19, x1
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x20, [x9]
	add	x2, sp, #12
	mov	x1, x8
	bl	_mkv_read_element_data_uint
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MKV_MAX_ENCODINGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MKV_MAX_ENCODINGS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.2:
	cmp	w19, #128
	b.ne	LBB0_10
; %bb.3:
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_7
; %bb.4:
	cmp	w9, #1
	b.ne	LBB0_8
LBB0_5:
Lloh6:
	adrp	x9, _MKV_CONTENT_ENCODING_ENCRYPTION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MKV_CONTENT_ENCODING_ENCRYPTION@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x9, _MKV_CONTENT_ENCODING_COMPRESSION_ZLIB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MKV_CONTENT_ENCODING_COMPRESSION_ZLIB@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	x10, [x20, #8]
	str	w9, [x10, x8, lsl #2]
	ldr	w9, [sp, #12]
	cmp	w9, #1
	b.eq	LBB0_5
LBB0_8:
Lloh14:
	adrp	x9, _MKV_CONTENT_ENCODING_UNKNOWN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MKV_CONTENT_ENCODING_UNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	ldr	x10, [x20, #8]
	str	w9, [x10, x8, lsl #2]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_MKV_MAX_ENCODINGS,8,3          ; @MKV_MAX_ENCODINGS
	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_MKV_CONTENT_ENCODING_COMPRESSION_ZLIB,4,2 ; @MKV_CONTENT_ENCODING_COMPRESSION_ZLIB
	.comm	_MKV_CONTENT_ENCODING_ENCRYPTION,4,2 ; @MKV_CONTENT_ENCODING_ENCRYPTION
	.comm	_MKV_CONTENT_ENCODING_UNKNOWN,4,2 ; @MKV_CONTENT_ENCODING_UNKNOWN
	.no_dead_strip	_mkv_read_subelements_encoding
.subsections_via_symbols
