	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_fill_qdesc_num_and_size  ## -- Begin function cudbg_fill_qdesc_num_and_size
	.p2align	4, 0x90
_cudbg_fill_qdesc_num_and_size:         ## @cudbg_fill_qdesc_num_and_size
	.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	_MAX_ETH_QSETS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leal	(%r8,%r8,2), %r10d
	movq	_MAX_CTRL_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAX_CTRL_TXQ_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	imull	%eax, %r9d
	movq	_MAX_CTRL_TXQ_DESC_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r9d
	movq	_CXGB4_TX_MAX@GOTPCREL(%rip), %rcx
	movq	_MAX_OFLD_QSETS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	imull	(%rcx), %edi
	movq	_CXGB4_ULD_MAX@GOTPCREL(%rip), %r11
	movq	_MAX_ULD_QSETS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%r11), %ecx
	movq	_MAX_RSPQ_ENTRIES@GOTPCREL(%rip), %r11
	movq	_MAX_RXQ_DESC_SIZE@GOTPCREL(%rip), %r14
	addl	%eax, %r10d
	movq	_INGQ_EXTRAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %r10d
	addl	%r8d, %eax
	addl	%ecx, %eax
	imull	(%r11), %eax
	movq	_SGE_MAX_IQ_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	imull	%ecx, %ebx
	addl	%ebx, %eax
	imull	(%r14), %eax
	movq	_MAX_TXQ_ENTRIES@GOTPCREL(%rip), %r11
	movq	_MAX_TXQ_DESC_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	addl	%edi, %r10d
	addl	%r8d, %edi
	imull	%ebx, %edi
	addl	%ebx, %edi
	movq	_MAX_RX_BUFFERS@GOTPCREL(%rip), %r14
	imull	(%r11), %edi
	movq	_MAX_FL_DESC_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r11d
	imull	(%r14), %r11d
	addl	%ecx, %r10d
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leal	(%r10,%rcx,2), %ebx
	incl	%ebx
	movl	%ebx, (%rsi)
LBB0_2:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	leal	(%r10,%rcx,2), %esi
	addl	%edi, %r9d
	addl	%r8d, %ecx
	imull	%ecx, %r11d
	leal	(%r9,%rsi,4), %ecx
	addl	$4, %ecx
	addl	%r11d, %ecx
	addl	%ecx, %eax
	addl	$8, %eax
	movl	%eax, (%rdx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ETH_QSETS,4,2              ## @MAX_ETH_QSETS
	.comm	_MAX_CTRL_QUEUES,4,2            ## @MAX_CTRL_QUEUES
	.comm	_MAX_TXQ_ENTRIES,4,2            ## @MAX_TXQ_ENTRIES
	.comm	_MAX_TXQ_DESC_SIZE,4,2          ## @MAX_TXQ_DESC_SIZE
	.comm	_MAX_RSPQ_ENTRIES,4,2           ## @MAX_RSPQ_ENTRIES
	.comm	_MAX_RXQ_DESC_SIZE,4,2          ## @MAX_RXQ_DESC_SIZE
	.comm	_MAX_RX_BUFFERS,4,2             ## @MAX_RX_BUFFERS
	.comm	_MAX_FL_DESC_SIZE,4,2           ## @MAX_FL_DESC_SIZE
	.comm	_MAX_CTRL_TXQ_ENTRIES,4,2       ## @MAX_CTRL_TXQ_ENTRIES
	.comm	_MAX_CTRL_TXQ_DESC_SIZE,4,2     ## @MAX_CTRL_TXQ_DESC_SIZE
	.comm	_INGQ_EXTRAS,4,2                ## @INGQ_EXTRAS
	.comm	_CXGB4_TX_MAX,4,2               ## @CXGB4_TX_MAX
	.comm	_MAX_OFLD_QSETS,4,2             ## @MAX_OFLD_QSETS
	.comm	_CXGB4_ULD_MAX,4,2              ## @CXGB4_ULD_MAX
	.comm	_MAX_ULD_QSETS,4,2              ## @MAX_ULD_QSETS
	.comm	_SGE_MAX_IQ_SIZE,4,2            ## @SGE_MAX_IQ_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_fill_qdesc_num_and_size  ; -- Begin function cudbg_fill_qdesc_num_and_size
	.p2align	2
_cudbg_fill_qdesc_num_and_size:         ; @cudbg_fill_qdesc_num_and_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_ETH_QSETS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ETH_QSETS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w5, w8, w8, lsl #1
Lloh3:
	adrp	x9, _MAX_CTRL_QUEUES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_CTRL_QUEUES@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x9]
Lloh6:
	adrp	x9, _MAX_TXQ_ENTRIES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_TXQ_ENTRIES@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x9]
Lloh9:
	adrp	x9, _MAX_TXQ_DESC_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_TXQ_DESC_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x9]
Lloh12:
	adrp	x9, _MAX_RSPQ_ENTRIES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX_RSPQ_ENTRIES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _MAX_RXQ_DESC_SIZE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MAX_RXQ_DESC_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x13, _MAX_RX_BUFFERS@GOTPAGE
