	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_setup_qos
_bnxt_re_setup_qos:                     ## @bnxt_re_setup_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_bnxt_re_get_priority_mask
	xorl	%r15d, %r15d
	cmpq	(%rbx), %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movq	%rax, (%rbx)
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnxt_re_query_hwrm_pri2cos
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_10
LBB0_3:
	movq	16(%rbx), %rdx
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnxt_re_parse_cid_map
	leaq	8(%rbx), %r12
	movq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_bnxt_qplib_map_tc2cos
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rdev_to_dev
	movq	16(%rbx), %rcx
	movslq	(%rcx), %rdx
	movl	4(%rcx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_10
LBB0_5:
	movl	(%r12), %eax
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_8
LBB0_6:
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	testq	%r14, %r14
	setne	%al
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_bnxt_re_update_gid
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no cos for p_mask %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"no tc for cos{%x, %x}\n"

	.no_dead_strip	_bnxt_re_setup_qos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_setup_qos
_bnxt_re_setup_qos:                     ; @bnxt_re_setup_qos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_bnxt_re_get_priority_mask
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	mov	w21, #0
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	str	x0, [x19]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_bnxt_re_query_hwrm_pri2cos
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	bl	_rdev_to_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	b	LBB0_6
LBB0_4:
	ldr	x2, [x19, #16]
	add	x1, sp, #12
	mov	x0, x20
	bl	_bnxt_re_parse_cid_map
	add	x22, x19, #8
	ldr	x1, [x19, #16]
	mov	x0, x22
	bl	_bnxt_qplib_map_tc2cos
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
	mov	x0, x19
	bl	_rdev_to_dev
	ldr	x8, [x19, #16]
	ldp	w2, w8, [x8]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dev_warn
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w8, [x22]
	cbz	x20, LBB0_10
; %bb.9:
	cbnz	w8, LBB0_1
	b	LBB0_11
LBB0_10:
	cbz	w8, LBB0_1
LBB0_11:
	cmp	x20, #0
	cset	w8, ne
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_bnxt_re_update_gid
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no cos for p_mask %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"no tc for cos{%x, %x}\n"

	.no_dead_strip	_bnxt_re_setup_qos
.subsections_via_symbols
