	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ql_configure_rings
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ql_configure_rings:                    ## @ql_configure_rings
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MAX_CPUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r14d
	movq	48(%r15), %rax
	cmpl	$1501, (%rax)                   ## imm = 0x5DD
	jl	LBB0_1
## %bb.2:
	movq	_LARGE_BUFFER_MAX_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LARGE_BUFFER_MIN_SIZE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_get_order
	movl	%eax, 40(%r15)
	movl	%r14d, (%r15)
	movq	%r15, %rdi
	callq	_ql_enable_msix
	movl	(%r15), %eax
	movl	%eax, 4(%r15)
	movl	%r14d, 8(%r15)
	addl	%r14d, %eax
	movl	%eax, 12(%r15)
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.4:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %r12
	leaq	(%r12,%rbx), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r15, 16(%r12,%rbx)
	movl	%r13d, (%r12,%rbx)
	movl	16(%r15), %eax
	movl	%eax, 4(%r12,%rbx)
	shll	$2, %eax
	movl	%eax, 8(%r12,%rbx)
	movl	4(%r15), %eax
	addl	%r13d, %eax
	movl	%eax, 12(%r12,%rbx)
	incq	%r13
	movslq	8(%r15), %rax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.6:
	movl	12(%r15), %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	movl	%ebx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	16(%r15), %eax
	movl	%eax, 8(%r12,%rbx)
	shll	$2, %eax
	movl	%eax, 12(%r12,%rbx)
	movq	$0, 48(%r12,%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12,%rbx)
	xorl	%eax, %eax
	movq	_TX_Q@GOTPCREL(%rip), %rcx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rcx), %ecx
	movq	%rax, 40(%r12,%rbx)
	movl	%ecx, 32(%r12,%rbx)
	incq	%r13
	movslq	12(%r15), %rax
	addq	$64, %rbx
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %r12
	leaq	(%r12,%rbx), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r15, 56(%r12,%rbx)
	movl	%r13d, (%r12,%rbx)
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	movl	%edx, 4(%r12,%rbx)
	movslq	4(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	20(%r15), %eax
	movl	%eax, 8(%r12,%rbx)
	shll	$2, %eax
	movl	%eax, 12(%r12,%rbx)
	movq	_NUM_LARGE_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12,%rbx)
	shll	$2, %eax
	movl	%eax, 20(%r12,%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r12,%rbx)
	movq	_NUM_SMALL_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12,%rbx)
	shll	$2, %eax
	movl	%eax, 28(%r12,%rbx)
	movq	_SMALL_BUF_MAP_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RX_Q@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CPUS,4,2                   ## @MAX_CPUS
	.comm	_LARGE_BUFFER_MAX_SIZE,4,2      ## @LARGE_BUFFER_MAX_SIZE
	.comm	_LARGE_BUFFER_MIN_SIZE,4,2      ## @LARGE_BUFFER_MIN_SIZE
	.comm	_NUM_LARGE_BUFFERS,4,2          ## @NUM_LARGE_BUFFERS
	.comm	_NUM_SMALL_BUFFERS,4,2          ## @NUM_SMALL_BUFFERS
	.comm	_SMALL_BUF_MAP_SIZE,8,3         ## @SMALL_BUF_MAP_SIZE
	.comm	_RX_Q,4,2                       ## @RX_Q
	.comm	_TX_Q,4,2                       ## @TX_Q
	.no_dead_strip	_ql_configure_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_configure_rings
_ql_configure_rings:                    ; @ql_configure_rings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_CPUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CPUS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_num_online_cpus
	mov	x1, x0
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_min
	mov	x20, x0
	ldr	x8, [x19, #48]
Lloh3:
	adrp	x9, _LARGE_BUFFER_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LARGE_BUFFER_MAX_SIZE@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _LARGE_BUFFER_MIN_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LARGE_BUFFER_MIN_SIZE@GOTPAGEOFF]
	cmp	w8, #1500
	csel	x8, x9, x10, gt
	ldr	w21, [x8]
	mov	x0, x21
	bl	_get_order
	str	w0, [x19, #40]
	str	w20, [x19]
	mov	x0, x19
	bl	_ql_enable_msix
	ldr	w8, [x19]
	stp	w8, w20, [x19, #4]
	add	w8, w8, w20
	str	w8, [x19, #12]
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x22, x8, x23
	mov	x0, x22
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x19, [x22, #16]
	ldr	w8, [x19, #16]
	stp	w24, w8, [x22]
	lsl	w8, w8, #2
	ldp	w9, w10, [x19, #4]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	w9, w24, w9
	stp	w8, w9, [x22, #8]
	add	x24, x24, #1
	add	x23, x23, #24
	cmp	x24, x10
	b.lt	LBB0_2
; %bb.3:
	ldr	w8, [x19, #12]
LBB0_4:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x23, #0
	mov	x24, #0
Lloh7:
	adrp	x27, _SMALL_BUF_MAP_SIZE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SMALL_BUF_MAP_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x28, _RX_Q@GOTPAGE
Lloh10:
	ldr	x28, [x28, _RX_Q@GOTPAGEOFF]
Lloh11:
	adrp	x25, _TX_Q@GOTPAGE
Lloh12:
	ldr	x25, [x25, _TX_Q@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	ldr	w9, [x19, #16]
	lsl	w10, w9, #2
	stp	w9, w10, [x22, #8]
	str	xzr, [x22, #48]
	stp	xzr, xzr, [x22, #16]
	mov	x9, x25
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x9]
	add	x10, x26, x23
	str	x8, [x10, #40]
	str	w9, [x10, #32]
	add	x24, x24, #1
	ldrsw	x8, [x19, #12]
	add	x23, x23, #64
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #24]
	add	x22, x26, x23
	mov	x0, x22
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	x19, [x22, #56]
	sdiv	w8, w24, w20
	msub	w8, w8, w20, w24
	stp	w24, w8, [x22]
	ldrsw	x8, [x19, #4]
	cmp	x24, x8
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #20]
	lsl	w9, w8, #2
	stp	w8, w9, [x22, #8]
Lloh13:
	adrp	x8, _NUM_LARGE_BUFFERS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NUM_LARGE_BUFFERS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w9, w8, #2
	stp	w8, w9, [x22, #16]
	str	x21, [x22, #48]
Lloh16:
	adrp	x8, _NUM_SMALL_BUFFERS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NUM_SMALL_BUFFERS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	lsl	w9, w8, #2
	stp	w8, w9, [x22, #24]
	ldr	x8, [x27]
	mov	x9, x28
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CPUS,4,2                   ; @MAX_CPUS
	.comm	_LARGE_BUFFER_MAX_SIZE,4,2      ; @LARGE_BUFFER_MAX_SIZE
	.comm	_LARGE_BUFFER_MIN_SIZE,4,2      ; @LARGE_BUFFER_MIN_SIZE
	.comm	_NUM_LARGE_BUFFERS,4,2          ; @NUM_LARGE_BUFFERS
	.comm	_NUM_SMALL_BUFFERS,4,2          ; @NUM_SMALL_BUFFERS
	.comm	_SMALL_BUF_MAP_SIZE,8,3         ; @SMALL_BUF_MAP_SIZE
	.comm	_RX_Q,4,2                       ; @RX_Q
	.comm	_TX_Q,4,2                       ; @TX_Q
	.no_dead_strip	_ql_configure_rings
.subsections_via_symbols
