	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_generic_blockpool_extend  ## -- Begin function vcos_generic_blockpool_extend
	.p2align	4, 0x90
_vcos_generic_blockpool_extend:         ## @vcos_generic_blockpool_extend
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ASSERT_POOL
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_vcos_log_trace
	movl	(%rbx), %edi
	cmpl	$1, %edi
	jle	LBB0_2
## %bb.1:
	movq	_VCOS_EACCESS@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_VCOS_EINVAL@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.3:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.4:
	movq	_VCOS_BLOCKPOOL_MAX_SUBPOOLS@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jle	LBB0_11
## %bb.5:
	addl	%r15d, %edi
	movl	%edi, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	$2, %edi
	jl	LBB0_11
## %bb.6:
	movq	8(%rbx), %r8
	movl	%edi, %r9d
	decq	%r9
	movl	$1, %esi
	cmpl	$2, %edi
	je	LBB0_9
## %bb.7:
	leaq	64(%r8), %rdi
	movq	%r9, %rdx
	andq	$-2, %rdx
	negq	%rdx
	movl	$1, %esi
	movq	_VCOS_BLOCKPOOL_SUBPOOL_MAGIC@GOTPCREL(%rip), %rcx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %ebx
	movl	%ebx, -24(%rdi)
	movups	%xmm0, -40(%rdi)
	movl	(%rcx), %ebx
	movl	%ebx, (%rdi)
	movups	%xmm0, -16(%rdi)
	addq	$48, %rdi
	leaq	(%rdx,%rsi), %rbx
	addq	$2, %rbx
	addq	$2, %rsi
	cmpq	$1, %rbx
	jne	LBB0_8
LBB0_9:
	testb	$1, %r9b
	je	LBB0_11
## %bb.10:
	movq	_VCOS_BLOCKPOOL_SUBPOOL_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	(%rsi,%rsi,2), %rdx
	movl	%ecx, 16(%r8,%rdx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r8,%rdx,8)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: pool %p num_extensions %d num_blocks %d"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_VCOS_EACCESS,4,2               ## @VCOS_EACCESS
	.comm	_VCOS_BLOCKPOOL_MAX_SUBPOOLS,4,2 ## @VCOS_BLOCKPOOL_MAX_SUBPOOLS
	.comm	_VCOS_EINVAL,4,2                ## @VCOS_EINVAL
	.comm	_VCOS_BLOCKPOOL_SUBPOOL_MAGIC,4,2 ## @VCOS_BLOCKPOOL_SUBPOOL_MAGIC
	.comm	_VCOS_SUCCESS,4,2               ## @VCOS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_generic_blockpool_extend  ; -- Begin function vcos_generic_blockpool_extend
	.p2align	2
_vcos_generic_blockpool_extend:         ; @vcos_generic_blockpool_extend
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ASSERT_POOL
Lloh0:
	adrp	x8, _VCOS_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	bl	_vcos_log_trace
	ldr	w9, [x19]
	cmp	w9, #1
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _VCOS_EACCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCOS_EACCESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh7:
	adrp	x8, _VCOS_EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VCOS_EINVAL@GOTPAGEOFF]
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.4:
Lloh9:
	adrp	x10, _VCOS_BLOCKPOOL_MAX_SUBPOOLS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VCOS_BLOCKPOOL_MAX_SUBPOOLS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w10, w21
	b.le	LBB0_9
; %bb.5:
	add	w8, w9, w21
	stp	w8, w20, [x19]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	ldr	x9, [x19, #8]
	add	x9, x9, #40
	sub	x10, x8, #1
Lloh12:
	adrp	x11, _VCOS_BLOCKPOOL_SUBPOOL_MAGIC@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VCOS_BLOCKPOOL_SUBPOOL_MAGIC@GOTPAGEOFF]
Lloh14:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x9]
	stp	xzr, xzr, [x9, #-16]
	add	x9, x9, #24
	subs	x10, x10, #1
	b.ne	LBB0_7
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: pool %p num_extensions %d num_blocks %d"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_VCOS_EACCESS,4,2               ; @VCOS_EACCESS
	.comm	_VCOS_BLOCKPOOL_MAX_SUBPOOLS,4,2 ; @VCOS_BLOCKPOOL_MAX_SUBPOOLS
	.comm	_VCOS_EINVAL,4,2                ; @VCOS_EINVAL
	.comm	_VCOS_BLOCKPOOL_SUBPOOL_MAGIC,4,2 ; @VCOS_BLOCKPOOL_SUBPOOL_MAGIC
	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
.subsections_via_symbols
