	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_pull_remote_msg_sn2
_xpc_pull_remote_msg_sn2:               ## @xpc_pull_remote_msg_sn2
	.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
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	(%rdi), %r12
	shlq	$2, %r12
	addq	(%rax), %r12
	leaq	56(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %rbx
	cmpq	%r15, %rbx
	ja	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpq	64(%r13), %rbx
	setae	%dil
	callq	_DBUG_ON
	movq	64(%r13), %rax
	subq	32(%r13), %rax
	leaq	(%rax,%r14), %rcx
	movq	8(%r13), %rdx
	movq	%rdx, %rbx
	subq	%r14, %rbx
	cmpq	%rdx, %rcx
	cmovbeq	%rax, %rbx
	movq	16(%r13), %rcx
	imulq	%rcx, %r14
	movq	48(%r13), %rsi
	addq	%r14, %rsi
	addq	40(%r13), %r14
	imulq	%rbx, %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_xpc_pull_remote_cachelines_sn2
	movl	%eax, %r14d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	32(%r13), %rbx
	movq	%rbx, 32(%r13)
	cmpq	%r15, %rbx
	jbe	LBB0_4
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	8(%r13), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
	jmp	LBB0_13
LBB0_8:
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r13), %rcx
	movq	(%r13), %r8
	movl	24(%r13), %r9d
	movl	%r14d, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_XPC_DEACTIVATE_PARTITION
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_13:
	imulq	16(%r13), %rax
	addq	48(%r13), %rax
LBB0_14:
	addq	$24, %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	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to pull %d msgs starting with msg %lld from partition %d, channel=%d, ret=%d\n"

	.no_dead_strip	_xpc_pull_remote_msg_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_pull_remote_msg_sn2
_xpc_pull_remote_msg_sn2:               ; @xpc_pull_remote_msg_sn2
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _xpc_partitions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_partitions@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x19, x0
	ldr	x23, [x19], #56
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, #0
	b	LBB0_7
LBB0_2:
	ldr	x8, [x20, #32]
	cmp	x8, x21
	b.hi	LBB0_6
; %bb.3:
	add	x22, x22, x23, lsl #2
Lloh3:
	adrp	x25, _xpSuccess@GOTPAGE
Lloh4:
	ldr	x25, [x25, _xpSuccess@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	udiv	x10, x8, x9
	msub	x24, x10, x9, x8
	ldr	x9, [x20, #64]
	cmp	x8, x9
	cset	w0, hs
	bl	_DBUG_ON
	ldr	x8, [x20, #64]
	ldp	x9, x10, [x20, #32]
	sub	x8, x8, x9
	add	x9, x8, x24
	ldp	x11, x12, [x20, #8]
	sub	x13, x11, x24
	cmp	x9, x11
	csel	x23, x13, x8, hi
	mul	x8, x12, x24
	ldr	x9, [x20, #48]
	add	x1, x9, x8
	add	x2, x10, x8
	mul	x3, x23, x12
	mov	x0, x22
	bl	_xpc_pull_remote_cachelines_sn2
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #32]
	add	x8, x8, x23
	cmp	x8, x21
	str	x8, [x20, #32]
	b.ls	LBB0_4
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	ldp	x8, x9, [x20, #8]
	udiv	x10, x21, x8
	msub	x8, x10, x8, x21
	ldr	x10, [x20, #48]
	madd	x0, x9, x8, x10
LBB0_7:
	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
LBB0_8:
	mov	x24, x0
Lloh5:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x3, [x20, #32]
	ldr	x4, [x20]
	ldr	w5, [x20, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x6, x24
	bl	_dev_dbg
	mov	x0, x22
	mov	x1, x24
	bl	_XPC_DEACTIVATE_PARTITION
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to pull %d msgs starting with msg %lld from partition %d, channel=%d, ret=%d\n"

	.no_dead_strip	_xpc_pull_remote_msg_sn2
.subsections_via_symbols
