	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tta_write_trailer
_tta_write_trailer:                     ## @tta_write_trailer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	(%rdi), %rdi
	movl	(%r14), %esi
	callq	_avio_wl32
	movq	(%rbx), %rdi
	callq	_ffio_get_checksum
	movq	_UINT32_MAX@GOTPCREL(%rip), %r15
	xorl	(%r15), %eax
	movq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_avio_wl32
	movq	8(%r14), %rdi
	callq	_ffio_get_checksum
	xorl	(%r15), %eax
	movq	8(%r14), %rdi
	movl	%eax, %esi
	callq	_avio_wl32
	movq	8(%r14), %rdi
	leaq	-32(%rbp), %rsi
	callq	_avio_close_dyn_buf
	movq	(%rbx), %rdi
	movq	-32(%rbp), %rsi
	movl	%eax, %edx
	callq	_avio_write
	movq	$0, 8(%r14)
	movq	-32(%rbp), %rdi
	callq	_av_free
	movq	%rbx, %rdi
	callq	_tta_queue_flush
	movq	%rbx, %rdi
	callq	_ff_ape_write_tag
	movq	(%rbx), %rdi
	callq	_avio_flush
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.no_dead_strip	_tta_write_trailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tta_write_trailer
_tta_write_trailer:                     ; @tta_write_trailer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldp	x0, x20, [x0]
	ldr	w1, [x20]
	bl	_avio_wl32
	ldr	x0, [x19]
	bl	_ffio_get_checksum
Lloh0:
	adrp	x21, _UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UINT32_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	eor	w1, w8, w0
	ldr	x0, [x19]
	bl	_avio_wl32
	ldr	x0, [x20, #8]
	bl	_ffio_get_checksum
	ldr	w8, [x21]
	eor	w1, w8, w0
	ldr	x0, [x20, #8]
	bl	_avio_wl32
	ldr	x0, [x20, #8]
	add	x1, sp, #8
	bl	_avio_close_dyn_buf
	mov	x2, x0
	ldr	x0, [x19]
	ldr	x1, [sp, #8]
	bl	_avio_write
	str	xzr, [x20, #8]
	ldr	x0, [sp, #8]
	bl	_av_free
	mov	x0, x19
	bl	_tta_queue_flush
	mov	x0, x19
	bl	_ff_ape_write_tag
	ldr	x0, [x19]
	bl	_avio_flush
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.no_dead_strip	_tta_write_trailer
.subsections_via_symbols
