	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_xiph_codecpriv
_put_xiph_codecpriv:                    ## @put_xiph_codecpriv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdx), %rax
	movq	_AV_CODEC_ID_VORBIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$30, %ecx
	movl	$42, %eax
	cmovel	%ecx, %eax
	movl	12(%rdx), %edi
	movl	8(%rdx), %esi
	leaq	-48(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movl	%eax, %edx
	callq	_avpriv_split_xiph_headers
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_avio_w8
	movl	-60(%rbp), %esi
	movq	%rbx, %rdi
	callq	_put_xiph_size
	movl	-56(%rbp), %esi
	movq	%rbx, %rdi
	callq	_put_xiph_size
	movq	-48(%rbp), %rsi
	movl	-60(%rbp), %edx
	movq	%rbx, %rdi
	callq	_avio_write
	movq	-40(%rbp), %rsi
	movl	-56(%rbp), %edx
	movq	%rbx, %rdi
	callq	_avio_write
	movq	-32(%rbp), %rsi
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	callq	_avio_write
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movl	$-1, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_VORBIS,8,3         ## @AV_CODEC_ID_VORBIS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Extradata corrupt.\n"

	.no_dead_strip	_put_xiph_codecpriv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_xiph_codecpriv
_put_xiph_codecpriv:                    ; @put_xiph_codecpriv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x2]
Lloh3:
	adrp	x9, _AV_CODEC_ID_VORBIS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_VORBIS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #42
	mov	w9, #30
	csel	w8, w9, w8, eq
	ldp	w1, w0, [x2, #8]
	add	x3, sp, #16
	add	x4, sp, #4
	mov	x2, x8
	bl	_avpriv_split_xiph_headers
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #2
	bl	_avio_w8
	ldr	w1, [sp, #4]
	mov	x0, x19
	bl	_put_xiph_size
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_put_xiph_size
	ldr	x1, [sp, #16]
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_avio_write
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_avio_write
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_avio_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_VORBIS,8,3         ; @AV_CODEC_ID_VORBIS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Extradata corrupt.\n"

	.no_dead_strip	_put_xiph_codecpriv
.subsections_via_symbols
