	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gxf_write_umf_material_description
_gxf_write_umf_material_description:    ## @gxf_write_umf_material_description
	.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	(%rdi), %r15
	movq	8(%rdi), %r13
	cmpl	$60000, 40(%r13)                ## imm = 0xEA60
	movl	$60, %eax
	movl	$50, %r12d
	cmovel	%eax, %r12d
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	callq	_ff_parse_creation_time_metadata
	movl	36(%r13), %edi
	movl	32(%r13), %esi
	movl	16(%r13), %edx
	movl	20(%r13), %ecx
	movl	24(%r13), %r8d
	movl	28(%r13), %r9d
	callq	_GXF_TIMECODE
	imull	$3600, %r12d, %r9d              ## imm = 0xE10
	movl	16(%r13), %ecx
	imull	%r9d, %ecx
	addl	(%r13), %ecx
	imull	$60, %r12d, %r8d
	movl	20(%r13), %edx
	imull	%r8d, %edx
	addl	%ecx, %edx
	movl	24(%r13), %ecx
	imull	%r12d, %ecx
	addl	%edx, %ecx
	addl	28(%r13), %ecx
	movl	%eax, %r14d
	movl	32(%r13), %esi
	movl	36(%r13), %edi
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	movl	%eax, %r10d
	movl	%ecx, %eax
	cltd
	idivl	%r8d
	movl	%eax, %r8d
	movl	%ecx, %eax
	cltd
	idivl	%r12d
	movl	%edx, %r9d
	movswl	%r10w, %ecx
	imull	$10923, %ecx, %ecx              ## imm = 0x2AAB
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$18, %ecx
	addl	%edx, %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %r10d
	movswl	%r10w, %edx
	movslq	%r8d, %rcx
	imulq	$-2004318071, %rcx, %rbx        ## imm = 0x88888889
	shrq	$32, %rbx
	addl	%ecx, %ebx
	movl	%ebx, %r8d
	shrl	$31, %r8d
	sarl	$5, %ebx
	addl	%r8d, %ebx
	imull	$60, %ebx, %ebx
	subl	%ebx, %ecx
	movslq	%eax, %r8
	imulq	$-2004318071, %r8, %rax         ## imm = 0x88888889
	shrq	$32, %rax
	addl	%r8d, %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	sarl	$5, %eax
	addl	%ebx, %eax
	imull	$60, %eax, %eax
	subl	%eax, %r8d
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_GXF_TIMECODE
	movl	%eax, %r12d
	movl	4(%r13), %esi
	movq	%r15, %rdi
	callq	_avio_wl32
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_avio_wl32
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_avio_wl32
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_avio_wl32
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_avio_wl32
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_wl32
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_avio_wl64
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_avio_wl64
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl16
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl16
	movl	8(%r13), %esi
	movq	%r15, %rdi
	callq	_avio_wl16
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_avio_wl16
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl16
	movl	12(%r13), %esi
	movq	%r15, %rdi
	callq	_avio_wl16
	movl	$48, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gxf_write_umf_material_description
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gxf_write_umf_material_description
_gxf_write_umf_material_description:    ; @gxf_write_umf_material_description
	.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
	ldp	x19, x22, [x0]
	ldr	w8, [x22, #40]
	mov	w9, #60000
	mov	w10, #50
	mov	w21, #60
	cmp	w8, w9
	csel	w23, w21, w10, eq
	str	wzr, [sp, #12]
	add	x1, sp, #12
	mov	w2, #1
	bl	_ff_parse_creation_time_metadata
	ldp	w1, w0, [x22, #32]
	ldp	w2, w3, [x22, #16]
	ldp	w4, w5, [x22, #24]
	bl	_GXF_TIMECODE
	mov	x20, x0
	ldr	w8, [x22]
	mov	w9, #3600
	mul	w9, w23, w9
	ldp	w10, w11, [x22, #16]
	madd	w8, w10, w9, w8
	mul	w10, w23, w21
	madd	w8, w11, w10, w8
	ldp	w11, w12, [x22, #24]
	madd	w8, w11, w23, w8
	add	w8, w8, w12
	ldp	w1, w0, [x22, #32]
	sdiv	w9, w8, w9
	sxth	w11, w9
	mov	w12, #10923
	mul	w11, w11, w12
	asr	w12, w11, #16
	lsr	w12, w12, #2
	add	w11, w12, w11, lsr #31
	mov	w12, #24
	msub	w9, w11, w12, w9
	sxth	w2, w9
	sdiv	w9, w8, w10
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	smull	x11, w9, w10
	lsr	x11, x11, #32
	add	w11, w11, w9
	asr	w12, w11, #5
	add	w11, w12, w11, lsr #31
	msub	w3, w11, w21, w9
	sdiv	w9, w8, w23
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #5
	add	w10, w11, w10, lsr #31
	msub	w4, w10, w21, w9
	msub	w5, w9, w23, w8
	bl	_GXF_TIMECODE
	mov	x21, x0
	ldr	w1, [x22, #4]
	mov	x0, x19
	bl	_avio_wl32
	ldr	w1, [x22]
	mov	x0, x19
	bl	_avio_wl32
	ldr	w1, [x22]
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl32
	ldr	w1, [x22]
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	x1, x20
	bl	_avio_wl32
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wl32
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_avio_wl64
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_avio_wl64
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl16
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl16
	ldr	w1, [x22, #8]
	mov	x0, x19
	bl	_avio_wl16
	mov	x0, x19
	mov	w1, #1
	bl	_avio_wl16
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl16
	ldr	w1, [x22, #12]
	mov	x0, x19
	bl	_avio_wl16
	mov	w0, #48
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gxf_write_umf_material_description
.subsections_via_symbols
