	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_stream_init                ## -- Begin function ogg_stream_init
	.p2align	4, 0x90
_ogg_stream_init:                       ## @ogg_stream_init
	.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
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movabsq	$4398046527488, %rax            ## imm = 0x40000004000
	movq	%rax, (%rbx)
	movl	$16384, %edi                    ## imm = 0x4000
	callq	__ogg_malloc
	movq	%rax, 32(%rbx)
	movl	4(%rbx), %edi
	callq	__ogg_malloc
	movq	%rax, 24(%rbx)
	movl	4(%rbx), %edi
	callq	__ogg_malloc
	movq	%rax, 16(%rbx)
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r15d, 8(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_ogg_stream_clear
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.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 ogg_stream_init
lCPI0_0:
	.long	16384                           ; 0x4000
	.long	1024                            ; 0x400
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ogg_stream_init
	.p2align	2
_ogg_stream_init:                       ; @ogg_stream_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w0, #16384
	bl	__ogg_malloc
	str	x0, [x19, #32]
	ldr	w0, [x19, #4]
	bl	__ogg_malloc
	str	x0, [x19, #24]
	ldr	w0, [x19, #4]
	bl	__ogg_malloc
	str	x0, [x19, #16]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	str	w20, [x19, #8]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_ogg_stream_clear
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
