	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function mdct_init
LCPI0_0:
	.long	0x40000000                      ## float 2
LCPI0_4:
	.long	0x40800000                      ## float 4
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_3:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mdct_init
	.p2align	4, 0x90
_mdct_init:                             ## @mdct_init
	.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
	movl	%esi, %ebx
	movq	%rdi, %r13
	leal	3(%rbx), %edi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	movl	%edi, %r15d
	sarl	$2, %r15d
	andl	$-4, %edi
	callq	__ogg_malloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	(%r15,%rbx), %edi
	shll	$3, %edi
	callq	__ogg_malloc
	movq	%rax, %r14
	cvtsi2ss	%ebx, %xmm0
	movss	%xmm0, -60(%rbp)                ## 4-byte Spill
	callq	_log
	movl	%eax, %r12d
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_log
	movl	%eax, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	callq	_rint
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 4(%r13)
	movq	%r14, 24(%r13)
	movq	%rax, 8(%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$4, %ebx
	jl	LBB0_10
## %bb.1:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %eax
	shrl	%eax
	addl	%ecx, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ecx
	leaq	(%r14,%rax,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$1, %r15d
	movq	_M_PI@GOTPCREL(%rip), %rbx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	cltd
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	idivl	%r14d
	imull	%r12d, %eax
	movl	%eax, %edi
	callq	_cos
	cvtsd2ss	%xmm0, %xmm0
	callq	_FLOAT_CONV
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, -8(%r13,%r15,8)
	movl	(%rbx), %eax
	cltd
	idivl	%r14d
	imull	%r12d, %eax
	movl	%eax, %edi
	callq	_sin
	cvtsd2ss	%xmm0, %xmm0
	xorps	LCPI0_1(%rip), %xmm0
	callq	_FLOAT_CONV
	movq	%rax, (%r13,%r15,8)
	movl	(%rbx), %eax
	cltd
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	idivl	%r14d
	imull	%r15d, %eax
	movl	%eax, %edi
	callq	_cos
	cvtsd2ss	%xmm0, %xmm0
	callq	_FLOAT_CONV
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%rax, -8(%r13,%r15,8)
	movl	(%rbx), %eax
	cltd
	idivl	%r14d
	movl	%r15d, %edi
	imull	%eax, %edi
	callq	_sin
	cvtsd2ss	%xmm0, %xmm0
	callq	_FLOAT_CONV
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%r13,%r15,8)
	addl	$4, %r12d
	addq	$2, %r15
	decq	%rcx
	jne	LBB0_2
## %bb.3:
	cmpl	$8, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_10
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, %r14
	leal	7(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$3, %r12d
	movl	%eax, %eax
	leaq	(%rcx,%rax,8), %r15
	movl	$2, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	cltd
	idivl	%r13d
	imull	%ebx, %eax
	movl	%eax, %edi
	callq	_cos
	mulsd	LCPI0_2(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	callq	_FLOAT_CONV
	movq	%rax, -8(%r15,%rbx,4)
	movl	(%r14), %eax
	cltd
	idivl	%r13d
	movl	%ebx, %edi
	imull	%eax, %edi
	callq	_sin
	mulsd	LCPI0_3(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	callq	_FLOAT_CONV
	movq	%rax, (%r15,%rbx,4)
	addq	$4, %rbx
	decq	%r12
	jne	LBB0_5
## %bb.6:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	$-1, %r8d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r8d
	addb	$-2, %al
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	xorl	%esi, %esi
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	%ebx, %edx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	andl	%esi, %edx
	movl	$1, %eax
	shll	%cl, %eax
	testl	%edx, %edx
	cmovel	%edx, %eax
	orl	%eax, %edi
	incl	%ecx
	movl	%ebx, %edx
	sarl	%cl, %edx
	testl	%edx, %edx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, %eax
	orl	%r8d, %eax
	movl	$-2, %ecx
	subl	%eax, %ecx
	movl	%ecx, (%r9,%rsi,8)
	movl	%edi, 4(%r9,%rsi,8)
	incq	%rsi
	cmpq	%r10, %rsi
	jne	LBB0_7
LBB0_10:
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	divss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_FLOAT_CONV
	movq	%rax, 16(%r13)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mdct_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mdct_init
	.p2align	2
_mdct_init:                             ; @mdct_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x21, x1
	mov	x19, x0
	add	w8, w1, #3
	cmp	w1, #0
	csel	w8, w8, w1, lt
	asr	w24, w8, #2
	and	w0, w8, #0xfffffffc
	bl	__ogg_malloc
	mov	x20, x0
	add	w8, w24, w21
	lsl	w0, w8, #3
	bl	__ogg_malloc
	mov	x23, x0
	scvtf	s8, w21
	fmov	s0, s8
	bl	_log
	mov	x22, x0
	fmov	s0, #2.00000000
	bl	_log
	sdiv	w0, w22, w0
	bl	_rint
	stp	w0, w21, [x19]
	str	x23, [x19, #24]
	str	x20, [x19, #8]
	cmp	w21, #4
	b.lt	LBB0_15
; %bb.1:
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	mov	x26, #0
	mov	w27, #0
	lsr	w8, w21, #1
	lsl	w28, w21, #1
	add	x22, x23, w8, uxtw #3
Lloh0:
	adrp	x25, _M_PI@GOTPAGE
Lloh1:
	ldr	x25, [x25, _M_PI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	sdiv	w8, w8, w21
	mul	w0, w8, w27
	bl	_cos
	fcvt	s0, d0
	bl	_FLOAT_CONV
	lsl	x19, x26, #3
	add	x20, x23, x19
	str	x0, [x20]
	ldr	w8, [x25]
	sdiv	w8, w8, w21
	mul	w0, w8, w27
	bl	_sin
	fcvt	s0, d0
	fneg	s0, s0
	bl	_FLOAT_CONV
	str	x0, [x20, #8]
	ldr	w8, [x25]
	sdiv	w8, w8, w28
	add	w20, w26, #1
	mul	w0, w8, w20
	bl	_cos
	fcvt	s0, d0
	bl	_FLOAT_CONV
	add	x19, x22, x19
	str	x0, [x19]
	ldr	w8, [x25]
	sdiv	w8, w8, w28
	mul	w0, w8, w20
	bl	_sin
	fcvt	s0, d0
	bl	_FLOAT_CONV
	str	x0, [x19, #8]
	add	w27, w27, #4
	add	x26, x26, #2
	subs	x24, x24, #1
	b.ne	LBB0_2
; %bb.3:
	cmp	w21, #8
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
	b.lt	LBB0_15
; %bb.4:
	add	w8, w21, #7
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w24, w8, #3
	add	x8, x23, w21, uxtw #3
	add	x22, x8, #8
	mov	w23, #2
	fmov	d9, #0.50000000
	fmov	d10, #-0.50000000
	mov	x26, x24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	sdiv	w8, w8, w21
	mul	w0, w8, w23
	bl	_cos
	fmul	d0, d0, d9
	fcvt	s0, d0
	bl	_FLOAT_CONV
	stur	x0, [x22, #-8]
	ldr	w8, [x25]
	sdiv	w8, w8, w21
	mul	w0, w8, w23
	bl	_sin
	fmul	d0, d0, d10
	fcvt	s0, d0
	bl	_FLOAT_CONV
	str	x0, [x22], #16
	add	w23, w23, #4
	subs	x26, x26, #1
	b.ne	LBB0_5
; %bb.6:
	mov	x8, #0
	sub	w9, w27, #1
	mov	w10, #-1
	lsl	w9, w10, w9
	sub	w10, w27, #2
	mov	w11, #1
	lsl	w12, w11, w10
	clz	w13, w12
	mov	w14, #32
	sub	w13, w14, w13
	dup.4s	v0, w12
	and	w14, w13, #0x3c
Lloh2:
	adrp	x15, lCPI0_0@PAGE
Lloh3:
	ldr	q1, [x15, lCPI0_0@PAGEOFF]
	mov	w15, #-2
	movi.4s	v2, #1
	movi.4s	v3, #4
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	orr	w17, w16, w9
	sub	w17, w15, w17
	add	x0, x20, x8, lsl #3
	stp	w17, w16, [x0]
	add	x8, x8, #1
	cmp	x8, x24
	b.eq	LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w10, #3
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	mov	w16, #0
	mov	x17, x12
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	dup.4s	v6, w8
	movi.2d	v5, #0000000000000000
	mov	x16, x14
	mov.16b	v7, v1
	mov.16b	v4, v0
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov.16b	v16, v4
	ushl.4s	v17, v2, v7
	mvn.16b	v4, v7
	sshl.4s	v4, v0, v4
	ext.16b	v16, v16, v4, #12
	and.16b	v16, v16, v6
	cmeq.4s	v16, v16, #0
	bic.16b	v16, v17, v16
	orr.16b	v5, v16, v5
	add.4s	v7, v7, v3
	subs	w16, w16, #4
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ext.16b	v6, v5, v5, #8
	orr.8b	v5, v5, v6
	mov.s	w16, v5[1]
	fmov	w17, s5
	orr	w16, w17, w16
	cmp	w13, w14
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov.s	w17, v4[3]
	mov	x0, x14
LBB0_14:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w1, w11, w0
	add	w2, w0, #1
	tst	w17, w8
	csel	w17, wzr, w1, eq
	orr	w16, w17, w16
	asr	w17, w12, w2
	mov	x0, x2
	cmp	w13, w2
	b.ne	LBB0_14
	b	LBB0_7
LBB0_15:
	fmov	s0, #4.00000000
	fdiv	s0, s0, s8
	bl	_FLOAT_CONV
	str	x0, [x19, #16]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
.subsections_via_symbols
