	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acquire_free_pipe_for_head
_acquire_free_pipe_for_head:            ## @acquire_free_pipe_for_head
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 8(%rdx)
	je	LBB0_9
## %bb.1:
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movq	(%rdi), %r9
	movq	(%rdx), %r8
	incq	%rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%rax
	cmpq	$1, %rax
	jbe	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rax), %ecx
	shlq	$4, %rcx
	cmpq	%r8, (%r9,%rcx)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 8(%r9,%rcx)
	jne	LBB0_6
## %bb.5:
	addq	%rcx, %r9
	movq	%r9, %rdx
	jmp	LBB0_9
LBB0_7:
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	(%rdx), %rdx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	xorl	%edx, %edx
LBB0_9:
	movq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_acquire_free_pipe_for_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acquire_free_pipe_for_head
_acquire_free_pipe_for_head:            ; @acquire_free_pipe_for_head
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2, #8]
	cbz	w8, LBB0_10
; %bb.1:
	ldr	w10, [x1]
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.2:
	ldr	x8, [x0]
	ldr	x9, [x2]
	add	x10, x10, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x10, x10, #1
	cmp	x10, #1
	b.ls	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w12, w10, #2
	add	x11, x8, w12, uxtw #4
	ldr	x13, [x11]
	cmp	x13, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x8, x12, lsl #4
	ldr	w12, [x12, #8]
	cbnz	w12, LBB0_3
; %bb.6:
	mov	x0, x11
	ret
LBB0_7:
	ldr	x8, [x1, #8]
	ldr	x3, [x8]
	cbz	x3, LBB0_9
; %bb.8:
	ldr	x2, [x2]
	br	x3
LBB0_9:
	mov	x2, #0
LBB0_10:
	mov	x0, x2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_acquire_free_pipe_for_head
.subsections_via_symbols
