	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_halfrate                    ## -- Begin function ov_halfrate
	.p2align	4, 0x90
_ov_halfrate:                           ## @ov_halfrate
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_19
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_STREAMSET@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jle	LBB0_4
## %bb.2:
	leaq	28(%r12), %rdi
	callq	_vorbis_dsp_clear
	leaq	24(%r12), %rdi
	callq	_vorbis_block_clear
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movl	8(%r12), %esi
	testl	%esi, %esi
	js	LBB0_4
## %bb.3:
	movl	$-1, 8(%r12)
	movq	%r12, %rdi
	callq	_ov_pcm_seek
LBB0_4:
	cmpl	$0, 12(%r12)
	jle	LBB0_9
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	movl	%r14d, %esi
	callq	_vorbis_synthesis_halfrate
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	12(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.11:
	cmpq	$0, 16(%r12)
	je	LBB0_19
## %bb.12:
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jle	LBB0_15
## %bb.13:
	leaq	28(%r12), %rdi
	callq	_vorbis_dsp_clear
	leaq	24(%r12), %rdi
	callq	_vorbis_block_clear
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movl	8(%r12), %esi
	testl	%esi, %esi
	js	LBB0_15
## %bb.14:
	movl	$-1, 8(%r12)
	movq	%r12, %rdi
	callq	_ov_pcm_seek
LBB0_15:
	cmpl	$0, 12(%r12)
	jle	LBB0_19
## %bb.16:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vorbis_synthesis_halfrate
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movslq	12(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_19:
	movq	_OV_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV_EINVAL,4,2                  ## @OV_EINVAL
	.comm	_STREAMSET,8,3                  ## @STREAMSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_halfrate                    ; -- Begin function ov_halfrate
	.p2align	2
_ov_halfrate:                           ; @ov_halfrate
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_18
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _STREAMSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STREAMSET@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
	add	x0, x19, #28
	bl	_vorbis_dsp_clear
	add	x0, x19, #24
	bl	_vorbis_block_clear
	ldr	x8, [x21]
	str	x8, [x19]
	ldr	w1, [x19, #8]
	tbnz	w1, #31, LBB0_4
; %bb.3:
	mov	w8, #-1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_ov_pcm_seek
LBB0_4:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x22, #0
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x22
	mov	x1, x20
	bl	_vorbis_synthesis_halfrate
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #12]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_19
LBB0_9:
	cbz	w20, LBB0_18
; %bb.10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_18
; %bb.11:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_14
; %bb.12:
	add	x0, x19, #28
	bl	_vorbis_dsp_clear
	add	x0, x19, #24
	bl	_vorbis_block_clear
	ldr	x8, [x21]
	str	x8, [x19]
	ldr	w1, [x19, #8]
	tbnz	w1, #31, LBB0_14
; %bb.13:
	mov	w8, #-1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_ov_pcm_seek
LBB0_14:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x20, #0
	mov	x21, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	mov	w1, #0
	bl	_vorbis_synthesis_halfrate
	cbnz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #12]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_16
LBB0_18:
Lloh2:
	adrp	x8, _OV_EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OV_EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_19:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_EINVAL,4,2                  ; @OV_EINVAL
	.comm	_STREAMSET,8,3                  ; @STREAMSET
.subsections_via_symbols
