	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_init_pf_wfq                ## -- Begin function qed_init_pf_wfq
	.p2align	4, 0x90
_qed_init_pf_wfq:                       ## @qed_init_pf_wfq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%ecx, %edi
	callq	_QM_WFQ_INC_VAL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_QM_WFQ_MAX_INC_VAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_2
## %bb.3:
	movq	_QM_REG_WFQPFWEIGHT@GOTPCREL(%rip), %rcx
	shll	$2, %ebx
	movslq	%ebx, %rdx
	addq	(%rcx), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rcx
	callq	_qed_wr
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_NOTICE
	movl	$-1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_WFQ_MAX_INC_VAL,8,3         ## @QM_WFQ_MAX_INC_VAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid PF WFQ weight configuration\n"

	.comm	_QM_REG_WFQPFWEIGHT,8,3         ## @QM_REG_WFQPFWEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_init_pf_wfq                ; -- Begin function qed_init_pf_wfq
	.p2align	2
_qed_init_pf_wfq:                       ; @qed_init_pf_wfq
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x3
	bl	_QM_WFQ_INC_VAL
	cbz	x0, LBB0_3
; %bb.1:
	mov	x3, x0
Lloh0:
	adrp	x8, _QM_WFQ_MAX_INC_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_WFQ_MAX_INC_VAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _QM_REG_WFQPFWEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QM_REG_WFQPFWEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	w9, w21, #2
	add	x2, x8, w9, sxtw
	mov	x0, x19
	mov	x1, x20
	bl	_qed_wr
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	mov	w0, #-1
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_WFQ_MAX_INC_VAL,8,3         ; @QM_WFQ_MAX_INC_VAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid PF WFQ weight configuration\n"

	.comm	_QM_REG_WFQPFWEIGHT,8,3         ; @QM_REG_WFQPFWEIGHT
.subsections_via_symbols
