	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_func_qcaps
_bnxt_hwrm_func_qcaps:                  ## @bnxt_hwrm_func_qcaps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	___bnxt_hwrm_func_qcaps
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_queue_qportcfg
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_8
LBB0_3:
	cmpl	$67587, (%r14)                  ## imm = 0x10803
	jl	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_bnxt_alloc_ctx_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bnxt_hwrm_func_resc_qcaps
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_BNXT_FW_CAP_NEW_RM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwrm query qportcfg failure rc: %d\n"

	.comm	_BNXT_FW_CAP_NEW_RM,4,2         ## @BNXT_FW_CAP_NEW_RM
	.no_dead_strip	_bnxt_hwrm_func_qcaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_func_qcaps
_bnxt_hwrm_func_qcaps:                  ; @bnxt_hwrm_func_qcaps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	___bnxt_hwrm_func_qcaps
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_bnxt_hwrm_queue_qportcfg
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
	b	LBB0_8
LBB0_3:
	ldr	w8, [x19]
	mov	w9, #2051
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_bnxt_alloc_ctx_mem
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_bnxt_hwrm_func_resc_qcaps
	mov	w20, #0
	cbnz	w0, LBB0_8
; %bb.6:
Lloh2:
	adrp	x8, _BNXT_FW_CAP_NEW_RM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BNXT_FW_CAP_NEW_RM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwrm query qportcfg failure rc: %d\n"

	.comm	_BNXT_FW_CAP_NEW_RM,4,2         ; @BNXT_FW_CAP_NEW_RM
	.no_dead_strip	_bnxt_hwrm_func_qcaps
.subsections_via_symbols
