	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_mdhd_tag
_mov_write_mdhd_tag:                    ## @mov_write_mdhd_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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdx), %eax
	movq	_INT32_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setge	%al
	movq	8(%rdx), %rcx
	movq	_MODE_ISM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%r13b
	orb	%al, %r13b
	movzbl	%r13b, %ebx
	testb	%bl, %bl
	movl	$44, %eax
	movl	$32, %esi
	cmovnel	%eax, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_ffio_wfourcc
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_avio_w8
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wb24
	movl	16(%r14), %esi
	movq	%r12, %rdi
	cmpb	$1, %bl
	jne	LBB0_2
## %bb.1:
	callq	_avio_wb64
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_avio_wb64
	jmp	LBB0_3
LBB0_2:
	callq	_avio_wb32
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_avio_wb32
LBB0_3:
	movl	20(%r14), %esi
	movq	%r12, %rdi
	callq	_avio_wb32
	cmpl	$0, 28(%r14)
	je	LBB0_4
## %bb.16:
	movl	(%r14), %esi
	movq	%r12, %rdi
	testb	%r13b, %r13b
	jne	LBB0_11
	jmp	LBB0_8
LBB0_4:
	movq	(%r15), %rax
	movq	_MODE_ISM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	testb	%r13b, %r13b
	je	LBB0_7
## %bb.6:
	movl	$-1, %edi
	callq	_UINT64_C
	movq	%r12, %rdi
	movl	%eax, %esi
	jmp	LBB0_11
LBB0_9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	testb	%r13b, %r13b
	je	LBB0_8
LBB0_11:
	callq	_avio_wb64
	jmp	LBB0_12
LBB0_7:
	movq	%r12, %rdi
	movl	$-1, %esi
LBB0_8:
	callq	_avio_wb32
LBB0_12:
	movl	24(%r14), %esi
	movq	%r12, %rdi
	callq	_avio_wb16
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wb16
	testb	%r13b, %r13b
	je	LBB0_15
## %bb.13:
	movq	8(%r14), %rax
	movq	_MODE_MOV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
LBB0_15:
	movl	$32, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT32_MAX,4,2                  ## @INT32_MAX
	.comm	_MODE_ISM,8,3                   ## @MODE_ISM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdhd"

	.comm	_MODE_MOV,8,3                   ## @MODE_MOV
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"FATAL error, file duration too long for timebase, this file will not be\nplayable with QuickTime. Choose a different timebase with -video_track_timescale or a different container format\n"

	.no_dead_strip	_mov_write_mdhd_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_mdhd_tag
_mov_write_mdhd_tag:                    ; @mov_write_mdhd_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	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _INT32_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x10, [x2, #8]
Lloh3:
	adrp	x23, _MODE_ISM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MODE_ISM@GOTPAGEOFF]
	ldr	x11, [x23]
	cmp	x10, x11
	ccmp	w8, w9, #0, ne
	cset	w21, ge
	mov	w8, #32
	mov	w9, #44
	cmp	w21, #0
	csel	w1, w9, w8, ne
	bl	_avio_wb32
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ffio_wfourcc
	mov	x0, x20
	mov	x1, x21
	bl	_avio_w8
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wb24
	ldr	w1, [x19, #16]
	mov	x0, x20
	cmp	w21, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_avio_wb64
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_avio_wb64
	b	LBB0_3
LBB0_2:
	bl	_avio_wb32
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_avio_wb32
LBB0_3:
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_avio_wb32
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w1, [x19]
	cbnz	w21, LBB0_9
; %bb.5:
	mov	x0, x20
	b	LBB0_13
LBB0_6:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	cbz	w21, LBB0_12
; %bb.8:
	mov	w0, #-1
	bl	_UINT64_C
	mov	x1, x0
LBB0_9:
	mov	x0, x20
	bl	_avio_wb64
	b	LBB0_14
LBB0_10:
	mov	x0, x20
	mov	w1, #0
	cbz	w21, LBB0_13
; %bb.11:
	bl	_avio_wb64
	b	LBB0_14
LBB0_12:
	mov	x0, x20
	mov	w1, #-1
LBB0_13:
	bl	_avio_wb32
LBB0_14:
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_avio_wb16
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wb16
	cbz	w21, LBB0_17
; %bb.15:
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _MODE_MOV@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MODE_MOV@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_av_log
LBB0_17:
	mov	w0, #32
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_INT32_MAX,4,2                  ; @INT32_MAX
	.comm	_MODE_ISM,8,3                   ; @MODE_ISM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdhd"

	.comm	_MODE_MOV,8,3                   ; @MODE_MOV
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"FATAL error, file duration too long for timebase, this file will not be\nplayable with QuickTime. Choose a different timebase with -video_track_timescale or a different container format\n"

	.no_dead_strip	_mov_write_mdhd_tag
.subsections_via_symbols
