	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_codec_id
_mov_codec_id:                          ## @mov_codec_id
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	_ff_codec_movaudio_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ff_codec_get_id
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_4
## %bb.1:
	movzwl	%r15w, %eax
	cmpl	$21332, %eax                    ## imm = 0x5354
	je	LBB0_3
## %bb.2:
	cmpl	$29549, %eax                    ## imm = 0x736D
	jne	LBB0_7
LBB0_3:
	movq	_ff_codec_wav_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_av_bswap32
	movzwl	%ax, %esi
	movl	%ebx, %edi
	callq	_ff_codec_get_id
	movl	%eax, %ebx
LBB0_4:
	movq	(%r14), %rcx
	movq	(%rcx), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.5:
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.6:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_15
LBB0_7:
	movq	(%r14), %rax
	movq	(%rax), %rax
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.9:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.10:
	movl	$109, %edi
	movl	$112, %esi
	movl	$52, %edx
	movl	$115, %ecx
	callq	_MKTAG
	cmpl	%r15d, %eax
	je	LBB0_16
## %bb.11:
	movq	_ff_codec_movvideo_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ff_codec_get_id
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_13
## %bb.12:
	movq	_ff_codec_bmp_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ff_codec_get_id
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_17
LBB0_13:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	(%r14), %rcx
LBB0_15:
	movq	%rax, (%rcx)
LBB0_16:
	movq	(%r14), %rax
	movl	%r15d, 16(%rax)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	_AVMEDIA_TYPE_DATA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_20
## %bb.18:
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.19:
	movq	8(%rax), %rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_20:
	movq	_ff_codec_movsubtitle_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ff_codec_get_id
	testl	%eax, %eax
	jle	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_22:
	movq	_ff_codec_movdata_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ff_codec_get_id
	movl	%eax, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_codec_movaudio_tags,4,2     ## @ff_codec_movaudio_tags
	.comm	_ff_codec_wav_tags,4,2          ## @ff_codec_wav_tags
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_movvideo_tags,4,2     ## @ff_codec_movvideo_tags
	.comm	_ff_codec_bmp_tags,4,2          ## @ff_codec_bmp_tags
	.comm	_AVMEDIA_TYPE_DATA,8,3          ## @AVMEDIA_TYPE_DATA
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_ff_codec_movsubtitle_tags,4,2  ## @ff_codec_movsubtitle_tags
	.comm	_ff_codec_movdata_tags,4,2      ## @ff_codec_movdata_tags
	.no_dead_strip	_mov_codec_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_codec_id
_mov_codec_id:                          ; @mov_codec_id
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ff_codec_movaudio_tags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_codec_movaudio_tags@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ff_codec_get_id
	mov	x21, x0
	cmp	w0, #0
	b.gt	LBB0_4
; %bb.1:
	and	w8, w19, #0xffff
	mov	w9, #21332
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
	mov	w9, #29549
	cmp	w8, w9
	b.ne	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _ff_codec_wav_tags@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_codec_wav_tags@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_av_bswap32
	and	w1, w0, #0xffff
	mov	x0, x21
	bl	_ff_codec_get_id
	mov	x21, x0
LBB0_4:
	ldr	x9, [x20]
	ldr	x8, [x9]
Lloh6:
	adrp	x10, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	w21, #1, #8, ne
	b.lt	LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	b	LBB0_14
LBB0_6:
	ldr	x8, [x20]
	ldr	x8, [x8]
LBB0_7:
	cbz	w19, LBB0_15
; %bb.8:
Lloh12:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.9:
	mov	w0, #109
	mov	w1, #112
	mov	w2, #52
	mov	w3, #115
	bl	_MKTAG
	cmp	w0, w19
	b.eq	LBB0_15
; %bb.10:
Lloh15:
	adrp	x8, _ff_codec_movvideo_tags@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ff_codec_movvideo_tags@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ff_codec_get_id
	mov	x21, x0
	cmp	w0, #0
	b.gt	LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _ff_codec_bmp_tags@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ff_codec_bmp_tags@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ff_codec_get_id
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_16
LBB0_12:
Lloh21:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	ldr	x9, [x20]
LBB0_14:
	str	x8, [x9]
LBB0_15:
	ldr	x8, [x20]
	str	w19, [x8, #16]
	mov	x0, x21
	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_16:
	ldr	x8, [x20]
	ldr	x9, [x8]
Lloh23:
	adrp	x10, _AVMEDIA_TYPE_DATA@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AVMEDIA_TYPE_DATA@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_19
; %bb.17:
Lloh26:
	adrp	x10, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.18:
	ldr	x8, [x8, #8]
Lloh29:
	adrp	x9, _AV_CODEC_ID_NONE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_19:
Lloh32:
	adrp	x8, _ff_codec_movsubtitle_tags@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ff_codec_movsubtitle_tags@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ff_codec_get_id
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.20:
	mov	x21, x0
Lloh35:
	adrp	x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
	b	LBB0_13
LBB0_21:
Lloh37:
	adrp	x8, _ff_codec_movdata_tags@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ff_codec_movdata_tags@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ff_codec_get_id
	mov	x21, x0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_codec_movaudio_tags,4,2     ; @ff_codec_movaudio_tags
	.comm	_ff_codec_wav_tags,4,2          ; @ff_codec_wav_tags
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_movvideo_tags,4,2     ; @ff_codec_movvideo_tags
	.comm	_ff_codec_bmp_tags,4,2          ; @ff_codec_bmp_tags
	.comm	_AVMEDIA_TYPE_DATA,8,3          ; @AVMEDIA_TYPE_DATA
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_ff_codec_movsubtitle_tags,4,2  ; @ff_codec_movsubtitle_tags
	.comm	_ff_codec_movdata_tags,4,2      ; @ff_codec_movdata_tags
	.no_dead_strip	_mov_codec_id
.subsections_via_symbols
