	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_write_tag_targets
_mkv_write_tag_targets:                 ## @mkv_write_tag_targets
	.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	%rcx, %r12
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	8(%rdi), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	8(%r14), %r13d
	movq	_MATROSKA_ID_TAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rdi), %edi
	callq	_avio_tell
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mkv_add_seekhead_entry
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	movq	_MATROSKA_ID_TAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_start_ebml_master_crc32
	movq	(%r14), %rbx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_4:
	movq	_MATROSKA_ID_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_start_ebml_master
	movl	%eax, (%r12)
	movq	_MATROSKA_ID_TAGTARGETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_start_ebml_master
	movl	%eax, %r14d
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_put_ebml_uint
LBB0_6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_end_ebml_master
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MATROSKA_ID_TAGS,4,2           ## @MATROSKA_ID_TAGS
	.comm	_MATROSKA_ID_TAG,4,2            ## @MATROSKA_ID_TAG
	.comm	_MATROSKA_ID_TAGTARGETS,4,2     ## @MATROSKA_ID_TAGTARGETS
	.no_dead_strip	_mkv_write_tag_targets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_write_tag_targets
_mkv_write_tag_targets:                 ; @mkv_write_tag_targets
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x23, [x0, #8]
	ldr	x22, [x23]
	cbnz	x22, LBB0_3
; %bb.1:
	mov	x24, x0
	ldr	w22, [x23, #8]
Lloh0:
	adrp	x26, _MATROSKA_ID_TAGS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MATROSKA_ID_TAGS@GOTPAGEOFF]
	ldr	w25, [x26]
	ldr	w0, [x0]
	bl	_avio_tell
	mov	x2, x0
	mov	x0, x22
	mov	x1, x25
	bl	_mkv_add_seekhead_entry
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x24]
	ldr	w3, [x26]
	mov	x1, x23
	mov	x2, x23
	bl	_start_ebml_master_crc32
	ldr	x22, [x23]
LBB0_3:
Lloh2:
	adrp	x8, _MATROSKA_ID_TAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MATROSKA_ID_TAG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_start_ebml_master
	str	w0, [x21]
Lloh5:
	adrp	x8, _MATROSKA_ID_TAGTARGETS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MATROSKA_ID_TAGTARGETS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_start_ebml_master
	mov	x21, x0
	cbz	w20, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_put_ebml_uint
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	_end_ebml_master
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MATROSKA_ID_TAGS,4,2           ; @MATROSKA_ID_TAGS
	.comm	_MATROSKA_ID_TAG,4,2            ; @MATROSKA_ID_TAG
	.comm	_MATROSKA_ID_TAGTARGETS,4,2     ; @MATROSKA_ID_TAGTARGETS
	.no_dead_strip	_mkv_write_tag_targets
.subsections_via_symbols
