	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gxf_write_umf_media_description
_gxf_write_umf_media_description:       ## @gxf_write_umf_media_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	24(%rdi), %r15
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	subl	4(%r15), %eax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r15)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$12, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_gxf_write_umf_media_timecode
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	movq	_SEEK_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_avio_seek
	movl	%r14d, %esi
	subl	%r13d, %esi
	movq	%rbx, %rdi
	callq	_avio_wl16
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_avio_seek
	leaq	1(%r15), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	movq	%rcx, %r15
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%eax, %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	cmpq	%rax, %r15
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movq	8(%rax), %r13
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wl16
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wl16
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wl16
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wl16
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	28(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	movl	28(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	_ES_NAME_PATTERN@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_avio_write
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wb16
	movl	(%r12), %edi
	callq	_strlen
	cmpl	$85, %eax
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	addl	$-86, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	incl	%r14d
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movl	8(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %rdx
	movq	(%rdx), %rax
	movl	(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$131, %eax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_gxf_write_umf_media_dv
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_gxf_write_umf_media_mpeg
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_gxf_write_umf_media_audio
	jmp	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	callq	_avio_tell
	subl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES_NAME_PATTERN,4,2            ## @ES_NAME_PATTERN
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_gxf_write_umf_media_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_media_description
_gxf_write_umf_media_description:       ; @gxf_write_umf_media_description
	.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	x20, x0
	ldp	x19, x25, [x0, #16]
	mov	x0, x19
	bl	_avio_tell
	ldr	w8, [x25, #4]
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	sub	w8, w0, w8
	str	w8, [x25]
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_16
; %bb.1:
	mov	x26, #0
	add	x27, x25, #12
Lloh0:
	adrp	x28, _ES_NAME_PATTERN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ES_NAME_PATTERN@GOTPAGEOFF]
Lloh2:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25, #8]
	mov	x0, x19
	bl	_gxf_write_umf_media_timecode
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_avio_tell
	mov	x23, x0
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_avio_seek
	sub	w1, w23, w22
	mov	x0, x19
	bl	_avio_wl16
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x23
	bl	_avio_seek
	add	x9, x26, #1
	ldrsw	x8, [x20]
	cmp	x26, x8
	mov	x26, x9
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	x26, w8, uxtw
	mov	x23, x27
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x23, [x8, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_avio_tell
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl16
	ldr	w1, [x23]
	mov	x0, x19
	bl	_avio_wl16
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl16
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl16
	ldr	w1, [x25, #28]
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl32
	ldr	w1, [x25, #28]
	mov	x0, x19
	bl	_avio_wl32
	ldr	w24, [x28]
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_avio_write
	ldr	w1, [x23]
	mov	x0, x19
	bl	_avio_wb16
	ldr	w0, [x28]
	bl	_strlen
	cmp	w0, #85
	b.gt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w24, w0, #86
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
	adds	w24, w24, #1
	b.lo	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23, #12]
	mov	x0, x19
	bl	_avio_wl32
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_avio_wl32
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_avio_wl32
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl32
	cmp	x23, x27
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	x2, [x8, x26, lsl #3]
	ldr	x8, [x2]
	ldr	w8, [x8]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #131
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_gxf_write_umf_media_dv
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x2
	bl	_gxf_write_umf_media_mpeg
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_gxf_write_umf_media_audio
	b	LBB0_3
LBB0_16:
	mov	x0, x19
	bl	_avio_tell
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w0, w0, w8
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ES_NAME_PATTERN,4,2            ; @ES_NAME_PATTERN
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_gxf_write_umf_media_description
.subsections_via_symbols
