	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_subtitle_tag
_mov_write_subtitle_tag:                ## @mov_write_subtitle_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_avio_tell
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_wb16
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	_AV_CODEC_ID_DVD_SUBTITLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mov_write_esds_tag
	jmp	LBB0_4
LBB0_2:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	16(%rax), %esi
	movq	%rbx, %rdi
	callq	_avio_write
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_DVD_SUBTITLE,8,3   ## @AV_CODEC_ID_DVD_SUBTITLE
	.no_dead_strip	_mov_write_subtitle_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_subtitle_tag
_mov_write_subtitle_tag:                ; @mov_write_subtitle_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, x1
	mov	x19, x0
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb16
	mov	x0, x19
	mov	w1, #1
	bl	_avio_wb16
	ldr	x8, [x21]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _AV_CODEC_ID_DVD_SUBTITLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_CODEC_ID_DVD_SUBTITLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_mov_write_esds_tag
	b	LBB0_4
LBB0_2:
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	w1, [x8, #16]
	mov	x0, x19
	bl	_avio_write
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_DVD_SUBTITLE,8,3   ; @AV_CODEC_ID_DVD_SUBTITLE
	.no_dead_strip	_mov_write_subtitle_tag
.subsections_via_symbols
