	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_qm_pf_rt_init              ## -- Begin function qed_qm_pf_rt_init
	.p2align	4, 0x90
_qed_qm_pf_rt_init:                     ## @qed_qm_pf_rt_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rdx), %rdi
	movq	56(%rdx), %r13
	addq	40(%rdx), %rdi
	callq	_QM_PQ_MEM_4KB
	movq	_QM_OTHER_PQS_PER_PF@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	_NUM_OF_TCS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	-8(%rcx), %r10
	movq	%r10, -80(%rbp)                 ## 8-byte Spill
	shrq	$3, %r10
	incq	%r10
	movq	%rcx, %r14
	andq	$-8, %r14
	movq	%r10, %rdx
	andq	$-2, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r8d
	andl	$3, %r8d
	xorl	%esi, %esi
	movq	_QM_INVALID_PQ_ID@GOTPCREL(%rip), %rdi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rax, %rsi
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13,%rsi,8), %r12
	cmpq	$8, %rcx
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	4(%rdi), %rdx
	cmpq	%rdx, %r12
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%rcx,4), %rdx
	cmpq	%rdi, %rdx
	jbe	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r11d, %r11d
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r11, %rbx
	notq	%rbx
	addq	%rcx, %rbx
	testq	%r8, %r8
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rdx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %r9d
	movl	%r9d, (%r12,%r11,4)
	incq	%r11
	decq	%rdx
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$3, %rbx
	jb	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %edx
	movl	%edx, (%r12,%r11,4)
	movl	(%rdi), %edx
	movl	%edx, 4(%r12,%r11,4)
	movl	(%rdi), %edx
	movl	%edx, 8(%r12,%r11,4)
	movl	(%rdi), %edx
	movl	%edx, 12(%r12,%r11,4)
	addq	$4, %r11
	cmpq	%r11, %rcx
	jne	LBB0_20
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$8, -80(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%r12,%rbx,4)
	movdqu	%xmm0, 16(%r12,%rbx,4)
	movdqu	%xmm0, 32(%r12,%rbx,4)
	movdqu	%xmm0, 48(%r12,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdx
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r10b
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%r12,%rbx,4)
	movdqu	%xmm0, 16(%r12,%rbx,4)
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r11
	cmpq	%r14, %rcx
	je	LBB0_2
	jmp	LBB0_16
LBB0_21:
	movl	20(%r15), %esi
	movl	48(%r15), %edx
	movq	40(%r15), %rcx
	movq	32(%r15), %r8
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_qed_other_pq_map_rt_init
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_qed_tx_pq_map_rt_init
	cmpq	$0, 24(%r15)
	je	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qed_pf_wfq_rt_init
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_26
LBB0_23:
	movl	16(%r15), %edx
	movl	20(%r15), %esi
	movq	%rbx, %rdi
	callq	_qed_pf_rl_rt_init
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_qed_vp_wfq_rt_init
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movl	12(%r15), %esi
	movq	(%r15), %rdx
	movl	8(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r13, %r8
	callq	_qed_vport_rl_rt_init
	xorl	%r12d, %r12d
	negq	%rax
	sbbl	%r12d, %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_OTHER_PQS_PER_PF,4,2        ## @QM_OTHER_PQS_PER_PF
	.comm	_NUM_OF_TCS,8,3                 ## @NUM_OF_TCS
	.comm	_QM_INVALID_PQ_ID,4,2           ## @QM_INVALID_PQ_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_qm_pf_rt_init              ; -- Begin function qed_qm_pf_rt_init
	.p2align	2
_qed_qm_pf_rt_init:                     ; @qed_qm_pf_rt_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x2, #56]
	ldp	x9, x8, [x2, #32]
	add	x0, x9, x8
	bl	_QM_PQ_MEM_4KB
Lloh0:
	adrp	x8, _QM_OTHER_PQS_PER_PF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_OTHER_PQS_PER_PF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w23, w8, w0
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x9, #0
Lloh3:
	adrp	x10, _NUM_OF_TCS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NUM_OF_TCS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	and	x11, x10, #0xfffffffffffffff0
Lloh6:
	adrp	x12, _QM_INVALID_PQ_ID@GOTPAGE
Lloh7:
	ldr	x12, [x12, _QM_INVALID_PQ_ID@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x19, x9, lsl #3]
	cmp	x10, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x14, x13, x10, lsl #2
	add	x15, x12, #4
	cmp	x13, x15
	ccmp	x14, x12, #0, lo
	b.hi	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ld1r.4s	{ v0 }, [x12]
	add	x14, x13, #32
	mov	x15, x11
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x14, #-32]
	stp	q0, q0, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x15, x11
	cmp	x10, x11
	b.eq	LBB0_2
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x15, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x14, x10, x15
	add	x13, x13, x15, lsl #2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x12]
	str	w15, [x13], #4
	subs	x14, x14, #1
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	ldr	w1, [x21, #20]
	ldr	w2, [x21, #48]
	ldp	x4, x3, [x21, #32]
	mov	x0, x20
	mov	w5, #0
	bl	_qed_other_pq_map_rt_init
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_qed_tx_pq_map_rt_init
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x21
	bl	_qed_pf_wfq_rt_init
	cbnz	x0, LBB0_16
LBB0_14:
	ldp	w2, w1, [x21, #16]
	mov	x0, x20
	bl	_qed_pf_rl_rt_init
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_qed_vp_wfq_rt_init
	cbz	x0, LBB0_18
LBB0_16:
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	x2, [x21]
	ldp	w3, w1, [x21, #8]
	mov	x0, x20
	mov	x4, x19
	bl	_qed_vport_rl_rt_init
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_OTHER_PQS_PER_PF,4,2        ; @QM_OTHER_PQS_PER_PF
	.comm	_NUM_OF_TCS,8,3                 ; @NUM_OF_TCS
	.comm	_QM_INVALID_PQ_ID,4,2           ; @QM_INVALID_PQ_ID
.subsections_via_symbols
