	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_tkhd_tag
_mov_write_tkhd_tag:                    ## @mov_write_tkhd_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	44(%rdx), %edx
	movl	48(%rbx), %edi
	movq	_MOV_TIMESCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_av_rescale_rnd
	movq	%r15, %rdi
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_INT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MOV_TKHD_FLAG_IN_MOVIE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testq	%rdi, %rdi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%r13)
	je	LBB0_4
## %bb.3:
	movq	%rdi, %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_4:
	movq	24(%rdi), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_AV_PKT_DATA_DISPLAYMATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_av_stream_get_side_data
	xorl	%ecx, %ecx
	cmpl	$36, -64(%rbp)
	cmovaeq	%rax, %rcx
	testq	%rax, %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_6:
	cmpl	%r12d, -60(%rbp)                ## 4-byte Folded Reload
	setge	%al
	movq	_MOV_TRACK_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	(%rbx), %r13d
	je	LBB0_8
## %bb.7:
	movq	_MOV_TKHD_FLAG_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_8:
	orl	%r15d, %r13d
	movq	8(%rbx), %rcx
	movq	_MODE_ISM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%r15b
	orb	%al, %r15b
	movzbl	%r15b, %r12d
	testb	%r12b, %r12b
	movl	$104, %eax
	movl	$92, %esi
	cmovnel	%eax, %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ffio_wfourcc
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_avio_w8
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_avio_wb24
	movl	16(%rbx), %esi
	cmpb	$1, %r12b
	movq	%rbx, %r13
	movq	%r14, %rdi
	jne	LBB0_10
## %bb.9:
	callq	_avio_wb64
	movl	16(%r13), %esi
	movq	%r14, %rdi
	callq	_avio_wb64
	jmp	LBB0_11
LBB0_10:
	callq	_avio_wb32
	movl	16(%r13), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
LBB0_11:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	20(%r13), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	cmpl	$0, 40(%r13)
	je	LBB0_12
## %bb.18:
	movq	%r14, %rdi
	testb	%r15b, %r15b
	je	LBB0_20
## %bb.19:
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_avio_wb64
	jmp	LBB0_22
LBB0_12:
	movq	(%r12), %rax
	movq	_MODE_ISM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:
	testb	%r15b, %r15b
	je	LBB0_15
## %bb.14:
	movl	$-1, %edi
	callq	_UINT64_C
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_avio_wb64
	jmp	LBB0_22
LBB0_20:
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_21
LBB0_16:
	movq	%r14, %rdi
	xorl	%esi, %esi
	testb	%r15b, %r15b
	je	LBB0_21
## %bb.17:
	callq	_avio_wb64
	jmp	LBB0_22
LBB0_15:
	movq	%r14, %rdi
	movl	$-1, %esi
LBB0_21:
	callq	_avio_wb32
