	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_query_hwrm_pri2cos
_bnxt_re_query_hwrm_pri2cos:            ## @bnxt_re_query_hwrm_pri2cos
	.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, %r13
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	8(%rdi), %edi
	callq	_netdev_priv
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%r14), %r15
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HWRM_QUEUE_PRI2COS_QCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_re_init_hwrm_hdr
	andl	$1, %ebx
	movq	_HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, -60(%rbp)
	movl	(%r12), %eax
	movl	%eax, -64(%rbp)
	movq	_DFLT_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-80(%rbp), %rcx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	movl	$12, %edx
	movl	$16, %r8d
	callq	_bnxt_re_fill_fw_msg
	movq	(%r15), %rax
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	*(%rax)
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	cmpq	$0, -72(%rbp)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_rdev_to_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
LBB0_5:
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_6
## %bb.7:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-80(%rbp,%rdx,4), %esi
	movl	%esi, (%r13,%rdx,4)
	incq	%rdx
	movslq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HWRM_QUEUE_PRI2COS_QCFG,4,2    ## @HWRM_QUEUE_PRI2COS_QCFG
	.comm	_HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN,4,2 ## @HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN
	.comm	_DFLT_HWRM_CMD_TIMEOUT,4,2      ## @DFLT_HWRM_CMD_TIMEOUT
	.comm	_BNXT_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Asymmetric cos queue configuration detected"

L_.str.1:                               ## @.str.1
	.asciz	" on device, QoS may not be fully functional\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_bnxt_re_query_hwrm_pri2cos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_query_hwrm_pri2cos
_bnxt_re_query_hwrm_pri2cos:            ; @bnxt_re_query_hwrm_pri2cos
	.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, x2
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #40]
	str	xzr, [sp, #32]
	ldr	w0, [x0, #8]
	bl	_netdev_priv
	cbz	x19, LBB0_8
; %bb.1:
	mov	x22, x0
	ldr	x23, [x20]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _HWRM_QUEUE_PRI2COS_QCFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_QUEUE_PRI2COS_QCFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #32
	mov	x0, x20
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_re_init_hwrm_hdr
	and	w8, w21, #0x1
Lloh3:
	adrp	x9, _HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	w0, [sp, #36]
	ldr	w8, [x22]
	str	w8, [sp, #32]
Lloh6:
	adrp	x8, _DFLT_HWRM_CMD_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DFLT_HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	add	x0, sp, #8
	add	x1, sp, #32
	add	x3, sp, #16
	mov	w2, #12
	mov	w4, #16
	bl	_bnxt_re_fill_fw_msg
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _BNXT_ROCE_ULP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNXT_ROCE_ULP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x23
	blr	x8
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_rdev_to_dev
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x0, x20
	bl	_rdev_to_dev
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_4:
Lloh16:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x9, #0
	add	x10, sp, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldr	w12, [x10, x11]
	str	w12, [x19, x11]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HWRM_QUEUE_PRI2COS_QCFG,4,2    ; @HWRM_QUEUE_PRI2COS_QCFG
	.comm	_HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN,4,2 ; @HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN
	.comm	_DFLT_HWRM_CMD_TIMEOUT,4,2      ; @DFLT_HWRM_CMD_TIMEOUT
	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Asymmetric cos queue configuration detected"

l_.str.1:                               ; @.str.1
	.asciz	" on device, QoS may not be fully functional\n"

	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_bnxt_re_query_hwrm_pri2cos
.subsections_via_symbols
