	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msgring_process_fast_intr
_msgring_process_fast_intr:             ## @msgring_process_fast_intr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_nlm_cpuid
	movq	_msgring_threads@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movslq	%eax, %r14
	movq	_msgring_nintr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%r14,4)
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	8(%r15,%rbx), %r12
	movq	_IRQ_MSGRING@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edi
	shlq	%cl, %rdi
	callq	_nlm_write_c0_eirr
	movl	$1, (%r15,%rbx)
	movq	%r12, %rdi
	callq	_thread_lock
	movq	%r12, %rdi
	callq	_TD_AWAITING_INTR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_msgring_wakeup_sleep@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%r14,4)
	movq	%r12, %rdi
	callq	_TD_CLR_IWAIT
	movq	_SRQ_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sched_add
	jmp	LBB0_3
LBB0_2:
	movq	_msgring_wakeup_nosleep@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%r14,4)
LBB0_3:
	movq	%r12, %rdi
	callq	_thread_unlock
	movq	_FILTER_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msgring_threads,8,3            ## @msgring_threads
	.comm	_msgring_nintr,8,3              ## @msgring_nintr
	.comm	_IRQ_MSGRING,8,3                ## @IRQ_MSGRING
	.comm	_msgring_wakeup_sleep,8,3       ## @msgring_wakeup_sleep
	.comm	_SRQ_INTR,4,2                   ## @SRQ_INTR
	.comm	_msgring_wakeup_nosleep,8,3     ## @msgring_wakeup_nosleep
	.comm	_FILTER_HANDLED,4,2             ## @FILTER_HANDLED
	.no_dead_strip	_msgring_process_fast_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msgring_process_fast_intr
_msgring_process_fast_intr:             ; @msgring_process_fast_intr
	.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
	bl	_nlm_cpuid
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _msgring_threads@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msgring_threads@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sxtw	x20, w0
Lloh3:
	adrp	x9, _msgring_nintr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _msgring_nintr@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sbfiz	x10, x0, #2, #32
	ldr	w11, [x9, x10]
	add	w11, w11, #1
	str	w11, [x9, x10]
	add	x21, x8, w0, sxtw #4
	ldr	x19, [x21, #8]
Lloh6:
	adrp	x8, _IRQ_MSGRING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_MSGRING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w22, #1
	lsl	x0, x22, x8
	bl	_nlm_write_c0_eirr
	str	w22, [x21]
	mov	x0, x19
	bl	_thread_lock
	mov	x0, x19
	bl	_TD_AWAITING_INTR
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _msgring_wakeup_sleep@GOTPAGE
Lloh10:
	ldr	x8, [x8, _msgring_wakeup_sleep@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	lsl	x9, x20, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	x0, x19
	bl	_TD_CLR_IWAIT
Lloh12:
	adrp	x8, _SRQ_INTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SRQ_INTR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sched_add
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _msgring_wakeup_nosleep@GOTPAGE
Lloh16:
	ldr	x8, [x8, _msgring_wakeup_nosleep@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	lsl	x9, x20, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_3:
	mov	x0, x19
	bl	_thread_unlock
Lloh18:
	adrp	x8, _FILTER_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILTER_HANDLED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_msgring_threads,8,3            ; @msgring_threads
	.comm	_msgring_nintr,8,3              ; @msgring_nintr
	.comm	_IRQ_MSGRING,8,3                ; @IRQ_MSGRING
	.comm	_msgring_wakeup_sleep,8,3       ; @msgring_wakeup_sleep
	.comm	_SRQ_INTR,4,2                   ; @SRQ_INTR
	.comm	_msgring_wakeup_nosleep,8,3     ; @msgring_wakeup_nosleep
	.comm	_FILTER_HANDLED,4,2             ; @FILTER_HANDLED
	.no_dead_strip	_msgring_process_fast_intr
.subsections_via_symbols
