	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_dmlp_tag
_mov_write_dmlp_tag:                    ## @mov_write_dmlp_tag
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ffio_wfourcc
	cmpl	$19, (%r15)
	jg	LBB0_1
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	8(%r15), %rdi
	callq	_AV_RB16
	addl	%eax, %eax
	andl	$8190, %eax                     ## imm = 0x1FFE
	cmpl	$20, %eax
	jb	LBB0_6
## %bb.2:
	cmpl	(%r15), %eax
	jg	LBB0_6
## %bb.3:
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_AV_RB32
	cmpl	$-126718022, %eax               ## imm = 0xF8726FBA
	jne	LBB0_6
## %bb.4:
	movq	8(%r15), %rdi
	addq	$8, %rdi
	callq	_AV_RB32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_avio_wb32
	movq	8(%r15), %rdi
	addq	$18, %rdi
	callq	_AV_RB16
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %esi
	movq	%rbx, %rdi
	callq	_avio_wb16
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmlp"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Cannot write moov atom before TrueHD packets. Set the delay_moov flag to fix this.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_mov_write_dmlp_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_dmlp_tag
_mov_write_dmlp_tag:                    ; @mov_write_dmlp_tag
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	ldr	w8, [x21]
	cmp	w8, #19
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_2:
	ldr	x0, [x21, #8]
	bl	_AV_RB16
	ubfiz	w8, w0, #1, #12
	cmp	w8, #20
	b.lo	LBB0_6
; %bb.3:
	ldr	w9, [x21]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.4:
	ldr	x8, [x21, #8]
	add	x0, x8, #4
	bl	_AV_RB32
	mov	w8, #28602
	movk	w8, #63602, lsl #16
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]
	add	x0, x8, #8
	bl	_AV_RB32
	mov	x1, x0
	mov	x0, x19
	bl	_avio_wb32
	ldr	x8, [x21, #8]
	add	x0, x8, #18
	bl	_AV_RB16
	lsl	w1, w0, #1
	mov	x0, x19
	bl	_avio_wb16
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x20
	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
	b	_update_size
LBB0_6:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmlp"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Cannot write moov atom before TrueHD packets. Set the delay_moov flag to fix this.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_mov_write_dmlp_tag
.subsections_via_symbols
