	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_read_indirect_value
_mxf_read_indirect_value:               ## @mxf_read_indirect_value
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r15d, %r15d
	cmpl	$18, %edx
	jl	LBB0_6
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	-128(%rbp), %r13
	movq	%rsi, %rdi
	movq	%r13, %rsi
	movl	$17, %edx
	callq	_avio_read
	movq	_mxf_indirect_value_utf16le@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$17, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_mxf_indirect_value_utf16be@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdi
	movl	$17, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	addl	$-17, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_mxf_read_utf16be_string
	jmp	LBB0_5
LBB0_2:
	addl	$-17, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_mxf_read_utf16le_string
LBB0_5:
	movl	%eax, %r15d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mxf_indirect_value_utf16le,4,2 ## @mxf_indirect_value_utf16le
	.comm	_mxf_indirect_value_utf16be,4,2 ## @mxf_indirect_value_utf16be
	.no_dead_strip	_mxf_read_indirect_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_read_indirect_value
_mxf_read_indirect_value:               ; @mxf_read_indirect_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cmp	w2, #18
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #4
	mov	x0, x20
	mov	w2, #17
	bl	_avio_read
Lloh3:
	adrp	x8, _mxf_indirect_value_utf16le@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mxf_indirect_value_utf16le@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #4
	mov	w2, #17
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _mxf_indirect_value_utf16be@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mxf_indirect_value_utf16be@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #4
	mov	w2, #17
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	sub	w1, w21, #17
	mov	x0, x20
	mov	x2, x19
	bl	_mxf_read_utf16le_string
	b	LBB0_6
LBB0_5:
	sub	w1, w21, #17
	mov	x0, x20
	mov	x2, x19
	bl	_mxf_read_utf16be_string
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_mxf_indirect_value_utf16le,4,2 ; @mxf_indirect_value_utf16le
	.comm	_mxf_indirect_value_utf16be,4,2 ; @mxf_indirect_value_utf16be
	.no_dead_strip	_mxf_read_indirect_value
.subsections_via_symbols
