	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_read                        ## -- Begin function ov_read
	.p2align	4, 0x90
_ov_read:                               ## @ov_read
	.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	%rcx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.23:
	movq	_OV_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_22
LBB0_1:
	movq	%rdi, %r12
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	leaq	20(%rdi), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	_OV_EOF@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_INITSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	callq	_vorbis_synthesis_pcmout
	testq	%rax, %rax
	jne	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	__fetch_and_process_packet
	cmpl	(%r14), %eax
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	jmp	LBB0_2
LBB0_21:
	movslq	%eax, %r13
	jmp	LBB0_22
LBB0_7:
	movq	%rax, %rbx
	jle	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_ov_info
	movq	(%rax), %rcx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx), %r13
	movq	%rax, %rcx
	orq	%r13, %rcx
	shrq	$32, %rcx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.11:
	cqto
	idivq	%r13
	movq	%rax, %r14
	jmp	LBB0_12
LBB0_8:
	movq	%rbx, %r13
	jmp	LBB0_22
LBB0_10:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %r14d
LBB0_12:
	cmpq	%r14, %rbx
	cmovlq	%rbx, %r14
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_18
## %bb.13:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	addq	$2, -64(%rbp)                   ## 8-byte Folded Spill
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	testq	%r14, %r14
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-96(%rbp), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rbx,4), %edi
	sarl	$9, %edi
	callq	_CLIP_TO_15
	movw	%ax, (%r15)
	incq	%rbx
	addq	%r13, %r15
	cmpq	%rbx, %r14
	jne	LBB0_16
	jmp	LBB0_17
LBB0_18:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_vorbis_synthesis_read
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, 8(%rax)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:
	movl	16(%rax), %eax
	movl	%eax, (%rcx)
LBB0_20:
	imulq	%r14, %r13
LBB0_22:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENED,8,3                     ## @OPENED
	.comm	_OV_EINVAL,8,3                  ## @OV_EINVAL
	.comm	_INITSET,8,3                    ## @INITSET
	.comm	_OV_EOF,4,2                     ## @OV_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_read                        ; -- Begin function ov_read
	.p2align	2
_ov_read:                               ; @ov_read
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OPENED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPENED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OV_EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV_EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	b	LBB0_20
LBB0_2:
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	add	x22, x0, #20
Lloh6:
	adrp	x25, _INITSET@GOTPAGE
Lloh7:
	ldr	x25, [x25, _INITSET@GOTPAGEOFF]
Lloh8:
	adrp	x26, _OV_EOF@GOTPAGE
Lloh9:
	ldr	x26, [x26, _OV_EOF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_vorbis_synthesis_pcmout
	cbnz	x0, LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	__fetch_and_process_packet
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	b	LBB0_3
LBB0_8:
	mov	x24, #0
	b	LBB0_20
LBB0_9:
	sxtw	x24, w0
	b	LBB0_20
LBB0_10:
	mov	x24, x0
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.11:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x0, x20
	mov	w1, #-1
	bl	_ov_info
	ldr	x26, [x0]
	sxtw	x8, w23
	lsl	x25, x26, #1
	sdiv	x8, x8, x25
	cmp	x24, x8
	csel	x19, x24, x8, lt
	cmp	x26, #1
	b.lt	LBB0_17
; %bb.12:
	mov	x24, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	add	x21, x21, #2
	cmp	x24, x26
	b.eq	LBB0_17
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	x19, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #8]
	ldr	x27, [x8, x24, lsl #3]
	mov	x28, x21
	mov	x23, x19
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27], #4
	asr	w0, w8, #9
	bl	_CLIP_TO_15
	strh	w0, [x28]
	add	x28, x28, x25
	subs	x23, x23, #1
	b.ne	LBB0_16
	b	LBB0_13
LBB0_17:
	mov	x0, x22
	mov	x1, x19
	bl	_vorbis_synthesis_read
	ldr	x8, [x20, #8]
	add	x8, x8, x19
	str	x8, [x20, #8]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cbz	x9, LBB0_19
; %bb.18:
	ldr	w8, [x20, #16]
	str	w8, [x9]
LBB0_19:
	mul	x24, x25, x19
LBB0_20:
	mov	x0, x24
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENED,8,3                     ; @OPENED
	.comm	_OV_EINVAL,8,3                  ; @OV_EINVAL
	.comm	_INITSET,8,3                    ; @INITSET
	.comm	_OV_EOF,4,2                     ; @OV_EOF
.subsections_via_symbols
