	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp_msgring_config
_xlp_msgring_config:                    ## @xlp_msgring_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_nlm_is_xlp8xx_ax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_polled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_3
LBB0_2:
	movq	_polled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_3:
	movq	_xlp_msg_threads_per_core@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_4:
	movq	_MTX_SPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_msgmap_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_xlp_threads_per_core@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_xlp_msg_threads_per_core@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_6
## %bb.5:
	movl	%eax, (%rdx)
	movl	%eax, %ecx
LBB0_6:
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	_XLP_MAX_CORES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	jle	LBB0_13
## %bb.7:
	notl	%eax
	movq	_XLP_MAX_THREADS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-1(%rsi), %edi
	movl	%esi, %edx
	andl	$7, %edx
	cmpl	$7, %edi
	jae	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	andl	$-8, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	shll	%cl, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	orl	%eax, %ebx
	addl	$-8, %esi
	jne	LBB0_10
LBB0_11:
	testl	%edx, %edx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	shll	%cl, %ebx
	orl	%eax, %ebx
	decl	%edx
	jne	LBB0_12
LBB0_13:
	movq	_xlp_hw_thread_mask@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_xlp_msg_thread_mask@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_CMS_DEFAULT_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xlp_cms_credit_setup
	xorl	%edi, %edi
	callq	_create_msgring_thread
	movq	_msgring_process_fast_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_MSGRING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_INTR_TYPE_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-16(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_cpu_establish_hardintr
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_polled,4,2                     ## @polled
	.comm	_xlp_msg_threads_per_core,4,2   ## @xlp_msg_threads_per_core
	.comm	_msgmap_lock,4,2                ## @msgmap_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msgring"

	.comm	_MTX_SPIN,4,2                   ## @MTX_SPIN
	.comm	_xlp_threads_per_core,4,2       ## @xlp_threads_per_core
	.comm	_XLP_MAX_CORES,4,2              ## @XLP_MAX_CORES
	.comm	_XLP_MAX_THREADS,4,2            ## @XLP_MAX_THREADS
	.comm	_xlp_hw_thread_mask,4,2         ## @xlp_hw_thread_mask
	.comm	_xlp_msg_thread_mask,4,2        ## @xlp_msg_thread_mask
	.comm	_CMS_DEFAULT_CREDIT,4,2         ## @CMS_DEFAULT_CREDIT
	.comm	_msgring_process_fast_intr,4,2  ## @msgring_process_fast_intr
	.comm	_IRQ_MSGRING,4,2                ## @IRQ_MSGRING
	.comm	_INTR_TYPE_NET,4,2              ## @INTR_TYPE_NET
	.no_dead_strip	_xlp_msgring_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp_msgring_config
_xlp_msgring_config:                    ; @xlp_msgring_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_nlm_is_xlp8xx_ax
Lloh0:
	adrp	x19, _xlp_msg_threads_per_core@GOTPAGE
Lloh1:
	ldr	x19, [x19, _xlp_msg_threads_per_core@GOTPAGEOFF]
Lloh2:
	adrp	x8, _polled@GOTPAGE
Lloh3:
	ldr	x8, [x8, _polled@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
LBB0_3:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_4:
Lloh4:
	adrp	x8, _MTX_SPIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MTX_SPIN@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x0, _msgmap_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _msgmap_lock@GOTPAGEOFF]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh11:
	adrp	x8, _xlp_threads_per_core@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xlp_threads_per_core@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w10, [x19]
	cmp	w8, w10
	b.ge	LBB0_6
; %bb.5:
	str	w8, [x19]
	mov	x10, x8
LBB0_6:
Lloh14:
	adrp	x8, _XLP_MAX_CORES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XLP_MAX_CORES@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w8, #0
	mov	w11, #-1
	lsl	w10, w11, w10
	mvn	w10, w10
Lloh17:
	adrp	x11, _XLP_MAX_THREADS@GOTPAGE
Lloh18:
	ldr	x11, [x11, _XLP_MAX_THREADS@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, w11
	orr	w8, w8, w10
	subs	w9, w9, #1
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
Lloh20:
	adrp	x9, _xlp_hw_thread_mask@GOTPAGE
Lloh21:
	ldr	x9, [x9, _xlp_hw_thread_mask@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh23:
	adrp	x9, _xlp_msg_thread_mask@GOTPAGE
Lloh24:
	ldr	x9, [x9, _xlp_msg_thread_mask@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
Lloh26:
	adrp	x8, _CMS_DEFAULT_CREDIT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CMS_DEFAULT_CREDIT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_xlp_cms_credit_setup
	mov	w0, #0
	bl	_create_msgring_thread
Lloh29:
	adrp	x8, _msgring_process_fast_intr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _msgring_process_fast_intr@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _IRQ_MSGRING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IRQ_MSGRING@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
Lloh35:
	adrp	x8, _INTR_TYPE_NET@GOTPAGE
Lloh36:
	ldr	x8, [x8, _INTR_TYPE_NET@GOTPAGEOFF]
Lloh37:
	ldr	w5, [x8]
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	add	x6, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_cpu_establish_hardintr
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_polled,4,2                     ; @polled
	.comm	_xlp_msg_threads_per_core,4,2   ; @xlp_msg_threads_per_core
	.comm	_msgmap_lock,4,2                ; @msgmap_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msgring"

	.comm	_MTX_SPIN,4,2                   ; @MTX_SPIN
	.comm	_xlp_threads_per_core,4,2       ; @xlp_threads_per_core
	.comm	_XLP_MAX_CORES,4,2              ; @XLP_MAX_CORES
	.comm	_XLP_MAX_THREADS,4,2            ; @XLP_MAX_THREADS
	.comm	_xlp_hw_thread_mask,4,2         ; @xlp_hw_thread_mask
	.comm	_xlp_msg_thread_mask,4,2        ; @xlp_msg_thread_mask
	.comm	_CMS_DEFAULT_CREDIT,4,2         ; @CMS_DEFAULT_CREDIT
	.comm	_msgring_process_fast_intr,4,2  ; @msgring_process_fast_intr
	.comm	_IRQ_MSGRING,4,2                ; @IRQ_MSGRING
	.comm	_INTR_TYPE_NET,4,2              ; @INTR_TYPE_NET
	.no_dead_strip	_xlp_msgring_config
.subsections_via_symbols
