	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_opatom_body_partition
_mxf_write_opatom_body_partition:       ## @mxf_write_opatom_body_partition
	.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	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 4(%r15)
	jne	LBB0_2
## %bb.1:
	movq	_body_partition_key@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_2:
	movq	8(%rbx), %r14
	movq	(%rax), %r12
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mxf_write_partition
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mxf_write_klv_fill
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_avio_write
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_klv_encode_ber9_length
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_body_partition_key,8,3         ## @body_partition_key
	.no_dead_strip	_mxf_write_opatom_body_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_opatom_body_partition
_mxf_write_opatom_body_partition:       ; @mxf_write_opatom_body_partition
	.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, x0
	ldp	x19, x21, [x0, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x9, _body_partition_key@GOTPAGE
Lloh1:
	ldr	x9, [x9, _body_partition_key@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x3, x9, xzr, eq
	mov	w1, #1
	mov	w2, #0
	mov	w4, #0
	bl	_mxf_write_partition
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_mxf_write_klv_fill
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #16
	bl	_avio_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_klv_encode_ber9_length
	mov	w0, #0
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_body_partition_key,8,3         ; @body_partition_key
	.no_dead_strip	_mxf_write_opatom_body_partition
.subsections_via_symbols
