	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_activating
_xpc_activating:                        ## @xpc_activating
	.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, %r14
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movswq	%r14w, %rax
	movq	%rax, %r13
	shlq	$5, %r13
	testw	%ax, %ax
	sets	%cl
	movq	_xp_max_npartitions@GOTPCREL(%rip), %rdx
	cmpw	%ax, (%rdx)
	leaq	(%r12,%r13), %r15
	setle	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_DBUG_ON
	leaq	(%r12,%r13), %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12,%r13), %rax
	movq	_XPC_P_AS_DEACTIVATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_XPC_P_AS_INACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	$0, 24(%r12,%r13)
	jmp	LBB0_8
LBB0_2:
	movq	_XPC_P_AS_ACTIVATION_REQ@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_DBUG_ON
	movq	_XPC_P_AS_ACTIVATING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_XPC_SET_REASON
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movswl	%r14w, %r14d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rbx
	movl	%r14d, %edi
	callq	*24(%rbx)
	movq	%r15, %rdi
	callq	_xpc_setup_ch_structures
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_xpc_part_ref
	movq	%r15, %rdi
	callq	*(%rbx)
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_xpc_mark_partition_active
	movq	%r15, %rdi
	callq	_xpc_channel_mgr
LBB0_5:
	movq	%r15, %rdi
	callq	_xpc_part_deref
	movq	%r15, %rdi
	callq	_xpc_teardown_ch_structures
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	%r14d, %edi
	callq	*16(%rbx)
	movq	%r15, %rdi
	callq	_xpc_mark_partition_inactive
	movq	8(%r12,%r13), %rax
	movq	_xpReactivating@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	*8(%rbx)
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_partitions,8,3             ## @xpc_partitions
	.comm	_xp_max_npartitions,2,1         ## @xp_max_npartitions
	.comm	_XPC_P_AS_DEACTIVATING,8,3      ## @XPC_P_AS_DEACTIVATING
	.comm	_XPC_P_AS_INACTIVE,8,3          ## @XPC_P_AS_INACTIVE
	.comm	_XPC_P_AS_ACTIVATION_REQ,8,3    ## @XPC_P_AS_ACTIVATION_REQ
	.comm	_XPC_P_AS_ACTIVATING,8,3        ## @XPC_P_AS_ACTIVATING
	.comm	_xpc_part,4,2                   ## @xpc_part
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"activating partition %d\n"

	.comm	_xpc_arch_ops,32,3              ## @xpc_arch_ops
	.comm	_xpSuccess,8,3                  ## @xpSuccess
	.comm	_xpReactivating,8,3             ## @xpReactivating
	.no_dead_strip	_xpc_activating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_activating
_xpc_activating:                        ; @xpc_activating
	.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
	sxth	w20, w0
Lloh0:
	adrp	x8, _xpc_partitions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_partitions@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	lsl	x8, x0, #48
	sxth	x23, w0
	add	x19, x22, x8, asr #43
	cmp	w20, #0
Lloh3:
	adrp	x8, _xp_max_npartitions@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xp_max_npartitions@GOTPAGEOFF]
Lloh5:
	ldrsh	w8, [x8]
	ccmp	w8, w20, #4, ge
	cset	w0, le
	bl	_DBUG_ON
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _XPC_P_AS_DEACTIVATING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XPC_P_AS_DEACTIVATING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _XPC_P_AS_INACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XPC_P_AS_INACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	x8, x22, x23, lsl #5
	str	xzr, [x8, #24]
	b	LBB0_8
LBB0_2:
Lloh12:
	adrp	x9, _XPC_P_AS_ACTIVATION_REQ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XPC_P_AS_ACTIVATION_REQ@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_DBUG_ON
Lloh15:
	adrp	x8, _XPC_P_AS_ACTIVATING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XPC_P_AS_ACTIVATING@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_XPC_SET_REASON
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh18:
	adrp	x8, _xpc_part@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
Lloh23:
	adrp	x21, _xpc_arch_ops@GOTPAGE
Lloh24:
	ldr	x21, [x21, _xpc_arch_ops@GOTPAGEOFF]
	ldr	x8, [x21, #24]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_xpc_setup_ch_structures
Lloh25:
	adrp	x24, _xpSuccess@GOTPAGE
Lloh26:
	ldr	x24, [x24, _xpSuccess@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_xpc_part_ref
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_xpc_mark_partition_active
	mov	x0, x19
	bl	_xpc_channel_mgr
LBB0_5:
	mov	x0, x19
	bl	_xpc_part_deref
	mov	x0, x19
	bl	_xpc_teardown_ch_structures
LBB0_6:
	ldr	x8, [x21, #16]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_xpc_mark_partition_inactive
	add	x8, x22, x23, lsl #5
	ldr	x8, [x8, #8]
Lloh27:
	adrp	x9, _xpReactivating@GOTPAGE
Lloh28:
	ldr	x9, [x9, _xpReactivating@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21, #8]
	mov	x0, x19
	blr	x8
LBB0_8:
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.comm	_xp_max_npartitions,2,1         ; @xp_max_npartitions
	.comm	_XPC_P_AS_DEACTIVATING,8,3      ; @XPC_P_AS_DEACTIVATING
	.comm	_XPC_P_AS_INACTIVE,8,3          ; @XPC_P_AS_INACTIVE
	.comm	_XPC_P_AS_ACTIVATION_REQ,8,3    ; @XPC_P_AS_ACTIVATION_REQ
	.comm	_XPC_P_AS_ACTIVATING,8,3        ; @XPC_P_AS_ACTIVATING
	.comm	_xpc_part,4,2                   ; @xpc_part
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"activating partition %d\n"

	.comm	_xpc_arch_ops,32,3              ; @xpc_arch_ops
	.comm	_xpSuccess,8,3                  ; @xpSuccess
	.comm	_xpReactivating,8,3             ; @xpReactivating
	.no_dead_strip	_xpc_activating
.subsections_via_symbols
