	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _fetch_headers
__fetch_headers:                        ## @_fetch_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -96(%rbp)
	testq	%r8, %r8
	je	LBB0_1
LBB0_4:
	movq	8(%r13), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ogg_page_serialno
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ogg_stream_reset_serialno
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_6:
	movq	_STREAMSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_vorbis_info_init
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vorbis_comment_init
	xorl	%r14d, %r14d
	leaq	-112(%rbp), %rbx
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	8(%r13), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ogg_stream_pagein
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rdi
	movq	%rbx, %rsi
	callq	_ogg_stream_packetout
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_vorbis_synthesis_headerin
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	incl	%r14d
	cmpl	$3, %r14d
	jne	LBB0_8
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	__get_next_page
	testq	%rax, %rax
	js	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$3, %r14d
	jl	LBB0_7
LBB0_17:
	leaq	-112(%rbp), %rdi
	callq	_ogg_packet_release
	leaq	-80(%rbp), %rdi
	callq	_ogg_page_release
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_1:
	movq	%r12, %r14
	movq	_CHUNKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	__get_next_page
	movq	%rax, %r12
	movq	_OV_EREAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_18
## %bb.2:
	testq	%r12, %r12
	movq	%r14, %r12
	jns	LBB0_4
## %bb.3:
	movq	_OV_ENOTVORBIS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_18
LBB0_10:
	movq	_OV_EBADHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
LBB0_13:
	movl	%eax, %r12d
LBB0_11:
	leaq	-112(%rbp), %rdi
	callq	_ogg_packet_release
	leaq	-80(%rbp), %rdi
	callq	_ogg_page_release
	movq	%r15, %rdi
	callq	_vorbis_info_clear
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vorbis_comment_clear
	movq	_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_18:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNKSIZE,4,2                  ## @CHUNKSIZE
	.comm	_OV_EREAD,8,3                   ## @OV_EREAD
	.comm	_OV_ENOTVORBIS,4,2              ## @OV_ENOTVORBIS
	.comm	_STREAMSET,4,2                  ## @STREAMSET
	.comm	_OV_EBADHEADER,4,2              ## @OV_EBADHEADER
	.comm	_OPENED,4,2                     ## @OPENED
	.no_dead_strip	__fetch_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _fetch_headers
__fetch_headers:                        ; @_fetch_headers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x25, _CHUNKSIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CHUNKSIZE@GOTPAGEOFF]
	cbz	x4, LBB0_12
LBB0_1:
	ldr	x23, [x19, #8]
	mov	x0, x22
	bl	_ogg_page_serialno
	mov	x1, x0
	mov	x0, x23
	bl	_ogg_stream_reset_serialno
	cbz	x24, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x24]
LBB0_3:
Lloh2:
	adrp	x8, _STREAMSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STREAMSET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x21
	bl	_vorbis_info_init
	mov	x0, x20
	bl	_vorbis_comment_init
	mov	w24, #0
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_ogg_stream_pagein
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	_ogg_stream_packetout
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_vorbis_synthesis_headerin
	cbnz	w0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w24, w24, #1
	cmp	w24, #3
	b.ne	LBB0_5
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	__get_next_page
	tbnz	x0, #63, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, #3
	b.lt	LBB0_4
LBB0_11:
	add	x0, sp, #8
	bl	_ogg_packet_release
	add	x0, sp, #32
	bl	_ogg_page_release
	mov	w23, #0
	b	LBB0_18
LBB0_12:
	ldr	w2, [x25]
	add	x1, sp, #32
	mov	x0, x19
	bl	__get_next_page
	mov	x23, x0
Lloh5:
	adrp	x8, _OV_EREAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OV_EREAD@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.13:
	tbnz	x23, #63, LBB0_19
; %bb.14:
	add	x22, sp, #32
	b	LBB0_1
LBB0_15:
Lloh8:
	adrp	x8, _OV_EBADHEADER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OV_EBADHEADER@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	b	LBB0_17
LBB0_16:
	mov	x23, x0
LBB0_17:
	add	x0, sp, #8
	bl	_ogg_packet_release
	add	x0, sp, #32
	bl	_ogg_page_release
	mov	x0, x21
	bl	_vorbis_info_clear
	mov	x0, x20
	bl	_vorbis_comment_clear
Lloh11:
	adrp	x8, _OPENED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPENED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh14:
	adrp	x8, _OV_ENOTVORBIS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OV_ENOTVORBIS@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNKSIZE,4,2                  ; @CHUNKSIZE
	.comm	_OV_EREAD,8,3                   ; @OV_EREAD
	.comm	_OV_ENOTVORBIS,4,2              ; @OV_ENOTVORBIS
	.comm	_STREAMSET,4,2                  ; @STREAMSET
	.comm	_OV_EBADHEADER,4,2              ; @OV_EBADHEADER
	.comm	_OPENED,4,2                     ; @OPENED
	.no_dead_strip	__fetch_headers
.subsections_via_symbols
