	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_create_kthreads            ## -- Begin function xpc_create_kthreads
	.p2align	4, 0x90
_xpc_create_kthreads:                   ## @xpc_create_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	%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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movl	32(%r13), %esi
	callq	_XPC_PACK_ARGS
	movq	_xpc_partitions@GOTPCREL(%rip), %rcx
	movq	(%r13), %r14
	shlq	$2, %r14
	addq	(%rcx), %r14
	movq	%rax, %r15
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	28(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incl	%ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc_not_zero
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_xpc_part_ref
	movq	%r13, %rdi
	callq	_xpc_msgqueue_ref
	movq	_xpc_kthread_start@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rcx
	movl	32(%r13), %r8d
	movq	%r15, %rsi
	leaq	L_.str(%rip), %rdx
	callq	_kthread_run
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	callq	*8(%rax)
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec_return
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_atomic_dec_return
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
LBB0_13:
	movq	%r13, %rdi
	callq	_xpc_msgqueue_deref
	movq	%r14, %rdi
	callq	_xpc_part_deref
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	cmpq	16(%r13), %rax
	jge	LBB0_15
## %bb.14:
	leaq	24(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_xpLackOfResources@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	callq	_XPC_DISCONNECT_CHANNEL
	movq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_XPC_C_DISCONNECTINGCALLOUT_MADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	8(%r13), %eax
	sete	%dil
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG_ON                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_partitions,8,3             ## @xpc_partitions
	.comm	_xpc_arch_ops,16,3              ## @xpc_arch_ops
	.comm	_XPC_C_DISCONNECTINGCALLOUT_MADE,4,2 ## @XPC_C_DISCONNECTINGCALLOUT_MADE
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_xpc_kthread_start,4,2          ## @xpc_kthread_start
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xpc%02dc%d"

	.comm	_xpLackOfResources,4,2          ## @xpLackOfResources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_create_kthreads            ; -- Begin function xpc_create_kthreads
	.p2align	2
_xpc_create_kthreads:                   ; @xpc_create_kthreads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w1, [x19, #32]
	bl	_XPC_PACK_ARGS
	mov	x23, x0
Lloh0:
	adrp	x8, _xpc_partitions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_partitions@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x20, x8, x9, lsl #2
Lloh3:
	adrp	x26, _xpc_arch_ops@GOTPAGE
Lloh4:
	ldr	x26, [x26, _xpc_arch_ops@GOTPAGEOFF]
	ldr	x8, [x26]
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	x21, x19, #28
	add	w27, w24, #1
Lloh5:
	adrp	x28, _XPC_C_DISCONNECTING@GOTPAGE
Lloh6:
	ldr	x28, [x28, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh7:
	adrp	x25, _xpc_kthread_start@GOTPAGE
Lloh8:
	ldr	x25, [x25, _xpc_kthread_start@GOTPAGEOFF]
Lloh9:
	adrp	x24, l_.str@PAGE
Lloh10:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_atomic_inc_not_zero
	cbz	w0, LBB0_15
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_xpc_part_ref
	mov	x0, x19
	bl	_xpc_msgqueue_ref
	ldr	w0, [x25]
	ldr	x3, [x19]
	ldr	w4, [x19, #32]
	mov	x1, x23
	mov	x2, x24
	bl	_kthread_run
	bl	_IS_ERR
	cbnz	x0, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w27, w27, #1
	cmp	w27, #1
	b.lt	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #8]
	mov	x0, x20
	blr	x8
	b	LBB0_2
LBB0_9:
	mov	x0, x21
	bl	_atomic_dec_return
	cbnz	x0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_atomic_dec_return
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	blr	x8
LBB0_12:
	mov	x0, x19
	bl	_xpc_msgqueue_deref
	mov	x0, x20
	bl	_xpc_part_deref
	mov	x0, x21
	bl	_atomic_read
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.13:
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh11:
	adrp	x8, _xpLackOfResources@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpLackOfResources@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_XPC_DISCONNECT_CHANNEL
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	ldr	w8, [x19, #8]
Lloh14:
	adrp	x9, _XPC_C_DISCONNECTINGCALLOUT_MADE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XPC_C_DISCONNECTINGCALLOUT_MADE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_BUG_ON
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.comm	_xpc_arch_ops,16,3              ; @xpc_arch_ops
	.comm	_XPC_C_DISCONNECTINGCALLOUT_MADE,4,2 ; @XPC_C_DISCONNECTINGCALLOUT_MADE
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_xpc_kthread_start,4,2          ; @xpc_kthread_start
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xpc%02dc%d"

	.comm	_xpLackOfResources,4,2          ; @xpLackOfResources
.subsections_via_symbols
