	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_build_vp8_headers
_ogg_build_vp8_headers:                 ## @ogg_build_vp8_headers
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	32(%rsi), %r15
	movq	_VP8_HEADER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_av_mallocz
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$79, %esi
	callq	_bytestream_put_byte
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_bytestream_put_buffer
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bytestream_put_byte
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bytestream_put_byte
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_byte
	movl	12(%r15), %esi
	movq	%rbx, %rdi
	callq	_bytestream_put_be16
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_bytestream_put_be16
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_bytestream_put_be24
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bytestream_put_be24
	movq	16(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.2:
	movq	24(%r13), %r9
	testq	%r9, %r9
	jle	LBB0_4
## %bb.3:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r13), %ecx
	movl	8(%r13), %r8d
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	16(%r13), %rcx
	movq	24(%r13), %rdx
	movq	%r13, %rdi
	movl	$64, %esi
	callq	_avpriv_set_pts_info
LBB0_4:
	movl	8(%r13), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream_put_be32
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_bytestream_put_be32
	movl	(%r13), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	16(%r14), %rdx
	addq	$4, %rdx
	movl	$0, (%rsp)
	movl	$7, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ogg_write_vorbiscomment
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$79, %esi
	callq	_bytestream_put_byte
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_bytestream_put_buffer
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_bytestream_put_byte
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_bytestream_put_byte
LBB0_8:
	movl	$1, (%r14)
	jmp	LBB0_9
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VP8_HEADER_SIZE,4,2            ## @VP8_HEADER_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VP80"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Changing time base from %d/%d to %d/%d\n"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
	.no_dead_strip	_ogg_build_vp8_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_build_vp8_headers
_ogg_build_vp8_headers:                 ; @ogg_build_vp8_headers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x23, [x1, #32]
Lloh0:
	adrp	x24, _VP8_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VP8_HEADER_SIZE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	w8, [x24]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	add	x0, sp, #8
	mov	w1, #79
	bl	_bytestream_put_byte
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_bytestream_put_buffer
	add	x0, sp, #8
	mov	w1, #1
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #1
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #0
	bl	_bytestream_put_byte
	ldr	w1, [x23, #12]
	add	x0, sp, #8
	bl	_bytestream_put_be16
	ldr	w1, [x23, #8]
	add	x0, sp, #8
	bl	_bytestream_put_be16
	ldr	w1, [x23, #4]
	add	x0, sp, #8
	bl	_bytestream_put_be24
	ldr	w1, [x23]
	add	x0, sp, #8
	bl	_bytestream_put_be24
	ldr	x6, [x20, #16]
	cmp	x6, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x5, [x20, #24]
	cmp	x5, #1
	b.lt	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldp	w3, w4, [x20, #4]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_av_log
	ldp	x3, x2, [x20, #16]
	mov	x0, x20
	mov	w1, #64
	bl	_avpriv_set_pts_info
LBB0_4:
	ldr	w1, [x20, #8]
	add	x0, sp, #8
	bl	_bytestream_put_be32
	ldr	w1, [x20, #4]
	add	x0, sp, #8
	bl	_bytestream_put_be32
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	add	x2, x8, #4
	mov	w0, #7
	mov	x1, x21
	mov	x3, x20
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_ogg_write_vorbiscomment
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	add	x0, sp, #8
	mov	w1, #79
	bl	_bytestream_put_byte
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_bytestream_put_buffer
	add	x0, sp, #8
	mov	w1, #2
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #32
	bl	_bytestream_put_byte
LBB0_7:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_9:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_VP8_HEADER_SIZE,4,2            ; @VP8_HEADER_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VP80"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Changing time base from %d/%d to %d/%d\n"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
	.no_dead_strip	_ogg_build_vp8_headers
.subsections_via_symbols
