	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res2_inverse                   ## -- Begin function res2_inverse
	.p2align	4, 0x90
_res2_inverse:                          ## @res2_inverse
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rsi), %rdx
	movl	4(%rdx), %ecx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	imull	%r8d, %eax
	sarl	%eax
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
	subl	8(%rdx), %eax
	jle	LBB0_26
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %esi
	movslq	(%rcx), %rcx
	cltd
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addl	%ecx, %eax
	decl	%eax
	cltd
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	__vorbis_block_alloc
	movq	%rax, %r8
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movslq	%ecx, %rax
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.23:
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r14,%rcx,4)
	jne	LBB0_3
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_24
	jmp	LBB0_26
LBB0_2:
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_3:
	cmpq	%rax, %rcx
	je	LBB0_26
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_26
## %bb.5:
	movslq	-104(%rbp), %rdx                ## 4-byte Folded Reload
	addq	$4, -96(%rbp)                   ## 8-byte Folded Spill
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %esi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %esi
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r13
	cmpq	%rdx, %r15
	jge	LBB0_21
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_vorbis_book_decode
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	12(%rbx), %eax
	jge	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	%rax, (%r8,%r13,8)
	testq	%rax, %rax
	je	LBB0_26
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	testl	%r10d, %r10d
	jle	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpq	%rdx, %r15
	jge	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%r9d, %r12d
	imull	%r15d, %r12d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%rbx), %rcx
	movq	(%r8,%r13,8), %rax
	movslq	-4(%rax,%r14,4), %rax
	testl	%esi, (%rcx,%rax,4)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=3
	movl	8(%rbx), %edx
	addl	%r12d, %edx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_vorbis_book_decodevv_add
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	cmpl	$-1, %eax
	je	LBB0_26
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=3
	incq	%r15
	cmpq	%r10, %r14
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=3
	addl	%r9d, %r12d
	incq	%r14
	cmpq	%rdx, %r15
	jl	LBB0_15
	jmp	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	movq	%rdi, %rcx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdi
	jl	LBB0_6
LBB0_26:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res2_inverse                   ; -- Begin function res2_inverse
	.p2align	2
_res2_inverse:                          ; @res2_inverse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
                                        ; kill: def $w4 killed $w4 def $x4
	stp	x2, x4, [sp, #16]               ; 16-byte Folded Spill
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x26, [x1, #32]
	ldr	w8, [x0]
	mul	w8, w8, w4
	asr	w8, w8, #1
	ldp	w9, w10, [x26, #4]
	cmp	w9, w8
	csel	w8, w9, w8, lt
	sub	w8, w8, w10
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.1:
	mov	x25, x3
	mov	x24, x0
	ldr	w22, [x26]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #24]
	ldrsw	x27, [x9]
	sdiv	w8, w8, w22
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	w8, w27, w8
	sub	w8, w8, #1
	sdiv	w8, w8, w27
	lsl	w1, w8, #3
	bl	__vorbis_block_alloc
	mov	x23, x0
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sxtw	x8, w9
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x9, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x25, x9, lsl #2]
	cbnz	w10, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_27
LBB0_5:
	mov	x9, #0
LBB0_6:
	cmp	x9, x8
	b.eq	LBB0_27
; %bb.7:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_27
; %bb.8:
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	sxtw	x28, w9
	add	x9, x24, #4
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, #0
	mov	x24, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	mov	w9, #1
	lsl	w19, w9, w8
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x20, x20, x8
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x24, x24, #1
	cmp	x20, x28
	b.ge	LBB0_25
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cbnz	x8, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x0, [x8, #24]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_vorbis_book_decode
	cmn	w0, #1
	b.eq	LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [x26, #12]
	cmp	w0, w8
	b.ge	LBB0_27
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w0, sxtw #3]
	str	x8, [x23, x24, lsl #3]
	cbz	x8, LBB0_27
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	cmp	w27, #1
	b.lt	LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	x20, x28
	b.ge	LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x25, #0
	mul	w21, w22, w20
LBB0_20:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x23, x24, lsl #3]
	ldr	x9, [x26, #16]
	ldrsw	x8, [x8, x25, lsl #2]
	ldr	w9, [x9, x8, lsl #2]
	tst	w9, w19
	b.eq	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x9, [x9, #16]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=3
	ldr	w8, [x26, #8]
	add	w2, w21, w8
	ldp	x1, x3, [sp, #16]               ; 16-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	mov	x5, x22
	bl	_vorbis_book_decodevv_add
	cmn	w0, #1
	b.eq	LBB0_27
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=3
	add	x8, x25, #1
	cmp	x8, x27
	b.ge	LBB0_11
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=3
	add	x9, x20, x25
	add	x9, x9, #1
	add	w21, w21, w22
	mov	x25, x8
	cmp	x9, x28
	b.lt	LBB0_20
	b	LBB0_11
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
LBB0_26:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x9, x9, #1
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	cmp	x9, x8
	b.lt	LBB0_9
LBB0_27:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
