	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_mark_partition_active      ## -- Begin function xpc_mark_partition_active
	.p2align	4, 0x90
_xpc_mark_partition_active:             ## @xpc_mark_partition_active
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_XPC_PARTID
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_dbg
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_XPC_P_AS_ACTIVATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_XPC_P_AS_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_xpSuccess@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rax
	addq	$8, %rbx
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_DBUG_ON
LBB0_3:
	movl	(%rbx), %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_part,4,2                   ## @xpc_part
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting partition %d to ACTIVE\n"

	.comm	_XPC_P_AS_ACTIVATING,8,3        ## @XPC_P_AS_ACTIVATING
	.comm	_XPC_P_AS_ACTIVE,8,3            ## @XPC_P_AS_ACTIVE
	.comm	_xpSuccess,8,3                  ## @xpSuccess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_mark_partition_active      ; -- Begin function xpc_mark_partition_active
	.p2align	2
_xpc_mark_partition_active:             ; @xpc_mark_partition_active
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _xpc_part@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_XPC_PARTID
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _XPC_P_AS_ACTIVATING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XPC_P_AS_ACTIVATING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _XPC_P_AS_ACTIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XPC_P_AS_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh11:
	adrp	x19, _xpSuccess@GOTPAGE
Lloh12:
	ldr	x19, [x19, _xpSuccess@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]!
Lloh13:
	adrp	x9, _xpSuccess@GOTPAGE
Lloh14:
	ldr	x9, [x9, _xpSuccess@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_DBUG_ON
LBB0_3:
	ldr	w19, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_part,4,2                   ; @xpc_part
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting partition %d to ACTIVE\n"

	.comm	_XPC_P_AS_ACTIVATING,8,3        ; @XPC_P_AS_ACTIVATING
	.comm	_XPC_P_AS_ACTIVE,8,3            ; @XPC_P_AS_ACTIVE
	.comm	_xpSuccess,8,3                  ; @xpSuccess
.subsections_via_symbols
