	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_receive_context_interrupt      ## -- Begin function receive_context_interrupt
	.p2align	4, 0x90
_receive_context_interrupt:             ## @receive_context_interrupt
	.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	%rsi, %rbx
	movq	8(%rsi), %r14
	movq	%r14, %rdi
	callq	_trace_hfi1_receive_interrupt
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	%rbx, %rdi
	callq	_aspm_ctx_disable
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rbx)
	movq	_RCV_PKT_LIMIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %r14
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_clear_recv_intr
	movq	%rbx, %rdi
	callq	_check_packet_present
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_force_recv_intr
LBB0_4:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCV_PKT_LIMIT,4,2              ## @RCV_PKT_LIMIT
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_receive_context_interrupt      ; -- Begin function receive_context_interrupt
	.p2align	2
_receive_context_interrupt:             ; @receive_context_interrupt
	.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, x1
	ldr	x20, [x1, #8]
	mov	x0, x20
	bl	_trace_hfi1_receive_interrupt
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_this_cpu_inc
	mov	x0, x19
	bl	_aspm_ctx_disable
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #0
	blr	x8
Lloh0:
	adrp	x8, _RCV_PKT_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCV_PKT_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_clear_recv_intr
	mov	x0, x19
	bl	_check_packet_present
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_force_recv_intr
LBB0_4:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RCV_PKT_LIMIT,4,2              ; @RCV_PKT_LIMIT
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
