	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res2_forward                   ## -- Begin function res2_forward
	.p2align	4, 0x90
_res2_forward:                          ## @res2_forward
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %r15
	movl	(%rsi), %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	addl	%ecx, %ebx
	sarl	%ebx
	movl	%r9d, %esi
	imull	%ebx, %esi
	shll	$2, %esi
	movq	%rax, %rdi
	callq	__vorbis_block_alloc
	movq	%rax, -184(%rbp)
	testl	%r13d, %r13d
	jle	LBB0_22
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r14
	movslq	%r13d, %r11
	leaq	-8(%r14), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rcx, %rdx
	shrq	$3, %rdx
	incq	%rdx
	cmpl	$8, %ebx
	setb	%sil
	cmpl	$1, %r13d
	setne	%cl
	orb	%sil, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	%r14, %rcx
	andq	$-8, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	imulq	%r11, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %rcx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	andq	$-2, %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	andl	$3, %ebx
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movq	%r11, %r8
	shlq	$5, %r8
	movq	%r11, %rcx
	shlq	$6, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%r11, %rcx
	shlq	$4, %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	leaq	(,%r11,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	16(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%r11,8), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	movq	-144(%rbp), %r10                ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r9
	addq	$4, -64(%rbp)                   ## 8-byte Folded Spill
	cmpq	%r11, %r9
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_19
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	cmpl	$1, (%rcx,%r9,4)
	sbbq	$-1, %rdx
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx,%r9,8), %rsi
	leaq	(%rax,%r9,4), %rcx
	subq	%rsi, %rcx
	cmpq	$32, %rcx
	setb	%cl
	orb	-41(%rbp), %cl                  ## 1-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$8, -136(%rbp)                  ## 8-byte Folded Reload
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorl	%ebx, %ebx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rsi,%rbx,4), %xmm0
	movups	16(%rsi,%rbx,4), %xmm1
	movups	%xmm0, -16(%rcx)
	movups	%xmm1, (%rcx)
	movups	32(%rsi,%rbx,4), %xmm0
	movups	48(%rsi,%rbx,4), %xmm1
	movups	%xmm0, -16(%rcx,%r8)
	movups	%xmm1, (%rcx,%r8)
	addq	$16, %rbx
	addq	%rdx, %rcx
	addq	$-2, %rdi
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, -128(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rcx
	imulq	%r11, %rcx
	addq	%r9, %rcx
	movups	(%rsi,%rbx,4), %xmm0
	movups	16(%rsi,%rbx,4), %xmm1
	movups	%xmm0, (%rax,%rcx,4)
	movups	%xmm1, 16(%rax,%rcx,4)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%r9,%rcx), %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r15
	notq	%r15
	addq	%r14, %r15
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi,%rbx,4), %edx
	movl	%edx, (%rax,%r12,4)
	incq	%rbx
	addq	%r11, %r12
	decq	%rcx
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$3, %r15
	jb	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%r12,4), %r15
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r12,4), %r13
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r12,4), %rdx
	addq	%r11, %r12
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rcx
	movl	(%rsi,%rbx,4), %r14d
	movl	%r14d, (%rdi,%r15)
	movq	%rcx, %r14
	movl	4(%rsi,%rbx,4), %ecx
	movl	%ecx, (%rdi,%r12,4)
	movl	8(%rsi,%rbx,4), %ecx
	movl	%ecx, (%rdi,%rdx)
	movl	12(%rsi,%rbx,4), %ecx
	movl	%ecx, (%rdi,%r13)
	addq	$4, %rbx
	addq	%r10, %rdi
	cmpq	%rbx, %r14
	jne	LBB0_18
	jmp	LBB0_2
LBB0_19:
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.20:
	movq	__encodepart@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-184(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %ecx
	movq	16(%rbp), %r8
	xorl	%eax, %eax
	callq	__01forward
	jmp	LBB0_23
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__encodepart,4,2                ## @_encodepart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res2_forward                   ; -- Begin function res2_forward
	.p2align	2
_res2_forward:                          ; @res2_forward
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x6
	mov	x24, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
	ldr	w25, [x1]
	cmp	w25, #0
	cinc	w26, w25, lt
	asr	w9, w26, #1
	mul	w9, w5, w9
	lsl	w1, w9, #2
	mov	x0, x8
	bl	__vorbis_block_alloc
	str	x0, [sp, #8]
	cmp	w24, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x8, #0
	mov	x9, #0
	sbfx	x10, x26, #1, #31
	sxtw	x11, w24
	cmp	w10, #16
	ccmp	w24, #1, #0, hs
	cset	w12, ne
	and	x13, x10, #0xfffffffffffffff0
	mul	x14, x13, x11
	add	x15, x0, #32
	lsl	x16, x11, #6
	lsl	x17, x11, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x15, x15, #4
	cmp	x9, x11
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w1, [x22, x9, lsl #2]
	cmp	w1, #0
	cinc	x8, x8, ne
	cmp	w25, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23, x9, lsl #3]
	add	x2, x0, x9, lsl #2
	sub	x2, x2, x1
	cmp	x2, #64
	cset	w2, lo
	orr	w2, w12, w2
	tbz	w2, #0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, #0
	mov	x2, x9
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x9, x14
	add	x3, x1, #32
	mov	x4, x13
	mov	x5, x15
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x3, #-32]
	ldp	q2, q3, [x3], #64
	stp	q0, q1, [x5, #-32]
	stp	q2, q3, [x5]
	add	x5, x5, x16
	subs	x4, x4, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, x13
	cmp	x13, x10
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x0, x2, lsl #2
	sub	x3, x10, x4
	add	x1, x1, x4, lsl #2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x1], #4
	str	w4, [x2]
	add	x2, x2, x17
	subs	x3, x3, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	cbz	x8, LBB0_13
; %bb.12:
Lloh0:
	adrp	x8, __encodepart@GOTPAGE
Lloh1:
	ldr	x8, [x8, __encodepart@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1
	mov	x4, x19
	bl	__01forward
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__encodepart,4,2                ; @_encodepart
.subsections_via_symbols
