	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_config_qos              ## -- Begin function be_cmd_config_qos
	.p2align	4, 0x90
_be_cmd_config_qos:                     ## @be_cmd_config_qos
	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_BE3_chip
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movslq	%r15d, %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_be_cmd_set_qos                 ## TAILCALL
LBB0_1:
	leaq	-80(%rbp), %rdi
	callq	_be_reset_nic_desc
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	%r14d, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	%rbx, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_NIC_RESOURCE_DESC_TYPE_V0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_RESOURCE_DESC_SIZE_V0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_QUN_SHIFT@GOTPCREL(%rip), %rax
	movq	_IMM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_NOSV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movl	%edx, -80(%rbp)
	movslq	%r15d, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_3:
	movq	_NIC_RESOURCE_DESC_TYPE_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_RESOURCE_DESC_SIZE_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_IMM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_NOSV_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	$1, %r13d
	btsl	%eax, %edx
	movl	%edx, -80(%rbp)
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.5:
	imull	$100, %r15d, %eax
	cltd
	idivl	%r12d
	movl	%eax, %edi
	jmp	LBB0_6
LBB0_4:
	movl	$100, %edi
LBB0_6:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	-76(%rbp), %edx
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_be_cmd_set_profile_config
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_RESOURCE_DESC_TYPE_V0,4,2  ## @NIC_RESOURCE_DESC_TYPE_V0
	.comm	_RESOURCE_DESC_SIZE_V0,4,2      ## @RESOURCE_DESC_SIZE_V0
	.comm	_QUN_SHIFT,4,2                  ## @QUN_SHIFT
	.comm	_IMM_SHIFT,4,2                  ## @IMM_SHIFT
	.comm	_NOSV_SHIFT,4,2                 ## @NOSV_SHIFT
	.comm	_NIC_RESOURCE_DESC_TYPE_V1,4,2  ## @NIC_RESOURCE_DESC_TYPE_V1
	.comm	_RESOURCE_DESC_SIZE_V1,4,2      ## @RESOURCE_DESC_SIZE_V1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_config_qos              ; -- Begin function be_cmd_config_qos
	.p2align	2
_be_cmd_config_qos:                     ; @be_cmd_config_qos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	bl	_BE3_chip
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_be_cmd_set_qos
LBB0_2:
	add	x0, sp, #8
	bl	_be_reset_nic_desc
	ldr	w8, [x20]
	stp	w19, w8, [sp, #40]
	str	xzr, [sp, #32]
	mov	x0, x20
	bl	_lancer_chip
	cbz	x0, LBB0_4
; %bb.3:
	mov	w22, #0
Lloh0:
	adrp	x8, _NIC_RESOURCE_DESC_TYPE_V0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_RESOURCE_DESC_TYPE_V0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QUN_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QUN_SHIFT@GOTPAGEOFF]
	str	w8, [sp, #16]
Lloh5:
	ldr	w8, [x9]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh6:
	adrp	x10, _IMM_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IMM_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh9:
	adrp	x10, _NOSV_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NOSV_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _RESOURCE_DESC_SIZE_V0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RESOURCE_DESC_SIZE_V0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _NIC_RESOURCE_DESC_TYPE_V1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NIC_RESOURCE_DESC_TYPE_V1@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh18:
	adrp	x8, _IMM_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IMM_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	w22, #1
	lsl	w8, w22, w8
Lloh21:
	adrp	x9, _NOSV_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NOSV_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _RESOURCE_DESC_SIZE_V1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RESOURCE_DESC_SIZE_V1@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	mov	w0, #100
	cbz	w21, LBB0_6
; %bb.5:
	mul	w8, w21, w0
	mov	w22, #1
	sdiv	w0, w8, w23
LBB0_6:
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	w2, [sp, #12]
	add	x1, sp, #8
	mov	x0, x20
	mov	w3, #1
	mov	x4, x22
	mov	x5, x19
	bl	_be_cmd_set_profile_config
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.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
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_RESOURCE_DESC_TYPE_V0,4,2  ; @NIC_RESOURCE_DESC_TYPE_V0
	.comm	_RESOURCE_DESC_SIZE_V0,4,2      ; @RESOURCE_DESC_SIZE_V0
	.comm	_QUN_SHIFT,4,2                  ; @QUN_SHIFT
	.comm	_IMM_SHIFT,4,2                  ; @IMM_SHIFT
	.comm	_NOSV_SHIFT,4,2                 ; @NOSV_SHIFT
	.comm	_NIC_RESOURCE_DESC_TYPE_V1,4,2  ; @NIC_RESOURCE_DESC_TYPE_V1
	.comm	_RESOURCE_DESC_SIZE_V1,4,2      ; @RESOURCE_DESC_SIZE_V1
.subsections_via_symbols
