	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_write_simpletag
_mkv_write_simpletag:                   ## @mkv_write_simpletag
	.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	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rsi), %edi
	callq	_av_strdup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$45, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	leaq	1(%rax), %rdi
	movq	_AV_LANG_ISO639_2_BIBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_convert_lang_to
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movb	$0, (%r13)
	movq	-48(%rbp), %rbx
	jmp	LBB0_6
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%cl, (%rbx)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	movb	$95, %cl
	cmpb	$32, %al
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	-97(%rax), %ecx
	cmpb	$25, %cl
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	addb	$-32, %al
	movl	%eax, %ecx
	jmp	LBB0_10
LBB0_12:
	movq	_MATROSKA_ID_SIMPLETAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_start_ebml_master
	movl	%eax, %ebx
	movq	_MATROSKA_ID_TAGNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_put_ebml_string
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	_MATROSKA_ID_TAGLANG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_put_ebml_string
LBB0_14:
	movq	_MATROSKA_ID_TAGSTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%r12, %rdi
	callq	_put_ebml_string
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_end_ebml_master
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LANG_ISO639_2_BIBL,4,2      ## @AV_LANG_ISO639_2_BIBL
	.comm	_MATROSKA_ID_SIMPLETAG,4,2      ## @MATROSKA_ID_SIMPLETAG
	.comm	_MATROSKA_ID_TAGNAME,4,2        ## @MATROSKA_ID_TAGNAME
	.comm	_MATROSKA_ID_TAGLANG,4,2        ## @MATROSKA_ID_TAGLANG
	.comm	_MATROSKA_ID_TAGSTRING,4,2      ## @MATROSKA_ID_TAGSTRING
	.no_dead_strip	_mkv_write_simpletag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_write_simpletag
_mkv_write_simpletag:                   ; @mkv_write_simpletag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_av_strdup
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	w1, #45
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
	add	x0, x0, #1
Lloh0:
	adrp	x8, _AV_LANG_ISO639_2_BIBL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LANG_ISO639_2_BIBL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ff_convert_lang_to
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.3:
	strb	wzr, [x23]
	ldr	x22, [sp, #8]
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	b	_AVERROR
LBB0_5:
	mov	x21, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #95
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w8, [x22]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x22]
	subs	w8, w9, #32
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	w9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w9, w9, #97
	cmp	w9, #25
	b.ls	LBB0_7
	b	LBB0_8
LBB0_12:
Lloh6:
	adrp	x8, _MATROSKA_ID_SIMPLETAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MATROSKA_ID_SIMPLETAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_start_ebml_master
	mov	x22, x0
Lloh9:
	adrp	x8, _MATROSKA_ID_TAGNAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MATROSKA_ID_TAGNAME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_put_ebml_string
	cbz	x21, LBB0_14
; %bb.13:
Lloh12:
	adrp	x8, _MATROSKA_ID_TAGLANG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MATROSKA_ID_TAGLANG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_put_ebml_string
LBB0_14:
Lloh15:
	adrp	x8, _MATROSKA_ID_TAGSTRING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MATROSKA_ID_TAGSTRING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_put_ebml_string
	mov	x0, x19
	mov	x1, x22
	bl	_end_ebml_master
	add	x0, sp, #8
	bl	_av_freep
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LANG_ISO639_2_BIBL,4,2      ; @AV_LANG_ISO639_2_BIBL
	.comm	_MATROSKA_ID_SIMPLETAG,4,2      ; @MATROSKA_ID_SIMPLETAG
	.comm	_MATROSKA_ID_TAGNAME,4,2        ; @MATROSKA_ID_TAGNAME
	.comm	_MATROSKA_ID_TAGLANG,4,2        ; @MATROSKA_ID_TAGLANG
	.comm	_MATROSKA_ID_TAGSTRING,4,2      ; @MATROSKA_ID_TAGSTRING
	.no_dead_strip	_mkv_write_simpletag
.subsections_via_symbols
