	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_stream_data
_write_stream_data:                     ## @write_stream_data
	.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	(%rdi), %rbx
	movq	_INDEX_BASE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	addl	(%rsi), %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	movq	_ff_SBE2_STREAM_DESC_EVENT@GOTPCREL(%rip), %rsi
	callq	_write_chunk_header2
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_wl32
	movl	(%r12), %esi
	addl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_avio_wl32
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_wl32
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_write_pad
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_stream_codec_info
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_finish_chunk
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$10000000, %ecx                 ## imm = 0x989680
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_SBE2_STREAM_DESC_EVENT,4,2  ## @ff_SBE2_STREAM_DESC_EVENT
	.comm	_INDEX_BASE,4,2                 ## @INDEX_BASE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write stream codec info failed codec_type(0x%x)\n"

	.no_dead_strip	_write_stream_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_stream_data
_write_stream_data:                     ; @write_stream_data
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	w8, [x1]
Lloh0:
	adrp	x22, _INDEX_BASE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INDEX_BASE@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w8, w9, w8
	orr	w2, w8, #0x80000000
Lloh2:
	adrp	x1, _ff_SBE2_STREAM_DESC_EVENT@GOTPAGE
Lloh3:
	ldr	x1, [x1, _ff_SBE2_STREAM_DESC_EVENT@GOTPAGEOFF]
	bl	_write_chunk_header2
	mov	x0, x21
	mov	w1, #1
	bl	_avio_wl32
	ldr	w8, [x19]
	ldr	w9, [x22]
	add	w1, w9, w8
	mov	x0, x21
	bl	_avio_wl32
	mov	x0, x21
	mov	w1, #1
	bl	_avio_wl32
	mov	x0, x21
	mov	w1, #8
	bl	_write_pad
	mov	x0, x20
	mov	x1, x19
	bl	_write_stream_codec_info
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_finish_chunk
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #38528
	movk	w3, #152, lsl #16
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w0, #-1
LBB0_3:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_SBE2_STREAM_DESC_EVENT,4,2  ; @ff_SBE2_STREAM_DESC_EVENT
	.comm	_INDEX_BASE,4,2                 ; @INDEX_BASE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write stream codec info failed codec_type(0x%x)\n"

	.no_dead_strip	_write_stream_data
.subsections_via_symbols
