	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ov_open1
__ov_open1:                             ## @_ov_open1
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*%r13
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r12, 16(%rbx)
	movq	%r13, 56(%rbx)
	xorl	%eax, %eax
	callq	_ogg_sync_create
	movl	%eax, 52(%rbx)
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ogg_sync_bufferin
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movl	52(%rbx), %edi
	movq	%r14, %rsi
	callq	_ogg_sync_wrote
LBB0_5:
	cmpl	$-1, -44(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movl	$1, (%rbx)
LBB0_7:
	movl	$1, 4(%rbx)
	movl	$1, %edi
	movl	$1, %esi
	callq	__ogg_calloc
	movq	%rax, 40(%rbx)
	movl	4(%rbx), %edi
	movl	$1, %esi
	callq	__ogg_calloc
	movq	%rax, 32(%rbx)
	movl	$-1, %edi
	callq	_ogg_stream_create
	movl	%eax, 48(%rbx)
	movq	32(%rbx), %rdx
	movq	40(%rbx), %rsi
	leaq	24(%rbx), %rcx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__fetch_headers
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_PARTOPEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%rbx)
	jge	LBB0_11
## %bb.10:
	movq	%rax, 8(%rbx)
	jmp	LBB0_11
LBB0_8:
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_ov_clear
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_PARTOPEN,8,3                   ## @PARTOPEN
	.no_dead_strip	__ov_open1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ov_open1
__ov_open1:                             ; @_ov_open1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x24, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x24
	mov	w1, #0
	blr	x23
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	w22, #-1
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	x24, [x19, #16]
	str	x23, [x19, #56]
	bl	_ogg_sync_create
	str	w0, [x19, #52]
	cbz	x21, LBB0_5
; %bb.4:
	mov	x1, x20
	bl	_ogg_sync_bufferin
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	w0, [x19, #52]
	mov	x1, x20
	bl	_ogg_sync_wrote
LBB0_5:
	cmn	w22, #1
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	mov	w8, #1
	str	w8, [x19, #4]
	mov	w0, #1
	mov	w1, #1
	bl	__ogg_calloc
	str	x0, [x19, #40]
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	__ogg_calloc
	str	x0, [x19, #32]
	mov	w0, #-1
	bl	_ogg_stream_create
	str	w0, [x19, #48]
	ldp	x2, x1, [x19, #32]
	add	x3, x19, #24
	mov	x0, x19
	mov	x4, #0
	bl	__fetch_headers
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x8, _PARTOPEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARTOPEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_11
; %bb.9:
	str	x8, [x19, #8]
	b	LBB0_11
LBB0_10:
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_ov_clear
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_PARTOPEN,8,3                   ; @PARTOPEN
	.no_dead_strip	__ov_open1
.subsections_via_symbols
