	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_space
_compute_space:                         ## @compute_space
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	_ED_MAX_SAMPLES_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movl	$4, %eax
	subl	%edx, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_dn_cfg@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	cltq
	addq	$4, %rax
	imulq	%rdx, %rax
	movq	_DN_C_SCH@GOTPCREL(%rip), %rdx
	movq	_DN_C_LINK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	movl	4(%rcx), %ecx
	shrq	%rax
	leal	(%rax,%rcx,4), %eax
	movq	_DN_C_FLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ecx
	jmp	LBB0_8
LBB0_3:
	movq	_DN_C_LINK@GOTPCREL(%rip), %rcx
	movq	_DN_C_SCH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_DN_C_FLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_dn_cfg@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	cltq
	addq	$4, %rax
	imulq	%rdx, %rax
	movl	4(%rcx), %ecx
	shrq	%rax
	leal	(%rax,%rcx,4), %eax
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dn_compat_calc_size
	jmp	LBB0_7
LBB0_5:
	movq	_DN_C_FS@GOTPCREL(%rip), %rax
	movq	_DN_C_QUEUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%eax, %eax
LBB0_7:
	movl	%ebx, (%r14)
	movq	_dn_cfg@GOTPCREL(%rip), %rcx
	movq	_DN_C_SCH@GOTPCREL(%rip), %rdx
	movq	_DN_C_FS@GOTPCREL(%rip), %rsi
	movq	_DN_C_LINK@GOTPCREL(%rip), %rdi
	movq	_DN_C_QUEUE@GOTPCREL(%rip), %r8
	movd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rsi), %xmm0
	pinsrd	$2, (%rdi), %xmm0
	pinsrd	$3, (%r8), %xmm0
	movq	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	movd	%ebx, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	pand	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	movdqa	%xmm1, %xmm3
	pinsrd	$3, 8(%rcx), %xmm3
	pcmpeqd	%xmm2, %xmm0
	pslld	$2, %xmm3
	pslld	$1, %xmm1
	pblendw	$207, %xmm3, %xmm1              ## xmm1 = xmm3[0,1,2,3],xmm1[4,5],xmm3[6,7]
	movq	_DN_C_FLOW@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ebx
	movl	12(%rcx), %edx
	shll	$2, %edx
	testl	%ebx, %ebx
	cmovel	%ebx, %edx
	pandn	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	addl	%edx, %ecx
	addl	%eax, %ecx
LBB0_8:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_ED_MAX_SAMPLES_NO,4,2          ## @ED_MAX_SAMPLES_NO
	.comm	_DN_C_LINK,4,2                  ## @DN_C_LINK
	.comm	_DN_C_SCH,4,2                   ## @DN_C_SCH
	.comm	_DN_C_FLOW,4,2                  ## @DN_C_FLOW
	.comm	_dn_cfg,16,2                    ## @dn_cfg
	.comm	_DN_C_FS,4,2                    ## @DN_C_FS
	.comm	_DN_C_QUEUE,4,2                 ## @DN_C_QUEUE
	.no_dead_strip	_compute_space
.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 compute_space
lCPI0_0:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_compute_space:                         ; @compute_space
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x9, _ED_MAX_SAMPLES_NO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ED_MAX_SAMPLES_NO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #4
	sub	w9, w10, w9, lsl #2
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
Lloh5:
	adrp	x20, _dn_cfg@GOTPAGE
Lloh6:
	ldr	x20, [x20, _dn_cfg@GOTPAGEOFF]
Lloh7:
	adrp	x25, _DN_C_SCH@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DN_C_SCH@GOTPAGEOFF]
Lloh9:
	adrp	x24, _DN_C_FS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _DN_C_FS@GOTPAGEOFF]
Lloh11:
	adrp	x23, _DN_C_LINK@GOTPAGE
Lloh12:
	ldr	x23, [x23, _DN_C_LINK@GOTPAGEOFF]
Lloh13:
	adrp	x22, _DN_C_QUEUE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _DN_C_QUEUE@GOTPAGEOFF]
Lloh15:
	adrp	x21, _DN_C_FLOW@GOTPAGE
Lloh16:
	ldr	x21, [x21, _DN_C_FLOW@GOTPAGEOFF]
	br	x11
LBB0_2:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x8, w9
	add	x8, x8, #4
	ldp	w9, w10, [x20]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	x8, x8, x9
	lsr	x8, x8, #1
	add	w0, w8, w10, lsl #2
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	b	LBB0_7
LBB0_3:
	mov	w0, #-1
	b	LBB0_8
LBB0_4:
	ldr	w8, [x23]
	ldr	w10, [x25]
	orr	w8, w10, w8
	ldr	w10, [x21]
	orr	w8, w8, w10
	sxtw	x9, w9
	add	x9, x9, #4
	ldp	w10, w11, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mul	x9, x9, x10
	lsr	x9, x9, #1
	add	w0, w9, w11, lsl #2
	b	LBB0_7
LBB0_5:
	bl	_dn_compat_calc_size
	mov	w8, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	ldr	w8, [x24]
	ldr	w9, [x22]
	orr	w8, w9, w8
LBB0_7:
	str	w8, [x19]
	ldr	d0, [x20]
	ldr	s1, [x25]
	ld1.s	{ v1 }[1], [x24]
	ld1.s	{ v1 }[2], [x23]
	add	x9, x20, #8
	ld1.s	{ v1 }[3], [x22]
	dup.4s	v2, w8
	and.16b	v1, v1, v2
	cmeq.4s	v1, v1, #0
	mov.s	v0[2], v0[0]
	ld1.s	{ v0 }[3], [x9]
Lloh17:
	adrp	x9, lCPI0_0@PAGE
Lloh18:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v2
	bic.16b	v0, v0, v1
	ldr	w9, [x21]
	ldr	w10, [x20, #12]
	lsl	w10, w10, #2
	tst	w9, w8
	csel	w8, wzr, w10, eq
	addv.4s	s0, v0
	fmov	w9, s0
	add	w8, w9, w8
	add	w0, w8, w0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_ED_MAX_SAMPLES_NO,4,2          ; @ED_MAX_SAMPLES_NO
	.comm	_DN_C_LINK,4,2                  ; @DN_C_LINK
	.comm	_DN_C_SCH,4,2                   ; @DN_C_SCH
	.comm	_DN_C_FLOW,4,2                  ; @DN_C_FLOW
	.comm	_dn_cfg,16,2                    ; @dn_cfg
	.comm	_DN_C_FS,4,2                    ; @DN_C_FS
	.comm	_DN_C_QUEUE,4,2                 ; @DN_C_QUEUE
	.no_dead_strip	_compute_space
.subsections_via_symbols
