	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_activate_kthreads          ## -- Begin function xpc_activate_kthreads
	.p2align	4, 0x90
_xpc_activate_kthreads:                 ## @xpc_activate_kthreads
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	addq	$20, %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	leaq	16(%r14), %rdi
	callq	_atomic_read
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setle	%dil
	callq	_DBUG_ON
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	cmpl	%r12d, %ebx
	cmovgel	%r12d, %ebx
	subl	%ebx, %r12d
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	leaq	12(%r14), %rdi
	movl	%ebx, %esi
	callq	_wake_up_nr
LBB0_2:
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.3:
	leal	(%r12,%r15), %ecx
	movl	(%r14), %eax
	cmpl	%eax, %ecx
	jle	LBB0_6
## %bb.4:
	subl	%r15d, %eax
	movl	%eax, %r12d
	jle	LBB0_5
LBB0_6:
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %r8d
	movl	8(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xpc_create_kthreads            ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wakeup %d idle kthreads, partid=%d, channel=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"create %d new kthreads, partid=%d, channel=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_activate_kthreads          ; -- Begin function xpc_activate_kthreads
	.p2align	2
_xpc_activate_kthreads:                 ; @xpc_activate_kthreads
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #20
	bl	_atomic_read
	mov	x22, x0
	add	x0, x20, #16
	bl	_atomic_read
	mov	x21, x0
	cmp	w19, #1
	cset	w0, lt
	bl	_DBUG_ON
Lloh0:
	adrp	x23, _xpc_chan@GOTPAGE
Lloh1:
	ldr	x23, [x23, _xpc_chan@GOTPAGEOFF]
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
	cmp	w22, w19
	csel	w22, w22, w19, lt
	sub	w19, w19, w22
	ldr	w0, [x23]
	ldp	w4, w3, [x20, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	add	x0, x20, #12
	mov	x1, x22
	bl	_wake_up_nr
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	w8, [x20]
	add	w9, w19, w21
	cmp	w9, w8
	b.le	LBB0_5
; %bb.4:
	sub	w19, w8, w21
	cmp	w19, #1
	b.lt	LBB0_6
LBB0_5:
	ldr	w0, [x23]
	ldp	w4, w3, [x20, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xpc_create_kthreads
LBB0_6:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wakeup %d idle kthreads, partid=%d, channel=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"create %d new kthreads, partid=%d, channel=%d\n"

.subsections_via_symbols
