	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_identify_activate_IRQ_sender_sn2 ## -- Begin function xpc_identify_activate_IRQ_sender_sn2
	.p2align	4, 0x90
_xpc_identify_activate_IRQ_sender_sn2:  ## @xpc_identify_activate_IRQ_sender_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	_xpc_nasid_mask_nlongs@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	movq	_xpc_exiting@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.2:
	movq	_xpc_vars_sn2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_XPC_ACTIVATE_IRQ_AMOS_SN2@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r14
	movq	_xpc_part@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	callq	_xpc_receive_IRQ_amo_sn2
	movq	%rax, -48(%rbp)
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_find_first_bit
	cmpl	(%r13), %eax
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	movl	(%r12), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-48(%rbp), %rax
	movq	_xpc_mach_nasids@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%rax, (%rcx,%r14,8)
	movl	(%r13), %r12d
	movq	%r14, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	imull	%ecx, %r12d
	addl	%r15d, %r12d
	addl	%r12d, %r12d
	movq	_xpc_part@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%rcx, %r14
	callq	_dev_dbg
	movl	%r12d, %edi
	callq	_xpc_identify_activate_IRQ_req_sn2
	movl	(%r13), %esi
	incl	%r15d
	leaq	-48(%rbp), %rdi
	movl	%r15d, %edx
	callq	_find_next_bit
	movq	%r14, %rcx
	movl	%eax, %r15d
	movl	(%r13), %r12d
	cmpl	%r12d, %eax
	jl	LBB0_6
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_xpc_part@GOTPCREL(%rip), %r12
	incq	%rcx
	movq	_xpc_nasid_mask_nlongs@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_xpc_exiting@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	-48(%rbp), %r14
	je	LBB0_3
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_vars_sn2,8,3               ## @xpc_vars_sn2
	.comm	_XPC_ACTIVATE_IRQ_AMOS_SN2,4,2  ## @XPC_ACTIVATE_IRQ_AMOS_SN2
	.comm	_xpc_nasid_mask_nlongs,4,2      ## @xpc_nasid_mask_nlongs
	.comm	_xpc_exiting,8,3                ## @xpc_exiting
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.comm	_xpc_part,4,2                   ## @xpc_part
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amo[%d] gave back 0x%lx\n"

	.comm	_xpc_mach_nasids,8,3            ## @xpc_mach_nasids
L_.str.1:                               ## @.str.1
	.asciz	"interrupt from nasid %lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_identify_activate_IRQ_sender_sn2 ; -- Begin function xpc_identify_activate_IRQ_sender_sn2
	.p2align	2
_xpc_identify_activate_IRQ_sender_sn2:  ; @xpc_identify_activate_IRQ_sender_sn2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x25, _xpc_nasid_mask_nlongs@GOTPAGE
Lloh1:
	ldr	x25, [x25, _xpc_nasid_mask_nlongs@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x26, _xpc_exiting@GOTPAGE
Lloh3:
	ldr	x26, [x26, _xpc_exiting@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	w8, #1
	ccmp	x9, #0, #0, ge
	b.eq	LBB0_3
; %bb.1:
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x20, #0
	mov	w19, #0
Lloh4:
	adrp	x8, _xpc_vars_sn2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _xpc_vars_sn2@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _XPC_ACTIVATE_IRQ_AMOS_SN2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _XPC_ACTIVATE_IRQ_AMOS_SN2@GOTPAGEOFF]
Lloh9:
	ldrsw	x9, [x9]
	add	x27, x8, x9, lsl #2
Lloh10:
	adrp	x28, _BITS_PER_LONG@GOTPAGE
Lloh11:
	ldr	x28, [x28, _BITS_PER_LONG@GOTPAGEOFF]
Lloh12:
	adrp	x21, _xpc_part@GOTPAGE
Lloh13:
	ldr	x21, [x21, _xpc_part@GOTPAGEOFF]
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x25]
	ldr	x9, [x26]
	cmp	x20, x8
	ccmp	x9, #0, #0, lt
	b.ne	LBB0_2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x0, x27, x20, lsl #2
	bl	_xpc_receive_IRQ_amo_sn2
	str	x0, [sp, #8]
	ldr	w1, [x28]
	add	x0, sp, #8
	bl	_find_first_bit
	ldr	w8, [x28]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	ldr	w0, [x21]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	x8, [sp, #8]
Lloh18:
	adrp	x9, _xpc_mach_nasids@GOTPAGE
Lloh19:
	ldr	x9, [x9, _xpc_mach_nasids@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	lsl	x10, x20, #3
	ldr	x11, [x9, x10]
	orr	x8, x11, x8
	str	x8, [x9, x10]
	ldr	w8, [x28]
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w19, w19, #1
	madd	w8, w8, w20, w23
	lsl	w24, w8, #1
	ldr	w0, [x21]
	mov	x1, x22
	mov	x2, x24
	bl	_dev_dbg
	mov	x0, x24
	bl	_xpc_identify_activate_IRQ_req_sn2
	ldr	w1, [x28]
	add	w2, w23, #1
	add	x0, sp, #8
	bl	_find_next_bit
	mov	x23, x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.lt	LBB0_7
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_vars_sn2,8,3               ; @xpc_vars_sn2
	.comm	_XPC_ACTIVATE_IRQ_AMOS_SN2,4,2  ; @XPC_ACTIVATE_IRQ_AMOS_SN2
	.comm	_xpc_nasid_mask_nlongs,4,2      ; @xpc_nasid_mask_nlongs
	.comm	_xpc_exiting,8,3                ; @xpc_exiting
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.comm	_xpc_part,4,2                   ; @xpc_part
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amo[%d] gave back 0x%lx\n"

	.comm	_xpc_mach_nasids,8,3            ; @xpc_mach_nasids
l_.str.1:                               ; @.str.1
	.asciz	"interrupt from nasid %lld\n"

.subsections_via_symbols
