	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vorbis_analysis_headerout      ## -- Begin function vorbis_analysis_headerout
	.p2align	4, 0x90
_vorbis_analysis_headerout:             ## @vorbis_analysis_headerout
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.10:
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	_OV_EIMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_oggpack_writeinit
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	__vorbis_pack_info
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_1:
	movq	_OV_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_2
LBB0_12:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	__ogg_free
LBB0_14:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rax, %rdi
	callq	__ogg_malloc
	movq	%rax, %rbx
	movq	%rax, 16(%r12)
	movl	-48(%rbp), %r15d
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_memcpy
	movq	16(%r12), %rax
	movq	%rax, 32(%r13)
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rax, 24(%r13)
	movl	$1, (%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 4(%r13)
	movl	$0, 20(%r13)
	movq	%r14, %rdi
	callq	_oggpack_reset
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	__vorbis_pack_comment
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_16:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	__ogg_free
LBB0_18:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rax, %rdi
	callq	__ogg_malloc
	movq	%rax, %rbx
	movq	%rax, 8(%r12)
	movl	-48(%rbp), %r15d
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_memcpy
	movq	8(%r12), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rax, 24(%rbx)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r14, %rdi
	callq	_oggpack_reset
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	__vorbis_pack_books
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_19
LBB0_2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	testq	%r12, %r12
	je	LBB0_22
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_oggpack_writeclear
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	__ogg_free
LBB0_5:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	__ogg_free
LBB0_7:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	__ogg_free
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	$0, 16(%r12)
LBB0_22:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	__ogg_free
LBB0_21:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rax, %rdi
	callq	__ogg_malloc
	movq	%rax, %rbx
	movq	%rax, (%r12)
	movl	-48(%rbp), %r15d
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_memcpy
	movq	(%r12), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movq	%r14, %rdi
	callq	_oggpack_bytes
	movq	%rax, 24(%rbx)
	movabsq	$8589934592, %rax               ## imm = 0x200000000
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r14, %rdi
	callq	_oggpack_writeclear
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_OV_EIMPL,4,2                   ## @OV_EIMPL
	.comm	_OV_EFAULT,4,2                  ## @OV_EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vorbis_analysis_headerout
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_1:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vorbis_analysis_headerout
	.p2align	2
_vorbis_analysis_headerout:             ; @vorbis_analysis_headerout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	ldr	x27, [x0]
	cbz	x27, LBB0_11
; %bb.1:
	mov	x24, x1
Lloh0:
	adrp	x8, _OV_EIMPL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV_EIMPL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x23, [x0, #8]
	add	x0, sp, #8
	bl	_oggpack_writeinit
	add	x0, sp, #8
	mov	x1, x23
	bl	__vorbis_pack_info
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	x0, [x27, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	__ogg_free
LBB0_4:
	add	x0, sp, #8
	bl	_oggpack_bytes
	bl	__ogg_malloc
	mov	x25, x0
	str	x0, [x27, #16]
	ldr	w26, [sp, #8]
	add	x0, sp, #8
	bl	_oggpack_bytes
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_memcpy
	ldr	x8, [x27, #16]
	str	x8, [x22, #32]
	add	x0, sp, #8
	bl	_oggpack_bytes
	str	x0, [x22, #24]
	mov	w8, #1
	str	w8, [x22]
	stur	xzr, [x22, #12]
	stur	xzr, [x22, #4]
	str	wzr, [x22, #20]
	add	x0, sp, #8
	bl	_oggpack_reset
	add	x0, sp, #8
	mov	x1, x24
	bl	__vorbis_pack_comment
	cbnz	x0, LBB0_12
; %bb.5:
	ldr	x0, [x27, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	__ogg_free
LBB0_7:
	add	x0, sp, #8
	bl	_oggpack_bytes
	bl	__ogg_malloc
	mov	x24, x0
	str	x0, [x27, #8]
	ldr	w25, [sp, #8]
	add	x0, sp, #8
	bl	_oggpack_bytes
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_memcpy
	ldr	x8, [x27, #8]
	str	x8, [x21, #32]
	add	x0, sp, #8
	bl	_oggpack_bytes
	stp	xzr, x0, [x21, #16]
	str	xzr, [x21, #8]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	add	x0, sp, #8
	bl	_oggpack_reset
	add	x0, sp, #8
	mov	x1, x23
	bl	__vorbis_pack_books
	cbnz	x0, LBB0_12
; %bb.8:
	ldr	x0, [x27]
	cbz	x0, LBB0_10
; %bb.9:
	bl	__ogg_free
LBB0_10:
	add	x0, sp, #8
	bl	_oggpack_bytes
	bl	__ogg_malloc
	mov	x20, x0
	str	x0, [x27]
	ldr	w21, [sp, #8]
	add	x0, sp, #8
	bl	_oggpack_bytes
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x27]
	str	x8, [x19, #32]
	add	x0, sp, #8
	bl	_oggpack_bytes
	stp	xzr, x0, [x19, #16]
	str	xzr, [x19, #8]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19]
	add	x0, sp, #8
	bl	_oggpack_writeclear
	mov	w20, #0
	b	LBB0_20
LBB0_11:
Lloh7:
	adrp	x8, _OV_EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OV_EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x22
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, x21
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	cbz	x27, LBB0_20
; %bb.13:
	add	x0, sp, #8
	bl	_oggpack_writeclear
	ldr	x0, [x27, #16]
	cbz	x0, LBB0_15
; %bb.14:
	bl	__ogg_free
LBB0_15:
	ldr	x0, [x27, #8]
	cbz	x0, LBB0_17
; %bb.16:
	bl	__ogg_free
LBB0_17:
	ldr	x0, [x27]
	cbz	x0, LBB0_19
; %bb.18:
	bl	__ogg_free
LBB0_19:
	stp	xzr, xzr, [x27]
	str	xzr, [x27, #16]
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_EIMPL,4,2                   ; @OV_EIMPL
	.comm	_OV_EFAULT,4,2                  ; @OV_EFAULT
.subsections_via_symbols
