	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tta_write_packet
_tta_write_packet:                      ## @tta_write_packet
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	leaq	28(%rbx), %rdi
	leaq	24(%rbx), %rsi
	movq	_FF_PACKETLIST_FLAG_REF_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdx
	callq	_ff_packet_list_put
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	20(%rbx), %edi
	movl	8(%r15), %esi
	callq	_avio_wl32
	movq	(%r15), %rcx
	addl	%ecx, 16(%rbx)
	xorl	%eax, %eax
	cmpq	%rcx, (%rbx)
	je	LBB0_5
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	$1, 8(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_PACKETLIST_FLAG_REF_PACKET,4,2 ## @FF_PACKETLIST_FLAG_REF_PACKET
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid frame durations\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_tta_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tta_write_packet
_tta_write_packet:                      ; @tta_write_packet
	.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	x19, x0
	ldr	x21, [x0]
	add	x0, x21, #28
	add	x1, x21, #24
Lloh0:
	adrp	x8, _FF_PACKETLIST_FLAG_REF_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_PACKETLIST_FLAG_REF_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, x20
	bl	_ff_packet_list_put
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w0, [x21, #20]
	ldr	w1, [x20, #8]
	bl	_avio_wl32
	ldr	x8, [x20]
	ldr	w9, [x21, #16]
	add	w9, w9, w8
	str	w9, [x21, #16]
	ldr	x9, [x21]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	mov	w8, #1
	str	x8, [x21, #8]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_PACKETLIST_FLAG_REF_PACKET,4,2 ; @FF_PACKETLIST_FLAG_REF_PACKET
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frame durations\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_tta_write_packet
.subsections_via_symbols
