	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijk_threadpool_thread
_ijk_threadpool_thread:                 ## @ijk_threadpool_thread
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	28(%rdi), %r14
	leaq	48(%rdi), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
	divq	%rsi
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, 16(%r12)
	decq	%rcx
	movq	%rcx, (%r12)
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	*%rbx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
	jmp	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	setne	%al
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rdx
	movq	_IJK_IMMEDIATE_SHUTDOWN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_IJK_LEISURELY_SHUTDOWN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	sete	%dl
	testb	%dl, %al
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	movq	40(%r12), %rdx
	movq	%rax, %rsi
	shlq	$4, %rsi
	movq	8(%rdx,%rsi), %rbx
	movl	(%rdx,%rsi), %r13d
	movl	4(%rdx,%rsi), %edi
	incq	%rax
	movslq	24(%r12), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_12
LBB0_13:
	decl	32(%r12)
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	xorl	%edi, %edi
	callq	_pthread_exit
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IJK_IMMEDIATE_SHUTDOWN,8,3     ## @IJK_IMMEDIATE_SHUTDOWN
	.comm	_IJK_LEISURELY_SHUTDOWN,8,3     ## @IJK_LEISURELY_SHUTDOWN
	.no_dead_strip	_ijk_threadpool_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijk_threadpool_thread
_ijk_threadpool_thread:                 ; @ijk_threadpool_thread
	.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
	add	x19, x0, #28
	add	x21, x0, #48
Lloh0:
	adrp	x24, _IJK_IMMEDIATE_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IJK_IMMEDIATE_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	adrp	x25, _IJK_LEISURELY_SHUTDOWN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _IJK_LEISURELY_SHUTDOWN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w9, #0
	b	LBB0_7
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x22, [x20, #8]
	cbnz	x22, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x21
	mov	x1, x19
	bl	_pthread_cond_wait
	ldr	x8, [x20]
	cbz	x8, LBB0_3
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, #0
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x22, #0
	cset	w9, ne
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x20, #8]
	ldr	x11, [x24]
	cmp	x10, x11
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x25]
	cmp	x10, x11
	cset	w10, eq
	and	w9, w9, w10
	tbnz	w9, #0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20, #40]
	ldr	x10, [x20, #16]
	add	x9, x9, x10, lsl #4
	ldr	x26, [x9, #8]
	ldp	w23, w22, [x9]
	add	x9, x10, #1
	ldrsw	x10, [x20, #24]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	str	x9, [x20, #16]
	sub	x8, x8, #1
	str	x8, [x20]
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, x22
	mov	x1, x23
	blr	x26
	b	LBB0_1
LBB0_10:
	ldr	w8, [x20, #32]
	sub	w8, w8, #1
	str	w8, [x20, #32]
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, #0
	bl	_pthread_exit
	mov	x0, #0
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IJK_IMMEDIATE_SHUTDOWN,8,3     ; @IJK_IMMEDIATE_SHUTDOWN
	.comm	_IJK_LEISURELY_SHUTDOWN,8,3     ; @IJK_LEISURELY_SHUTDOWN
	.no_dead_strip	_ijk_threadpool_thread
.subsections_via_symbols
