	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcos_generic_blockpool_subpool_init
_vcos_generic_blockpool_subpool_init:   ## @vcos_generic_blockpool_subpool_init
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	16(%rbp), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_vcos_unused
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	movl	%r14d, %r9d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	xorl	%eax, %eax
	movl	16(%rbp), %ebx
	pushq	%rbx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	%r14
	callq	_vcos_log_trace
	addq	$32, %rsp
	movq	_VCOS_BLOCKPOOL_SUBPOOL_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	%r13, (%r12)
	leaq	8(%r13), %rdi
	movq	%rdi, 8(%r12)
	movl	%ebx, %esi
	callq	_VCOS_BLOCKPOOL_ROUND_UP
	addq	$-8, %rax
	movq	%rax, 8(%r12)
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setae	%dil
	callq	_vcos_assert
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r12), %rcx
	movl	(%r15), %r8d
	movl	8(%r15), %r9d
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, 16(%r12)
	movl	%r14d, 20(%r12)
	movq	$0, 24(%r12)
	movq	%r15, 40(%r12)
	movq	_VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	movl	$188, %esi
	callq	_memset
LBB0_2:
	movq	8(%r12), %rcx
	movslq	(%r15), %rax
	movslq	%r14d, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rdx
	addq	%rcx, %rdx
	movq	%rdx, 32(%r12)
	testl	%esi, %esi
	jle	LBB0_6
## %bb.3:
	movq	24(%r12), %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, (%rcx)
	movq	%rcx, %rsi
	addq	%rax, %rcx
	cmpq	%rdx, %rcx
	jb	LBB0_4
## %bb.5:
	subq	%rax, %rcx
	movq	%rcx, 24(%r12)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: pool %p subpool %p mem %p pool_size %d num_blocks %d align %d flags %x"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_VCOS_BLOCKPOOL_SUBPOOL_MAGIC,4,2 ## @VCOS_BLOCKPOOL_SUBPOOL_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"%s: mem %p subpool->start %p pool->block_size %d pool->block_data_size %d"

	.comm	_VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE,8,3 ## @VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE
	.no_dead_strip	_vcos_generic_blockpool_subpool_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcos_generic_blockpool_subpool_init
_vcos_generic_blockpool_subpool_init:   ; @vcos_generic_blockpool_subpool_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x6
	mov	x25, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x6
	bl	_vcos_unused
Lloh0:
	adrp	x26, _VCOS_FUNCTION@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VCOS_FUNCTION@GOTPAGEOFF]
	ldr	w1, [x26]
	stp	x25, x24, [sp, #32]
	mov	x8, x20
	stp	x22, x8, [sp, #16]
	stp	x19, x23, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_vcos_log_trace
Lloh4:
	adrp	x8, _VCOS_BLOCKPOOL_SUBPOOL_MAGIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VCOS_BLOCKPOOL_SUBPOOL_MAGIC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	add	x0, x23, #8
	stp	x23, x0, [x19]
	mov	x1, x25
	bl	_VCOS_BLOCKPOOL_ROUND_UP
	sub	x8, x0, #8
	str	x8, [x19, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, hs
	bl	_vcos_assert
	ldr	w1, [x26]
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #8]
	ldr	w10, [x21]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_vcos_log_trace
	stp	w20, w20, [x19, #16]
	str	xzr, [x19, #24]
	str	x21, [x19, #40]
Lloh9:
	adrp	x8, _VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ls	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	mov	w1, #188
	mov	x2, x22
	bl	_memset
LBB0_2:
	ldr	x9, [x19, #8]
	ldrsw	x8, [x21]
	sxtw	x10, w20
	mul	x11, x8, x10
	add	x10, x9, x11
	str	x10, [x19, #32]
	cmp	w11, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x11, [x19, #24]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	x11, [x9]
	add	x12, x9, x8
	cmp	x12, x10
	mov	x11, x9
	mov	x9, x12
	b.lo	LBB0_4
; %bb.5:
	sub	x8, x12, x8
	str	x8, [x19, #24]
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: pool %p subpool %p mem %p pool_size %d num_blocks %d align %d flags %x"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_VCOS_BLOCKPOOL_SUBPOOL_MAGIC,4,2 ; @VCOS_BLOCKPOOL_SUBPOOL_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"%s: mem %p subpool->start %p pool->block_size %d pool->block_data_size %d"

	.comm	_VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE,8,3 ; @VCOS_BLOCKPOOL_DEBUG_MEMSET_MAX_SIZE
	.no_dead_strip	_vcos_generic_blockpool_subpool_init
.subsections_via_symbols