LBB0_22:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avio_wb16
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	shll	$8, %esi
	movq	%r14, %rdi
	callq	_avio_wb16
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	28(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_wb32
	jmp	LBB0_25
LBB0_24:
	movq	$0, (%rsp)
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_write_matrix
LBB0_25:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_39
## %bb.26:
	movq	32(%r13), %rax
	movq	(%rax), %rcx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_28
## %bb.27:
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_28
LBB0_39:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
LBB0_40:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_avio_wb32
	movl	$92, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	8(%r13), %rcx
	movq	_MODE_MOV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_33
## %bb.29:
	movl	4(%rsi), %edx
	movl	8(%rsi), %edi
	movl	16(%rax), %esi
	shll	$16, %esi
	callq	_av_rescale
	testl	%eax, %eax
	je	LBB0_30
## %bb.31:
	movl	%eax, %esi
	movq	24(%r13), %rcx
	movq	32(%r13), %rax
	cmpq	8(%rax), %rcx
	jne	LBB0_33
## %bb.32:
	movq	_UINT32_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jle	LBB0_34
	jmp	LBB0_33
LBB0_30:
	movq	32(%r13), %rax
LBB0_33:
	movl	16(%rax), %esi
	shll	$16, %esi
LBB0_34:
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_36
## %bb.35:
	movl	8(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	xorl	%esi, %esi
LBB0_36:
	movq	%r14, %rdi
	callq	_avio_wb32
	movq	24(%r13), %rbx
	cmpq	$65536, %rbx                    ## imm = 0x10000
	jl	LBB0_38
## %bb.37:
	movl	8(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
	xorl	%ebx, %ebx
	jmp	LBB0_40
LBB0_38:
	shll	$16, %ebx
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_MOV_TIMESCALE,4,2              ## @MOV_TIMESCALE
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_INT32_MAX,4,2                  ## @INT32_MAX
	.comm	_MOV_TKHD_FLAG_IN_MOVIE,4,2     ## @MOV_TKHD_FLAG_IN_MOVIE
	.comm	_AV_PKT_DATA_DISPLAYMATRIX,4,2  ## @AV_PKT_DATA_DISPLAYMATRIX
	.comm	_MOV_TRACK_ENABLED,4,2          ## @MOV_TRACK_ENABLED
	.comm	_MOV_TKHD_FLAG_ENABLED,4,2      ## @MOV_TKHD_FLAG_ENABLED
	.comm	_MODE_ISM,8,3                   ## @MODE_ISM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tkhd"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
	.comm	_MODE_MOV,8,3                   ## @MODE_MOV
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"track width is too large\n"

L_.str.2:                               ## @.str.2
	.asciz	"track height is too large\n"

	.no_dead_strip	_mov_write_tkhd_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_tkhd_tag
_mov_write_tkhd_tag:                    ; @mov_write_tkhd_tag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MOV_TIMESCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOV_TIMESCALE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w2, w0, [x2, #44]
Lloh3:
	adrp	x8, _AV_ROUND_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_ROUND_UP@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_av_rescale_rnd
	mov	x24, x0
Lloh6:
	adrp	x8, _INT32_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT32_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _MOV_TKHD_FLAG_IN_MOVIE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MOV_TKHD_FLAG_IN_MOVIE@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x8, x22
	b	LBB0_5
LBB0_3:
	mov	w23, #0
	mov	x27, #0
	b	LBB0_6
LBB0_4:
	ldr	x8, [x22, #24]
LBB0_5:
	ldr	w23, [x8]
Lloh12:
	adrp	x8, _AV_PKT_DATA_DISPLAYMATRIX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_PKT_DATA_DISPLAYMATRIX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x22
	bl	_av_stream_get_side_data
	ldr	w8, [sp, #12]
	cmp	w8, #36
	ccmp	x0, #0, #4, lo
	csel	x27, xzr, x0, ne
LBB0_6:
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _MOV_TRACK_ENABLED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MOV_TRACK_ENABLED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MOV_TKHD_FLAG_ENABLED@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MOV_TKHD_FLAG_ENABLED@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	orr	w26, w8, w26
	ldr	x8, [x21, #8]
Lloh21:
	adrp	x28, _MODE_ISM@GOTPAGE
Lloh22:
	ldr	x28, [x28, _MODE_ISM@GOTPAGEOFF]
	ldr	x9, [x28]
	cmp	x8, x9
	ccmp	w24, w25, #0, ne
	cset	w25, ge
	mov	w8, #92
	mov	w9, #104
	cmp	w25, #0
	csel	w1, w9, w8, ne
	mov	x0, x19
	bl	_avio_wb32
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	x1, x25
	bl	_avio_w8
	mov	x0, x19
	mov	x1, x26
	bl	_avio_wb24
	ldr	w1, [x21, #16]
	mov	x0, x19
	cmp	w25, #1
	b.ne	LBB0_8
; %bb.7:
	bl	_avio_wb64
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_avio_wb64
	b	LBB0_9
LBB0_8:
	bl	_avio_wb32
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_avio_wb32
LBB0_9:
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x24
	cbnz	w25, LBB0_15
	b	LBB0_17
LBB0_11:
	ldr	x8, [x20]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	cbz	w25, LBB0_16
; %bb.13:
	mov	w0, #-1
	bl	_UINT64_C
	mov	x1, x0
	mov	x0, x19
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	cbz	w25, LBB0_17
LBB0_15:
	bl	_avio_wb64
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	mov	w1, #-1
LBB0_17:
	bl	_avio_wb32
LBB0_18:
	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, x23
	bl	_avio_wb16
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	lsl	w1, w8, #8
	mov	x0, x19
	bl	_avio_wb16
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb16
	cbz	x27, LBB0_20
; %bb.19:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #4]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #8]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #12]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #16]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #20]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #24]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #28]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x27, #32]
	mov	x0, x19
	bl	_avio_wb32
	cbnz	x22, LBB0_21
	b	LBB0_23
LBB0_20:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	mov	x5, #0
	mov	x6, #0
	bl	_write_matrix
	cbz	x22, LBB0_23
LBB0_21:
	ldr	x8, [x21, #32]
	ldr	x9, [x8]
Lloh28:
	adrp	x10, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh29:
	ldr	x10, [x10, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_26
; %bb.22:
Lloh31:
	adrp	x10, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh32:
	ldr	x10, [x10, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_26
LBB0_23:
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
LBB0_24:
	mov	w1, #0
LBB0_25:
	mov	x0, x19
	bl	_avio_wb32
	mov	w0, #92
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	ldr	x9, [x21, #8]
Lloh34:
	adrp	x10, _MODE_MOV@GOTPAGE
Lloh35:
	ldr	x10, [x10, _MODE_MOV@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
Lloh37:
	adrp	x23, _UINT32_MAX@GOTPAGE
Lloh38:
	ldr	x23, [x23, _UINT32_MAX@GOTPAGEOFF]
	cmp	x9, x10
	b.eq	LBB0_31
; %bb.27:
	ldr	w8, [x8, #16]
	lsl	w1, w8, #16
	ldp	w2, w0, [x22, #4]
	bl	_av_rescale
	cbz	w0, LBB0_30
; %bb.28:
	ldp	x9, x8, [x21, #24]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.ne	LBB0_31
; %bb.29:
	mov	x1, x0
	ldr	w9, [x23]
	cmp	w0, w9
	b.le	LBB0_32
	b	LBB0_31
LBB0_30:
	ldr	x8, [x21, #32]
LBB0_31:
	ldr	w8, [x8, #16]
	lsl	w1, w8, #16
LBB0_32:
	ldr	w8, [x23]
Lloh39:
	adrp	x22, _AV_LOG_WARNING@GOTPAGE
Lloh40:
	ldr	x22, [x22, _AV_LOG_WARNING@GOTPAGEOFF]
	cmp	w1, w8
	b.le	LBB0_34
; %bb.33:
	ldr	w0, [x20, #8]
	ldr	w1, [x22]
Lloh41:
	adrp	x2, l_.str.1@PAGE
Lloh42:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	w1, #0
LBB0_34:
	mov	x0, x19
	bl	_avio_wb32
	ldr	x8, [x21, #24]
	cmp	x8, #16, lsl #12                ; =65536
	b.lt	LBB0_36
; %bb.35:
	ldr	w0, [x20, #8]
	ldr	w1, [x22]
Lloh43:
	adrp	x2, l_.str.2@PAGE
Lloh44:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	b	LBB0_24
LBB0_36:
	lsl	w1, w8, #16
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MOV_TIMESCALE,4,2              ; @MOV_TIMESCALE
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_INT32_MAX,4,2                  ; @INT32_MAX
	.comm	_MOV_TKHD_FLAG_IN_MOVIE,4,2     ; @MOV_TKHD_FLAG_IN_MOVIE
	.comm	_AV_PKT_DATA_DISPLAYMATRIX,4,2  ; @AV_PKT_DATA_DISPLAYMATRIX
	.comm	_MOV_TRACK_ENABLED,4,2          ; @MOV_TRACK_ENABLED
	.comm	_MOV_TKHD_FLAG_ENABLED,4,2      ; @MOV_TKHD_FLAG_ENABLED
	.comm	_MODE_ISM,8,3                   ; @MODE_ISM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tkhd"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
	.comm	_MODE_MOV,8,3                   ; @MODE_MOV
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"track width is too large\n"

l_.str.2:                               ; @.str.2
	.asciz	"track height is too large\n"

	.no_dead_strip	_mov_write_tkhd_tag
.subsections_via_symbols
