	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s337m_get_offset_and_codec
_s337m_get_offset_and_codec:            ## @s337m_get_offset_and_codec
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_IS_16LE_MARKER
	movl	$16, %ecx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_IS_20LE_MARKER
	sarl	$8, %ebx
	movl	%r13d, %ecx
	sarl	$4, %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
	cmovnel	%ecx, %r13d
	leal	20(,%rdx,4), %ecx
LBB0_2:
	andl	$31, %ebx
	cmpl	$28, %ebx
	jne	LBB0_3
## %bb.7:
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movq	_AV_CODEC_ID_DOLBY_E@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_9:
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	cmpl	$3643, %eax                     ## imm = 0xE3B
	jg	LBB0_13
## %bb.10:
	cmpl	$3040, %eax                     ## imm = 0xBE0
	je	LBB0_19
## %bb.11:
	cmpl	$3640, %eax                     ## imm = 0xE38
	jne	LBB0_17
## %bb.12:
	movl	$1996, %eax                     ## imm = 0x7CC
	jmp	LBB0_20
LBB0_3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
LBB0_5:
	callq	_avpriv_report_missing_feature
LBB0_6:
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
LBB0_13:
	cmpl	$3648, %eax                     ## imm = 0xE40
	je	LBB0_14
## %bb.15:
	cmpl	$3644, %eax                     ## imm = 0xE3C
	jne	LBB0_17
## %bb.16:
	movl	$1998, %eax                     ## imm = 0x7CE
	jmp	LBB0_20
LBB0_19:
	movl	$1597, %eax                     ## imm = 0x63D
	jmp	LBB0_20
LBB0_14:
	movl	$1916, %eax                     ## imm = 0x77C
LBB0_20:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addl	$7, %ecx
	shrl	$2, %ecx
	andl	$-2, %ecx
	imull	%eax, %ecx
	movl	%ecx, (%rdx)
	xorl	%eax, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	testq	%r15, %r15
	je	LBB0_6
## %bb.18:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Data type %#x in SMPTE 337M"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_CODEC_ID_DOLBY_E,4,2        ## @AV_CODEC_ID_DOLBY_E
L_.str.1:                               ## @.str.1
	.asciz	"Dolby E data size %d in SMPTE 337M"

	.no_dead_strip	_s337m_get_offset_and_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s337m_get_offset_and_codec
_s337m_get_offset_and_codec:            ; @s337m_get_offset_and_codec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x5
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	mov	x0, x1
	bl	_IS_16LE_MARKER
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #16
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	bl	_IS_20LE_MARKER
	asr	w23, w23, #8
	asr	w8, w21, #4
	cmp	x0, #0
	csel	w21, w21, w8, eq
	mov	w8, #20
	mov	w9, #24
	csel	w8, w9, w8, eq
LBB0_3:
	and	w2, w23, #0x1f
	cmp	w2, #28
	b.ne	LBB0_10
; %bb.4:
	cbz	x22, LBB0_6
; %bb.5:
Lloh0:
	adrp	x9, _AV_CODEC_ID_DOLBY_E@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_DOLBY_E@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x22]
LBB0_6:
	sdiv	w9, w21, w8
	cmp	w9, #3643
	b.gt	LBB0_14
; %bb.7:
	cmp	w9, #3040
	b.eq	LBB0_17
; %bb.8:
	cmp	w9, #3640
	b.ne	LBB0_21
; %bb.9:
	mov	w9, #1996
	b	LBB0_19
LBB0_10:
	cbz	x20, LBB0_13
; %bb.11:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
LBB0_12:
	bl	_avpriv_report_missing_feature
LBB0_13:
Lloh5:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_14:
	cmp	w9, #3648
	b.eq	LBB0_18
; %bb.15:
	cmp	w9, #3644
	b.ne	LBB0_21
; %bb.16:
	mov	w9, #1998
	b	LBB0_19
LBB0_17:
	mov	w9, #1597
	b	LBB0_19
LBB0_18:
	mov	w9, #1916
LBB0_19:
	mov	w0, #0
	add	w8, w8, #7
	lsr	w8, w8, #2
	and	w8, w8, #0xe
	mul	w8, w9, w8
	str	w8, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	cbz	x20, LBB0_13
; %bb.22:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Data type %#x in SMPTE 337M"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_CODEC_ID_DOLBY_E,4,2        ; @AV_CODEC_ID_DOLBY_E
l_.str.1:                               ; @.str.1
	.asciz	"Dolby E data size %d in SMPTE 337M"

	.no_dead_strip	_s337m_get_offset_and_codec
.subsections_via_symbols
