	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function free_pipes
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_free_pipes:                            ## @free_pipes
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movslq	(%rsi), %rdi
	callq	_DE_ACT
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_is_pipe_allocated
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	_PIPE_STATE_STOPPED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movl	(%rbx), %ecx
	xorl	%edx, %edx
	movl	$0, %esi
	cmpl	$8, %eax
	jb	LBB0_13
## %bb.6:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm8
	pshufd	$0, %xmm8, %xmm7                ## xmm7 = xmm8[0,0,0,0]
	leal	-8(%rdx), %edi
	movl	%edi, %esi
	shrl	$3, %esi
	incl	%esi
	testl	%edi, %edi
	je	LBB0_7
## %bb.8:
	movl	%esi, %edi
	andl	$-2, %edi
	movl	$4, %ebx
	movd	%ebx, %xmm1
	paddd	%xmm8, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [16,16,16,16]
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm7, %xmm0
	paddd	%xmm3, %xmm0
	movdqa	%xmm1, %xmm5
	paddd	%xmm3, %xmm5
	pslld	$23, %xmm0
	paddd	%xmm6, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm2, %xmm0
	pslld	$23, %xmm5
	paddd	%xmm6, %xmm5
	cvttps2dq	%xmm5, %xmm5
	por	%xmm4, %xmm5
	movdqa	%xmm3, %xmm4
	paddd	%xmm9, %xmm4
	movdqa	%xmm7, %xmm2
	paddd	%xmm4, %xmm2
	paddd	%xmm1, %xmm4
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm0, %xmm2
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm5, %xmm4
	paddd	%xmm10, %xmm3
	addl	$-2, %edi
	jne	LBB0_9
	jmp	LBB0_10
LBB0_4:
	movl	$-1, %esi
	jmp	LBB0_16
LBB0_7:
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	pxor	%xmm4, %xmm4
LBB0_10:
	testb	$1, %sil
	je	LBB0_12
## %bb.11:
	paddd	%xmm3, %xmm7
	movl	$4, %esi
	movd	%esi, %xmm0
	paddd	%xmm0, %xmm8
	pshufd	$0, %xmm8, %xmm0                ## xmm0 = xmm8[0,0,0,0]
	paddd	%xmm3, %xmm0
	pslld	$23, %xmm7
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm1, %xmm7
	cvttps2dq	%xmm7, %xmm3
	por	%xmm3, %xmm2
	pslld	$23, %xmm0
	paddd	%xmm1, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm0, %xmm4
LBB0_12:
	por	%xmm4, %xmm2
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	por	%xmm2, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	cmpl	%edx, %eax
	je	LBB0_15
LBB0_13:
	subl	%edx, %eax
	addl	%edx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	btsl	%ecx, %esi
	incl	%ecx
	decl	%eax
	jne	LBB0_14
LBB0_15:
	notl	%esi
LBB0_16:
	andl	%esi, (%r14)
	andl	%esi, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIPE_STATE_STOPPED,8,3         ## @PIPE_STATE_STOPPED
	.no_dead_strip	_free_pipes
.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 free_pipes
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_free_pipes:                            ; @free_pipes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldrsw	x0, [x1]
	bl	_DE_ACT
	ldr	w1, [x20]
	mov	x0, x19
	bl	_is_pipe_allocated
	cmp	w0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _PIPE_STATE_STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIPE_STATE_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	w9, [x20]
	cmp	w8, #16
	b.hs	LBB0_8
; %bb.6:
	mov	w10, #0
	mov	w11, #0
	b	LBB0_11
LBB0_7:
	mov	w8, #-1
	b	LBB0_14
LBB0_8:
	fmov	s3, w9
	dup.4s	v0, w9
	movi.4s	v1, #4
	add.4s	v1, v3, v1
	dup.4s	v1, v1[0]
	and	w10, w8, #0xfffffff0
	movi.4s	v2, #8
	add.4s	v2, v3, v2
	dup.4s	v2, v2[0]
	movi.4s	v4, #12
	add.4s	v3, v3, v4
	dup.4s	v3, v3[0]
Lloh6:
	adrp	x11, lCPI0_0@PAGE
Lloh7:
	ldr	q5, [x11, lCPI0_0@PAGEOFF]
	movi.2d	v4, #0000000000000000
	movi.4s	v6, #1
	movi.4s	v7, #16
	mov	x11, x10
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v0, v5
	add.4s	v20, v1, v5
	add.4s	v21, v2, v5
	add.4s	v22, v3, v5
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	ushl.4s	v21, v6, v21
	ushl.4s	v22, v6, v22
	orr.16b	v4, v19, v4
	orr.16b	v16, v20, v16
	orr.16b	v17, v21, v17
	orr.16b	v18, v22, v18
	add.4s	v5, v5, v7
	subs	w11, w11, #16
	b.ne	LBB0_9
; %bb.10:
	orr.16b	v0, v16, v4
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	w8, w10
	b.eq	LBB0_13
LBB0_11:
	sub	w8, w8, w10
	add	w9, w10, w9
	mov	w10, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	w12, w10, w9
	orr	w11, w12, w11
	add	w9, w9, #1
	subs	w8, w8, #1
	b.ne	LBB0_12
LBB0_13:
	mvn	w8, w11
LBB0_14:
	mov	w0, #0
	ldr	d0, [x19]
	dup.2s	v1, w8
	and.8b	v0, v0, v1
	str	d0, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIPE_STATE_STOPPED,8,3         ; @PIPE_STATE_STOPPED
	.no_dead_strip	_free_pipes
.subsections_via_symbols
