	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_setup_partitions
_xpc_setup_partitions:                  ## @xpc_setup_partitions
	.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	_xp_max_npartitions@GOTPCREL(%rip), %r14
	movswl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_kcalloc
	movq	%rax, %rbx
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	cmpw	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	movl	$1, %r13d
	xorl	%r15d, %r15d
	movq	_XPC_P_SS_UNSET@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r15), %r14
	movq	%r14, %rdi
	callq	_L1_CACHE_ALIGN
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setne	%dil
	callq	_DBUG_ON
	movq	$0, 24(%rbx,%r15)
	leaq	(%rbx,%r15), %rdi
	addq	$20, %rdi
	callq	_spin_lock_init
	movq	_XPC_P_AS_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx,%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_XPC_SET_REASON
	leaq	(%rbx,%r15), %rdi
	addq	$12, %rdi
	movq	_xpc_timeout_partition_disengage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movl	(%r12), %eax
	movl	%eax, 8(%rbx,%r15)
	leaq	(%rbx,%r15), %rdi
	addq	$4, %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_xp_max_npartitions@GOTPCREL(%rip), %rax
	movswq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$32, %r15
	incq	%r13
	jmp	LBB0_3
LBB0_5:
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rcx)                         ## TAILCALL
LBB0_6:
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xp_max_npartitions,2,1         ## @xp_max_npartitions
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_xpc_partitions,8,3             ## @xpc_partitions
	.comm	_xpc_part,4,2                   ## @xpc_part
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get memory for partition structure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_XPC_P_AS_INACTIVE,4,2          ## @XPC_P_AS_INACTIVE
	.comm	_xpc_timeout_partition_disengage,4,2 ## @xpc_timeout_partition_disengage
	.comm	_XPC_P_SS_UNSET,4,2             ## @XPC_P_SS_UNSET
	.comm	_xpc_arch_ops,8,3               ## @xpc_arch_ops
	.no_dead_strip	_xpc_setup_partitions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_setup_partitions
_xpc_setup_partitions:                  ; @xpc_setup_partitions
	.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
Lloh0:
	adrp	x20, _xp_max_npartitions@GOTPAGE
Lloh1:
	ldr	x20, [x20, _xp_max_npartitions@GOTPAGEOFF]
	ldrsh	w0, [x20]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_kcalloc
Lloh5:
	adrp	x21, _xpc_partitions@GOTPAGE
Lloh6:
	ldr	x21, [x21, _xpc_partitions@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.1:
	ldrsh	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
	mov	w23, #1
Lloh7:
	adrp	x24, _XPC_P_AS_INACTIVE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _XPC_P_AS_INACTIVE@GOTPAGEOFF]
Lloh9:
	adrp	x25, _xpc_timeout_partition_disengage@GOTPAGE
Lloh10:
	ldr	x25, [x25, _xpc_timeout_partition_disengage@GOTPAGEOFF]
Lloh11:
	adrp	x26, _XPC_P_SS_UNSET@GOTPAGE
Lloh12:
	ldr	x26, [x26, _XPC_P_SS_UNSET@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x19, x0, x22
	mov	x0, x19
	bl	_L1_CACHE_ALIGN
	cmp	x19, x0
	cset	w0, ne
	bl	_DBUG_ON
	str	xzr, [x19, #24]
	add	x0, x19, #20
	bl	_spin_lock_init
	ldr	w8, [x24]
	str	w8, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_XPC_SET_REASON
	add	x0, x19, #12
	ldr	w1, [x25]
	mov	w2, #0
	bl	_timer_setup
	ldr	w8, [x26]
	str	w8, [x19, #8]
	add	x0, x19, #4
	bl	_init_waitqueue_head
	mov	x0, x19
	mov	w1, #0
	bl	_atomic_set
	ldrsh	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
	add	x22, x22, #32
	add	x23, x23, #1
	b	LBB0_3
LBB0_5:
Lloh13:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	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
	br	x0
LBB0_6:
Lloh16:
	adrp	x8, _xpc_part@GOTPAGE
Lloh17:
	ldr	x8, [x8, _xpc_part@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_xp_max_npartitions,2,1         ; @xp_max_npartitions
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.comm	_xpc_part,4,2                   ; @xpc_part
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get memory for partition structure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_XPC_P_AS_INACTIVE,4,2          ; @XPC_P_AS_INACTIVE
	.comm	_xpc_timeout_partition_disengage,4,2 ; @xpc_timeout_partition_disengage
	.comm	_XPC_P_SS_UNSET,4,2             ; @XPC_P_SS_UNSET
	.comm	_xpc_arch_ops,8,3               ; @xpc_arch_ops
	.no_dead_strip	_xpc_setup_partitions
.subsections_via_symbols
