	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_get_wrapping_kind
_mxf_get_wrapping_kind:                 ## @mxf_get_wrapping_kind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_mxf_picture_essence_container_uls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_mxf_get_codec_ul
	movq	16(%rax), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	_mxf_sound_essence_container_uls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_mxf_get_codec_ul
	movq	16(%rax), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_mxf_data_essence_container_uls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_mxf_get_codec_ul
	movq	16(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_16
LBB0_3:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.4:
	movq	(%rbx), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movl	8(%rax), %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.7:
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	andl	$-4, %eax
	subl	%eax, %ecx
	cmpl	$2, %ecx
	je	LBB0_11
	jmp	LBB0_13
LBB0_16:
	movq	_UnknownWrapped@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	cmpl	$2, %ecx
	movl	$1, %eax
	cmovnel	%ecx, %eax
	movl	%eax, %ecx
LBB0_10:
	cmpl	$2, %ecx
	jne	LBB0_13
LBB0_11:
	movq	_ClipWrapped@GOTPCREL(%rip), %rax
	cmpl	$1, %ecx
	je	LBB0_14
	jmp	LBB0_15
LBB0_12:
	leal	-3(%rcx), %eax
	leal	-2(%rcx), %edx
	cmpl	$2, %eax
	cmovael	%ecx, %edx
	movl	%edx, %ecx
	cmpl	$2, %ecx
	je	LBB0_11
LBB0_13:
	movq	_UnknownWrapped@GOTPCREL(%rip), %rax
	cmpl	$1, %ecx
	jne	LBB0_15
LBB0_14:
	movq	_FrameWrapped@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mxf_picture_essence_container_uls,4,2 ## @mxf_picture_essence_container_uls
	.comm	_mxf_sound_essence_container_uls,4,2 ## @mxf_sound_essence_container_uls
	.comm	_mxf_data_essence_container_uls,4,2 ## @mxf_data_essence_container_uls
	.comm	_UnknownWrapped,4,2             ## @UnknownWrapped
	.comm	_FrameWrapped,4,2               ## @FrameWrapped
	.comm	_ClipWrapped,4,2                ## @ClipWrapped
	.no_dead_strip	_mxf_get_wrapping_kind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_get_wrapping_kind
_mxf_get_wrapping_kind:                 ; @mxf_get_wrapping_kind
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _mxf_picture_essence_container_uls@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mxf_picture_essence_container_uls@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_mxf_get_codec_ul
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _mxf_sound_essence_container_uls@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mxf_sound_essence_container_uls@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_mxf_get_codec_ul
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _mxf_data_essence_container_uls@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mxf_data_essence_container_uls@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_mxf_get_codec_ul
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
LBB0_3:
	ldr	x9, [x0]
Lloh9:
	adrp	x8, _UnknownWrapped@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UnknownWrapped@GOTPAGEOFF]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x10, [x19]
	ldr	w9, [x10, x9, lsl #2]
	ldr	w10, [x0, #8]
	subs	w11, w9, #2
	csinc	w12, w9, wzr, ne
	sub	w13, w9, #3
	cmp	w13, #2
	csel	w11, w11, w9, lo
	negs	w13, w9
	and	w13, w13, #0x3
	and	w14, w9, #0x3
	csneg	w13, w14, w13, mi
	cmp	w10, #128
	csel	w9, w9, w13, ne
	cmp	w10, #129
	csel	w9, w11, w9, eq
	cmp	w10, #130
	csel	w9, w12, w9, eq
Lloh11:
	adrp	x10, _ClipWrapped@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ClipWrapped@GOTPAGEOFF]
	cmp	w9, #2
	csel	x8, x10, x8, eq
Lloh13:
	adrp	x10, _FrameWrapped@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FrameWrapped@GOTPAGEOFF]
	cmp	w9, #1
	csel	x8, x10, x8, eq
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh15:
	adrp	x8, _UnknownWrapped@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UnknownWrapped@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mxf_picture_essence_container_uls,4,2 ; @mxf_picture_essence_container_uls
	.comm	_mxf_sound_essence_container_uls,4,2 ; @mxf_sound_essence_container_uls
	.comm	_mxf_data_essence_container_uls,4,2 ; @mxf_data_essence_container_uls
	.comm	_UnknownWrapped,4,2             ; @UnknownWrapped
	.comm	_FrameWrapped,4,2               ; @FrameWrapped
	.comm	_ClipWrapped,4,2                ; @ClipWrapped
	.no_dead_strip	_mxf_get_wrapping_kind
.subsections_via_symbols
