	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_trkn_tag
_mov_write_trkn_tag:                    ## @mov_write_trkn_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	%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
	movl	%ecx, %r12d
	movq	%rdi, %r13
	movl	(%rdx), %edi
	testl	%ecx, %ecx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_atoi
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	incq	%rax
	movq	%rax, %rdi
	callq	_atoi
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	$32, %r14d
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_avio_wb32
	testl	%r12d, %r12d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r13, %rdi
	callq	_ffio_wfourcc
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_avio_wb32
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_ffio_wfourcc
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_avio_wb16
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_avio_wb16
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disc"

L_.str.1:                               ## @.str.1
	.asciz	"track"

L_.str.2:                               ## @.str.2
	.asciz	"disk"

L_.str.3:                               ## @.str.3
	.asciz	"trkn"

L_.str.4:                               ## @.str.4
	.asciz	"data"

	.no_dead_strip	_mov_write_trkn_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_trkn_tag
_mov_write_trkn_tag:                    ; @mov_write_trkn_tag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x3
	mov	x19, x0
	ldr	w0, [x2]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w3, #0
	csel	x1, x9, x8, eq
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x21, [x0]
	mov	x0, x21
	bl	_atoi
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.3:
	add	x0, x0, #1
	bl	_atoi
	mov	x23, x0
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	w23, #0
LBB0_6:
	mov	w21, #32
	mov	x0, x19
	mov	w1, #32
	bl	_avio_wb32
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.3@PAGE
Lloh7:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w22, #0
	csel	x1, x9, x8, eq
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #24
	bl	_avio_wb32
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb16
	mov	x0, x19
	mov	x1, x20
	bl	_avio_wb16
	mov	x0, x19
	mov	x1, x23
	bl	_avio_wb16
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb16
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disc"

l_.str.1:                               ; @.str.1
	.asciz	"track"

l_.str.2:                               ; @.str.2
	.asciz	"disk"

l_.str.3:                               ; @.str.3
	.asciz	"trkn"

l_.str.4:                               ; @.str.4
	.asciz	"data"

	.no_dead_strip	_mov_write_trkn_tag
.subsections_via_symbols
