	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_send_activate_IRQ_uv
_xpc_send_activate_IRQ_uv:              ## @xpc_send_activate_IRQ_uv
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_XPC_ACTIVATE_MSG_SIZE_UV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rdx, (%rax)
	setb	%dil
	callq	_DBUG_ON
	movl	%r12d, (%r15)
	movq	_xp_partition_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	_xpc_rsvd_page@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	12(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	24(%rbx), %r13
	movl	8(%rbx), %eax
	movq	_XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %ecx
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, 16(%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	28(%rbx), %esi
	movq	%rax, %rdi
	callq	_xpc_cache_remote_gru_mq_desc_uv
	movl	%eax, %r12d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_xpc_send_gru_msg
	movl	%eax, %r12d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	8(%rbx), %eax
	movq	_XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_xpNoMemory@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_ACTIVATE_MSG_SIZE_UV,8,3   ## @XPC_ACTIVATE_MSG_SIZE_UV
	.comm	_xp_partition_id,4,2            ## @xp_partition_id
	.comm	_xpc_rsvd_page,8,3              ## @xpc_rsvd_page
	.comm	_XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV,4,2 ## @XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_xpNoMemory,4,2                 ## @xpNoMemory
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.no_dead_strip	_xpc_send_activate_IRQ_uv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_send_activate_IRQ_uv
_xpc_send_activate_IRQ_uv:              ; @xpc_send_activate_IRQ_uv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _XPC_ACTIVATE_MSG_SIZE_UV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPC_ACTIVATE_MSG_SIZE_UV@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	cset	w0, lo
	bl	_DBUG_ON
Lloh3:
	adrp	x8, _xpc_rsvd_page@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xpc_rsvd_page@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w22, [x20]
Lloh6:
	adrp	x9, _xp_partition_id@GOTPAGE
Lloh7:
	ldr	x9, [x9, _xp_partition_id@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x21]
	stp	w10, w9, [x20, #8]
	str	w8, [x20, #4]
	add	x22, x21, #12
	mov	x0, x22
	bl	_mutex_lock
	add	x23, x21, #24
Lloh9:
	adrp	x25, _XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV@GOTPAGE
Lloh10:
	ldr	x25, [x25, _XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV@GOTPAGEOFF]
	ldr	w8, [x21, #8]
	ldr	w9, [x25]
Lloh11:
	adrp	x26, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	adrp	x27, _xpSuccess@GOTPAGE
Lloh14:
	ldr	x27, [x27, _xpSuccess@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	tst	w9, w8
	b.ne	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x26]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x0, [x21, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x21, #28]
	bl	_xpc_cache_remote_gru_mq_desc_uv
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w8, [x25]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x21, #16]
	mov	x1, x20
	mov	x2, x19
	bl	_xpc_send_gru_msg
	mov	x24, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_smp_rmb
	ldr	w8, [x21, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_1
	b	LBB0_11
LBB0_9:
	mov	x24, x0
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _xpNoMemory@GOTPAGE
Lloh16:
	ldr	x8, [x8, _xpNoMemory@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
LBB0_11:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_ACTIVATE_MSG_SIZE_UV,8,3   ; @XPC_ACTIVATE_MSG_SIZE_UV
	.comm	_xp_partition_id,4,2            ; @xp_partition_id
	.comm	_xpc_rsvd_page,8,3              ; @xpc_rsvd_page
	.comm	_XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV,4,2 ; @XPC_P_CACHED_ACTIVATE_GRU_MQ_DESC_UV
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_xpNoMemory,4,2                 ; @xpNoMemory
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.no_dead_strip	_xpc_send_activate_IRQ_uv
.subsections_via_symbols
