	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_user_interrupt          ## -- Begin function handle_user_interrupt
	.p2align	4, 0x90
_handle_user_interrupt:                 ## @handle_user_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	12(%rbx), %edi
	movq	_HFI1_MAX_SHARED_CTXTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_empty
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_HFI1_CTXT_WAITING_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
	movq	_HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_hfi1_rcvctrl
	jmp	LBB0_5
LBB0_3:
	movq	_HFI1_CTXT_WAITING_URG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_MAX_SHARED_CTXTS,4,2      ## @HFI1_MAX_SHARED_CTXTS
	.comm	_HFI1_CTXT_WAITING_RCV,4,2      ## @HFI1_CTXT_WAITING_RCV
	.comm	_HFI1_RCVCTRL_INTRAVAIL_DIS,4,2 ## @HFI1_RCVCTRL_INTRAVAIL_DIS
	.comm	_HFI1_CTXT_WAITING_URG,4,2      ## @HFI1_CTXT_WAITING_URG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_user_interrupt          ; -- Begin function handle_user_interrupt
	.p2align	2
_handle_user_interrupt:                 ; @handle_user_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x8, _HFI1_MAX_SHARED_CTXTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI1_MAX_SHARED_CTXTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_empty
	cbnz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _HFI1_CTXT_WAITING_RCV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HFI1_CTXT_WAITING_RCV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x20, #8
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_wake_up_interruptible
Lloh6:
	adrp	x8, _HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HFI1_RCVCTRL_INTRAVAIL_DIS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_hfi1_rcvctrl
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _HFI1_CTXT_WAITING_URG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HFI1_CTXT_WAITING_URG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_wake_up_interruptible
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_MAX_SHARED_CTXTS,4,2      ; @HFI1_MAX_SHARED_CTXTS
	.comm	_HFI1_CTXT_WAITING_RCV,4,2      ; @HFI1_CTXT_WAITING_RCV
	.comm	_HFI1_RCVCTRL_INTRAVAIL_DIS,4,2 ; @HFI1_RCVCTRL_INTRAVAIL_DIS
	.comm	_HFI1_CTXT_WAITING_URG,4,2      ; @HFI1_CTXT_WAITING_URG
.subsections_via_symbols