Lloh19:
	ldr	x13, [x13, _MAX_RX_BUFFERS@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x13]
Lloh21:
	adrp	x15, _MAX_FL_DESC_SIZE@GOTPAGE
Lloh22:
	ldr	x15, [x15, _MAX_FL_DESC_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w15, [x15]
Lloh24:
	adrp	x16, _MAX_CTRL_TXQ_ENTRIES@GOTPAGE
Lloh25:
	ldr	x16, [x16, _MAX_CTRL_TXQ_ENTRIES@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x16]
Lloh27:
	adrp	x16, _MAX_CTRL_TXQ_DESC_SIZE@GOTPAGE
Lloh28:
	ldr	x16, [x16, _MAX_CTRL_TXQ_DESC_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w16, [x16]
Lloh30:
	adrp	x17, _INGQ_EXTRAS@GOTPAGE
Lloh31:
	ldr	x17, [x17, _INGQ_EXTRAS@GOTPAGEOFF]
Lloh32:
	ldr	w17, [x17]
Lloh33:
	adrp	x3, _CXGB4_TX_MAX@GOTPAGE
Lloh34:
	ldr	x3, [x3, _CXGB4_TX_MAX@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x3]
Lloh36:
	adrp	x4, _MAX_OFLD_QSETS@GOTPAGE
Lloh37:
	ldr	x4, [x4, _MAX_OFLD_QSETS@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x4]
	mul	w4, w4, w3
Lloh39:
	adrp	x3, _CXGB4_ULD_MAX@GOTPAGE
Lloh40:
	ldr	x3, [x3, _CXGB4_ULD_MAX@GOTPAGEOFF]
Lloh41:
	adrp	x6, _MAX_ULD_QSETS@GOTPAGE
Lloh42:
	ldr	x6, [x6, _MAX_ULD_QSETS@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x3]
Lloh44:
	ldr	w6, [x6]
	mul	w3, w6, w3
	add	w5, w11, w5
	add	w5, w5, w17
	add	w5, w5, w4
	add	w5, w5, w3
	add	w5, w5, w3, lsl #1
	add	w5, w5, #1
Lloh45:
	adrp	x6, _SGE_MAX_IQ_SIZE@GOTPAGE
Lloh46:
	ldr	x6, [x6, _SGE_MAX_IQ_SIZE@GOTPAGEOFF]
Lloh47:
	ldr	w6, [x6]
	cbz	x1, LBB0_2
; %bb.1:
	str	w5, [x1]
LBB0_2:
	cbz	x2, LBB0_4
; %bb.3:
	add	w1, w4, w8
	madd	w14, w1, w14, w14
	mul	w11, w0, w11
	mul	w12, w14, w12
	madd	w11, w11, w16, w12
	mul	w12, w6, w3
	add	w14, w17, w8
	add	w14, w14, w3
	add	w8, w3, w8
	mul	w13, w15, w13
	add	w11, w11, w5, lsl #2
	madd	w9, w14, w9, w12
	madd	w8, w13, w8, w11
	madd	w8, w9, w10, w8
	add	w8, w8, #8
	str	w8, [x2]
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ETH_QSETS,4,2              ; @MAX_ETH_QSETS
	.comm	_MAX_CTRL_QUEUES,4,2            ; @MAX_CTRL_QUEUES
	.comm	_MAX_TXQ_ENTRIES,4,2            ; @MAX_TXQ_ENTRIES
	.comm	_MAX_TXQ_DESC_SIZE,4,2          ; @MAX_TXQ_DESC_SIZE
	.comm	_MAX_RSPQ_ENTRIES,4,2           ; @MAX_RSPQ_ENTRIES
	.comm	_MAX_RXQ_DESC_SIZE,4,2          ; @MAX_RXQ_DESC_SIZE
	.comm	_MAX_RX_BUFFERS,4,2             ; @MAX_RX_BUFFERS
	.comm	_MAX_FL_DESC_SIZE,4,2           ; @MAX_FL_DESC_SIZE
	.comm	_MAX_CTRL_TXQ_ENTRIES,4,2       ; @MAX_CTRL_TXQ_ENTRIES
	.comm	_MAX_CTRL_TXQ_DESC_SIZE,4,2     ; @MAX_CTRL_TXQ_DESC_SIZE
	.comm	_INGQ_EXTRAS,4,2                ; @INGQ_EXTRAS
	.comm	_CXGB4_TX_MAX,4,2               ; @CXGB4_TX_MAX
	.comm	_MAX_OFLD_QSETS,4,2             ; @MAX_OFLD_QSETS
	.comm	_CXGB4_ULD_MAX,4,2              ; @CXGB4_ULD_MAX
	.comm	_MAX_ULD_QSETS,4,2              ; @MAX_ULD_QSETS
	.comm	_SGE_MAX_IQ_SIZE,4,2            ; @SGE_MAX_IQ_SIZE
.subsections_via_symbols
