	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_generic_blockpool_available_count ## -- Begin function vcos_generic_blockpool_available_count
	.p2align	4, 0x90
_vcos_generic_blockpool_available_count: ## @vcos_generic_blockpool_available_count
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ASSERT_POOL
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_vcos_mutex_lock
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	leaq	16(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	(%rax), %r12
	incq	%r13
	addq	$16, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rbx), %r13
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %r15
	leaq	(%r15,%r14), %rbx
	movq	%rbx, %rdi
	callq	_ASSERT_SUBPOOL
	cmpq	$0, 8(%r15,%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vcos_mutex_unlock
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_vcos_generic_blockpool_available_count ; -- Begin function vcos_generic_blockpool_available_count
	.p2align	2
_vcos_generic_blockpool_available_count: ; @vcos_generic_blockpool_available_count
	.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
	mov	x20, x0
	bl	_ASSERT_POOL
	add	x19, x20, #8
	mov	x0, x19
	bl	_vcos_mutex_lock
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x21, #0
	mov	x24, #0
	add	x25, x20, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x22, x8, x23
	mov	x0, x22
	bl	_ASSERT_SUBPOOL
	ldr	x8, [x22, #8]
	cmp	x8, #0
	csel	x8, x25, x22, eq
	ldr	x8, [x8]
	add	x21, x8, x21
	add	x24, x24, #1
	ldr	x8, [x20]
	add	x23, x23, #16
	cmp	x24, x8
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x19
	bl	_vcos_mutex_unlock
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
