	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogm_dshow_header
_ogm_dshow_header:                      ## @ogm_dshow_header
	.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	8(%rdi), %rax
	movq	(%rax), %rax
	movslq	%esi, %r8
	movq	%r8, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rsi
	movslq	8(%rax,%rcx), %rbx
	movl	(%rsi,%rbx,4), %edx
	xorl	%r13d, %r13d
	testb	$1, %dl
	je	LBB0_10
## %bb.1:
	movl	$1, %r13d
	cmpl	$1, %edx
	jne	LBB0_10
## %bb.2:
	cmpl	$99, 12(%rax,%rcx)
	jg	LBB0_4
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rdi), %rdx
	movq	(%rdx,%r8,8), %r14
	leaq	(%rsi,%rbx,4), %r15
	leaq	(%rax,%rcx), %rbx
	addq	$12, %rbx
	leaq	384(%r15), %rdi
	callq	_AV_RL32
	cmpl	$89694081, %eax                 ## imm = 0x5589F81
	je	LBB0_8
## %bb.5:
	cmpl	$89694080, %eax                 ## imm = 0x5589F80
	jne	LBB0_10
## %bb.6:
	cmpl	$183, (%rbx)
	jle	LBB0_3
## %bb.7:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 32(%rcx)
	movq	_ff_codec_bmp_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	272(%r15), %rdi
	callq	_AV_RL32
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ff_codec_get_id
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	leaq	656(%r15), %rdi
	callq	_AV_RL64
	movq	%r14, %rdi
	movl	$64, %esi
	movl	%eax, %edx
	movl	$10000000, %ecx                 ## imm = 0x989680
	callq	_avpriv_set_pts_info
	leaq	704(%r15), %rdi
	callq	_AV_RL32
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	addq	$720, %r15                      ## imm = 0x2D0
	movq	%r15, %rdi
	callq	_AV_RL32
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_10
LBB0_8:
	cmpl	$135, (%rbx)
	jle	LBB0_3
## %bb.9:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 32(%rcx)
	movq	_ff_codec_wav_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	496(%r15), %rdi
	callq	_AV_RL16
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ff_codec_get_id
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	leaq	504(%r15), %rdi
	callq	_AV_RL16
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	leaq	512(%r15), %rdi
	callq	_AV_RL32
	movq	(%r14), %rcx
	movl	%eax, 12(%rcx)
	addq	$528, %r15                      ## imm = 0x210
	movq	%r15, %rdi
	callq	_AV_RL32
	shll	$3, %eax
	movq	(%r14), %rcx
	movl	%eax, 16(%rcx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_ff_codec_bmp_tags,4,2          ## @ff_codec_bmp_tags
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_wav_tags,4,2          ## @ff_codec_wav_tags
	.no_dead_strip	_ogm_dshow_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogm_dshow_header
_ogm_dshow_header:                      ; @ogm_dshow_header
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x9, x8, w1, sxtw #4
	ldr	x10, [x9]
	ldrsw	x9, [x9, #8]
	add	x21, x10, x9, lsl #2
	ldr	w9, [x21]
	tbnz	w9, #0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.3:
	sxtw	x9, w1
	add	x20, x8, x9, lsl #4
	ldr	w8, [x20, #12]!
	cmp	w8, #99
	b.gt	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_5:
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
	add	x0, x21, #384
	bl	_AV_RL32
	mov	w8, #40833
	movk	w8, #1368, lsl #16
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.6:
	mov	w8, #40832
	movk	w8, #1368, lsl #16
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [x20]
	cmp	w8, #183
	b.le	LBB0_4
; %bb.8:
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #32]
Lloh6:
	adrp	x8, _ff_codec_bmp_tags@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ff_codec_bmp_tags@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	add	x0, x21, #272
	bl	_AV_RL32
	mov	x1, x0
	mov	x0, x20
	bl	_ff_codec_get_id
	ldr	x8, [x19]
	str	x0, [x8, #24]
	add	x0, x21, #656
	bl	_AV_RL64
	mov	x2, x0
	mov	x0, x19
	mov	w1, #64
	mov	w3, #38528
	movk	w3, #152, lsl #16
	bl	_avpriv_set_pts_info
	add	x0, x21, #704
	bl	_AV_RL32
	ldr	x8, [x19]
	str	w0, [x8]
	add	x0, x21, #720
	bl	_AV_RL32
	ldr	x8, [x19]
	str	w0, [x8, #4]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, #135
	b.le	LBB0_4
; %bb.10:
Lloh9:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #32]
Lloh12:
	adrp	x8, _ff_codec_wav_tags@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ff_codec_wav_tags@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	add	x0, x21, #496
	bl	_AV_RL16
	mov	x1, x0
	mov	x0, x20
	bl	_ff_codec_get_id
	ldr	x8, [x19]
	str	x0, [x8, #24]
	add	x0, x21, #504
	bl	_AV_RL16
	ldr	x8, [x19]
	str	w0, [x8, #8]
	add	x0, x21, #512
	bl	_AV_RL32
	ldr	x8, [x19]
	str	w0, [x8, #12]
	add	x0, x21, #528
	bl	_AV_RL32
	lsl	w8, w0, #3
	ldr	x9, [x19]
	str	w8, [x9, #16]
LBB0_11:
	mov	w0, #1
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_ff_codec_bmp_tags,4,2          ; @ff_codec_bmp_tags
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_ff_codec_wav_tags,4,2          ; @ff_codec_wav_tags
	.no_dead_strip	_ogm_dshow_header
.subsections_via_symbols
