	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dirac_header
_dirac_header:                          ## @dirac_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movslq	%esi, %rdx
	movq	(%rax,%rdx,8), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	movq	_AV_CODEC_ID_DIRAC@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	cmpq	(%r14), %rsi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rcx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	leaq	(%rdx,%rdx,2), %rsi
	movq	16(%rax,%rsi,8), %rdi
	movq	(%rax,%rsi,8), %rdx
	movq	8(%rax,%rsi,8), %rax
	leaq	(%rdi,%rax), %rsi
	addq	$13, %rsi
	addq	$-13, %rdx
	leaq	-24(%rbp), %rdi
	callq	_av_dirac_parse_sequence_header
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 44(%rcx)
	movq	(%r14), %rax
	movq	%rax, (%rcx)
	movq	-24(%rbp), %rax
	movl	36(%rax), %edx
	movl	%edx, 40(%rcx)
	movups	20(%rax), %xmm0
	movups	%xmm0, 24(%rcx)
	movq	40(%rax), %rsi
	movq	%rsi, %xmm0
	movq	12(%rax), %xmm1                 ## xmm1 = mem[0],zero
	punpcklqdq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0]
	movdqu	%xmm0, 8(%rcx)
	movl	8(%rax), %edx
	movq	%rsi, %rdi
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_av_image_check_sar
	movq	-24(%rbp), %rdx
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movl	8(%rdx), %eax
	movl	%eax, (%rbx)
LBB0_4:
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	addl	%ecx, %ecx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_avpriv_set_pts_info
	leaq	-24(%rbp), %rdi
	callq	_av_freep
	movl	$1, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_DIRAC,8,3          ## @AV_CODEC_ID_DIRAC
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.no_dead_strip	_dirac_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dirac_header
_dirac_header:                          ; @dirac_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x20, _AV_CODEC_ID_DIRAC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AV_CODEC_ID_DIRAC@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x3, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	sxtw	x9, w1
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldp	x10, x9, [x8, #8]
	ldr	x8, [x8]
	add	x9, x9, x10
	add	x1, x9, #13
	sub	x2, x8, #13
	add	x0, sp, #8
	bl	_av_dirac_parse_sequence_header
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	x10, [x20]
	str	x10, [x9]
	ldr	x10, [sp, #8]
	ldr	w11, [x10, #36]
	stp	w11, w8, [x9, #40]
	ldur	q0, [x10, #20]
	stur	q0, [x9, #24]
	ldr	d0, [x10, #40]
	ldur	d1, [x10, #12]
	mov.s	w0, v0[1]
	fmov	w1, s0
	mov.d	v0[1], v1[0]
	stur	q0, [x9, #8]
	ldr	w2, [x10, #8]
	bl	_av_image_check_sar
	ldr	x8, [sp, #8]
	tbnz	x0, #63, LBB0_5
; %bb.4:
	ldr	w9, [x8, #8]
	str	w9, [x19]
LBB0_5:
	ldp	w8, w2, [x8]
	lsl	w3, w8, #1
	mov	x0, x19
	mov	w1, #64
	bl	_avpriv_set_pts_info
	add	x0, sp, #8
	bl	_av_freep
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_DIRAC,8,3          ; @AV_CODEC_ID_DIRAC
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.no_dead_strip	_dirac_header
.subsections_via_symbols
