	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_common_fields
_mxf_write_common_fields:               ## @mxf_write_common_fields
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	16(%rdi), %r12
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$513, %edx                      ## imm = 0x201
	callq	_mxf_write_local_tag
	cmpq	%r14, 16(%r12)
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_mxf_get_data_definition_ul
	jmp	LBB0_3
LBB0_1:
	movq	_smpte_12m_timecode_track_data_ul@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_avio_write
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$514, %edx                      ## imm = 0x202
	callq	_mxf_write_local_tag
	cmpq	%r14, 16(%r12)
	je	LBB0_7
## %bb.4:
	movq	(%r15), %rax
	cmpq	_ff_mxf_opatom_muxer@GOTPCREL(%rip), %rax
	jne	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	(%r12), %eax
	cltd
	idivl	4(%r12)
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_7:
	movl	8(%r12), %esi
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avio_wb64                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_smpte_12m_timecode_track_data_ul,4,2 ## @smpte_12m_timecode_track_data_ul
	.comm	_ff_mxf_opatom_muxer,4,2        ## @ff_mxf_opatom_muxer
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_mxf_write_common_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_common_fields
_mxf_write_common_fields:               ; @mxf_write_common_fields
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldp	x19, x22, [x0, #8]
	mov	x0, x19
	mov	w1, #16
	mov	w2, #513
	bl	_mxf_write_local_tag
	ldr	x8, [x22, #16]
	cmp	x8, x20
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_mxf_get_data_definition_ul
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, _smpte_12m_timecode_track_data_ul@GOTPAGE
Lloh1:
	ldr	x0, [x0, _smpte_12m_timecode_track_data_ul@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x0]
	mov	x0, x19
	mov	w2, #16
	bl	_avio_write
	mov	x0, x19
	mov	w1, #8
	mov	w2, #514
	bl	_mxf_write_local_tag
	ldr	x8, [x22, #16]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _ff_mxf_opatom_muxer@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ff_mxf_opatom_muxer@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldp	w8, w9, [x22]
	sdiv	w1, w8, w9
	b	LBB0_8
LBB0_7:
	ldr	w1, [x22, #8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_avio_wb64
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_smpte_12m_timecode_track_data_ul,4,2 ; @smpte_12m_timecode_track_data_ul
	.comm	_ff_mxf_opatom_muxer,4,2        ; @ff_mxf_opatom_muxer
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_mxf_write_common_fields
.subsections_via_symbols
