	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ijk_threadpool_create          ## -- Begin function ijk_threadpool_create
	.p2align	4, 0x90
_ijk_threadpool_create:                 ## @ijk_threadpool_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	jle	LBB0_16
## %bb.1:
	movl	%esi, %ebx
	xorl	%r12d, %r12d
	testl	%esi, %esi
	jle	LBB0_17
## %bb.2:
	movl	%edi, %r15d
	movq	_MAX_THREADS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jl	LBB0_17
## %bb.3:
	movq	_MAX_QUEUE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_17
## %bb.4:
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %r14
	movl	%ebx, (%rax)
	leal	(,%r15,4), %esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, 16(%r14)
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 24(%r14)
	leaq	36(%r14), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:
	movq	%r14, %rdi
	addq	$32, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testq	%rax, %rax
	je	LBB0_7
LBB0_15:
	movq	%r14, %rdi
	callq	_ijk_threadpool_free
LBB0_16:
	xorl	%r12d, %r12d
LBB0_17:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.8:
	cmpq	$0, 24(%r14)
	je	LBB0_15
## %bb.9:
	movq	_ijk_threadpool_thread@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_pthread_create
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movl	%r15d, %r15d
	shlq	$2, %r15
	xorl	%ecx, %ecx
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	incl	8(%r14)
	incl	4(%r14)
	leaq	4(%rcx), %rbx
	cmpq	%rbx, %r15
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r14), %rax
	leaq	(%rax,%rcx), %rdi
	addq	$4, %rdi
	movl	(%r12), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_pthread_create
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_11
LBB0_14:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ijk_threadpool_destroy
	jmp	LBB0_17
LBB0_12:
	movq	%r14, %r12
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_THREADS,4,2                ## @MAX_THREADS
	.comm	_MAX_QUEUE,4,2                  ## @MAX_QUEUE
	.comm	_ijk_threadpool_thread,4,2      ## @ijk_threadpool_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ijk_threadpool_create          ; -- Begin function ijk_threadpool_create
	.p2align	2
_ijk_threadpool_create:                 ; @ijk_threadpool_create
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x19, #0
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _MAX_THREADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_THREADS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX_QUEUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w21, #8, ge
	b.lt	LBB0_8
; %bb.3:
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.4:
	str	w21, [x19]
	lsl	w1, w20, #2
	mov	w0, #1
	bl	_calloc
	str	x0, [x19, #16]
	mov	x0, x21
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #24]
	add	x0, x19, #36
	mov	x1, #0
	bl	_pthread_mutex_init
	cbnz	x0, LBB0_6
; %bb.5:
	add	x0, x19, #32
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	x0, LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_ijk_threadpool_free
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.10:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.11:
Lloh6:
	adrp	x21, _ijk_threadpool_thread@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ijk_threadpool_thread@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	cbnz	x0, LBB0_15
; %bb.12:
	mov	x8, #0
	mov	w9, w20
	lsl	x20, x9, #2
	movi.2s	v8, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldur	d0, [x19, #4]
	add.2s	v0, v0, v8
	stur	d0, [x19, #4]
	add	x22, x8, #4
	cmp	x20, x22
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x19, #16]
	add	x8, x9, x8
	add	x0, x8, #4
	ldr	w2, [x21]
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	mov	x8, x22
	cbz	x0, LBB0_13
LBB0_15:
	mov	x0, x19
	mov	w1, #0
	bl	_ijk_threadpool_destroy
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_THREADS,4,2                ; @MAX_THREADS
	.comm	_MAX_QUEUE,4,2                  ; @MAX_QUEUE
	.comm	_ijk_threadpool_thread,4,2      ; @ijk_threadpool_thread
.subsections_via_symbols
