	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_taskpool_expand            ## -- Begin function isc_taskpool_expand
	.p2align	4, 0x90
_isc_taskpool_expand:                   ## @isc_taskpool_expand
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	movl	$0, %edi
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
LBB0_2:
	callq	_REQUIRE
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorl	%r12d, %r12d
	cmpq	$0, (%r14)
	sete	%r12b
LBB0_4:
	movl	%r12d, %edi
	callq	_REQUIRE
	movq	(%rbx), %r12
	movq	%r12, -56(%rbp)
	cmpl	%r13d, (%r12)
	jae	LBB0_16
## %bb.5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	movl	16(%r12), %ecx
	movl	20(%r12), %edi
	movl	24(%r12), %esi
	leaq	-48(%rbp), %r8
	movl	%r13d, %edx
	callq	_alloc_pool
	movl	%eax, %ebx
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_17
## %bb.6:
	cmpl	$0, (%r12)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.12:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rcx,8), %rax
	movq	-48(%rbp), %rdx
	movq	8(%rdx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	-56(%rbp), %rax
	movq	8(%rax), %rax
	movq	$0, (%rax,%rcx,8)
	incq	%rcx
	movq	-56(%rbp), %r12
	movl	(%r12), %eax
	cmpq	%rax, %rcx
	jb	LBB0_13
## %bb.8:
	cmpl	%r13d, %eax
	jb	LBB0_9
	jmp	LBB0_15
LBB0_7:
	xorl	%eax, %eax
	cmpl	%r13d, %eax
	jae	LBB0_15
LBB0_9:
	movl	%eax, %r14d
	shlq	$3, %r14
	subl	%eax, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %esi
	movl	20(%r12), %edi
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdx
	addq	%r14, %rdx
	callq	_isc_task_create
	cmpl	(%r15), %eax
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_isc_task_setname
	addq	$8, %r14
	decl	%r13d
	jne	LBB0_10
LBB0_15:
	leaq	-56(%rbp), %rdi
	callq	_isc_taskpool_destroy
	movq	-48(%rbp), %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	$0, (%rbx)
	movq	%r12, (%r14)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_isc_taskpool_destroy
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"taskpool"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_taskpool_expand            ; -- Begin function isc_taskpool_expand
	.p2align	2
_isc_taskpool_expand:                   ; @isc_taskpool_expand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
LBB0_2:
	bl	_REQUIRE
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_REQUIRE
	ldr	x24, [x20]
	str	x24, [sp, #8]
	ldr	w8, [x24]
Lloh0:
	adrp	x23, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISC_R_SUCCESS@GOTPAGEOFF]
	cmp	w8, w21
	b.hs	LBB0_16
; %bb.6:
	str	xzr, [sp]
	ldp	w0, w1, [x24, #20]
	ldr	w3, [x24, #16]
	mov	x4, sp
	mov	x2, x21
	bl	_alloc_pool
	mov	x22, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.7:
	ldr	w8, [x24]
	cbz	w8, LBB0_11
; %bb.8:
	mov	x8, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, #8]
	lsl	x10, x8, #3
	ldr	x9, [x9, x10]
	ldr	x11, [sp]
	ldr	x11, [x11, #8]
	str	x9, [x11, x10]
	ldr	x9, [sp, #8]
	ldr	x9, [x9, #8]
	str	xzr, [x9, x10]
	add	x8, x8, #1
	ldr	x24, [sp, #8]
	ldr	w9, [x24]
	cmp	x8, x9
	b.lo	LBB0_9
; %bb.10:
	cmp	w9, w21
	b.lo	LBB0_12
	b	LBB0_15
LBB0_11:
	mov	w9, #0
	cmp	w9, w21
	b.hs	LBB0_15
LBB0_12:
	mov	w8, w9
	lsl	x25, x8, #3
	sub	w26, w21, w9
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x24, #16]
	ldr	x8, [sp]
	ldr	x8, [x8, #8]
	add	x2, x8, x25
	bl	_isc_task_create
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, x25]
	mov	x1, x21
	mov	x2, #0
	bl	_isc_task_setname
	add	x25, x25, #8
	subs	w26, w26, #1
	b.ne	LBB0_13
LBB0_15:
	add	x0, sp, #8
	bl	_isc_taskpool_destroy
	ldr	x24, [sp]
LBB0_16:
	str	xzr, [x20]
	str	x24, [x19]
	ldr	w22, [x23]
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	mov	x22, x0
	mov	x0, sp
	bl	_isc_taskpool_destroy
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"taskpool"

.subsections_via_symbols
