	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_idle_secondary_pipe       ## -- Begin function find_idle_secondary_pipe
	.p2align	4, 0x90
_find_idle_secondary_pipe:              ## @find_idle_secondary_pipe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %ecx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movl	(%rdx), %edx
	notl	%edx
	addl	%ecx, %edx
	movq	(%rdi), %rax
	movslq	%edx, %rsi
	shlq	$4, %rsi
	cmpq	$0, 8(%rax,%rsi)
	je	LBB0_2
LBB0_3:
	movq	%rcx, %rdx
	shlq	$4, %rdx
	addq	$-8, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decq	%rcx
	movq	(%rdi), %rsi
	cmpq	$0, (%rsi,%rdx)
	leaq	-16(%rdx), %rdx
	jne	LBB0_4
## %bb.6:
	movl	%ecx, %eax
	shlq	$4, %rax
	addq	%rax, %rsi
	movq	%rsi, %rax
	movl	%ecx, %edx
	jmp	LBB0_7
LBB0_2:
	addq	%rsi, %rax
LBB0_7:
	movl	%edx, (%rax)
LBB0_8:
	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	_find_idle_secondary_pipe       ; -- Begin function find_idle_secondary_pipe
	.p2align	2
_find_idle_secondary_pipe:              ; @find_idle_secondary_pipe
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w9, [x2]
	mvn	w9, w9
	add	w9, w8, w9
	ldr	x10, [x0]
	add	x11, x10, w9, sxtw #4
	ldr	x11, [x11, #8]
	cbz	x11, LBB0_7
LBB0_2:
	lsl	x9, x8, #4
	sub	x9, x9, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x8, #1
	ldr	x10, [x0]
	ldr	x11, [x10, x9]
	sub	x9, x9, #16
	cbnz	x11, LBB0_3
; %bb.5:
	add	x0, x10, w8, uxtw #4
	mov	x9, x8
	str	w9, [x0]
	ret
LBB0_6:
	mov	x0, #0
	ret
LBB0_7:
	sxtw	x8, w9
	add	x0, x10, x8, lsl #4
	str	w9, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
