	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_hwrm_func_resc_qcaps      ## -- Begin function bnxt_hwrm_func_resc_qcaps
	.p2align	4, 0x90
_bnxt_hwrm_func_resc_qcaps:             ## @bnxt_hwrm_func_resc_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	160(%rdi), %r13
	movq	$0, -48(%rbp)
	movq	_HWRM_FUNC_RESOURCE_QCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movl	%eax, -48(%rbp)
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	__hwrm_send_message_silent
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	72(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 152(%rbx)
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.2:
	movl	68(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 144(%rbx)
	movl	64(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 136(%rbx)
	movl	60(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 128(%rbx)
	movl	56(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 120(%rbx)
	movl	52(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 112(%rbx)
	movl	48(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 104(%rbx)
	movl	44(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 96(%rbx)
	movl	40(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 16(%rbx)
	movl	36(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 88(%rbx)
	movl	32(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%rbx)
	movl	28(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 80(%rbx)
	movl	24(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 72(%rbx)
	movl	20(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 64(%rbx)
	movl	16(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%rbx)
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%rbx)
	movl	8(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%rbx)
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	4(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%rbx)
	movq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_BNXT_PF
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 8(%rbx)
	movq	_BNXT_VF_RESV_STRATEGY_MINIMAL_STATIC@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jge	LBB0_7
## %bb.6:
	movq	_BNXT_VF_RESV_STRATEGY_MAXIMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_FUNC_RESOURCE_QCAPS,4,2   ## @HWRM_FUNC_RESOURCE_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_VF_RESV_STRATEGY_MINIMAL_STATIC,8,3 ## @BNXT_VF_RESV_STRATEGY_MINIMAL_STATIC
	.comm	_BNXT_VF_RESV_STRATEGY_MAXIMAL,8,3 ## @BNXT_VF_RESV_STRATEGY_MAXIMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_hwrm_func_resc_qcaps      ; -- Begin function bnxt_hwrm_func_resc_qcaps
	.p2align	2
_bnxt_hwrm_func_resc_qcaps:             ; @bnxt_hwrm_func_resc_qcaps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #160]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _HWRM_FUNC_RESOURCE_QCAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_FUNC_RESOURCE_QCAPS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	mov	w0, #65535
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh3:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	__hwrm_send_message_silent
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	w0, [x23, #72]
	bl	_le16_to_cpu
	str	x0, [x19, #152]
	cbz	w22, LBB0_1
; %bb.3:
	ldr	w0, [x23, #68]
	bl	_le16_to_cpu
	str	x0, [x19, #144]
	ldr	w0, [x23, #64]
	bl	_le16_to_cpu
	str	x0, [x19, #136]
	ldr	w0, [x23, #60]
	bl	_le16_to_cpu
	str	x0, [x19, #128]
	ldr	w0, [x23, #56]
	bl	_le16_to_cpu
	str	x0, [x19, #120]
	ldr	w0, [x23, #52]
	bl	_le16_to_cpu
	str	x0, [x19, #112]
	ldr	w0, [x23, #48]
	bl	_le16_to_cpu
	str	x0, [x19, #104]
	ldr	w0, [x23, #44]
	bl	_le16_to_cpu
	str	x0, [x19, #96]
	ldr	w0, [x23, #40]
	bl	_le16_to_cpu
	str	x0, [x19, #16]
	ldr	w0, [x23, #36]
	bl	_le16_to_cpu
	str	x0, [x19, #88]
	ldr	w0, [x23, #32]
	bl	_le16_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [x23, #28]
	bl	_le16_to_cpu
	str	x0, [x19, #80]
	ldr	w0, [x23, #24]
	bl	_le16_to_cpu
	str	x0, [x19, #72]
	ldr	w0, [x23, #20]
	bl	_le16_to_cpu
	str	x0, [x19, #64]
	ldr	w0, [x23, #16]
	bl	_le16_to_cpu
	str	x0, [x19, #56]
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	str	x0, [x19, #48]
	ldr	w0, [x23, #8]
	bl	_le16_to_cpu
	str	x0, [x19, #40]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x23, #4]
	bl	_le16_to_cpu
	ldr	x8, [x19, #16]
	stp	x8, x0, [x19, #24]
LBB0_5:
	mov	x0, x19
	bl	_BNXT_PF
	cbz	x0, LBB0_1
; %bb.6:
	ldr	w0, [x23]
	bl	_le16_to_cpu
	str	x0, [x19, #8]
Lloh9:
	adrp	x8, _BNXT_VF_RESV_STRATEGY_MINIMAL_STATIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNXT_VF_RESV_STRATEGY_MINIMAL_STATIC@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_1
; %bb.7:
Lloh12:
	adrp	x8, _BNXT_VF_RESV_STRATEGY_MAXIMAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNXT_VF_RESV_STRATEGY_MAXIMAL@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_FUNC_RESOURCE_QCAPS,4,2   ; @HWRM_FUNC_RESOURCE_QCAPS
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_VF_RESV_STRATEGY_MINIMAL_STATIC,8,3 ; @BNXT_VF_RESV_STRATEGY_MINIMAL_STATIC
	.comm	_BNXT_VF_RESV_STRATEGY_MAXIMAL,8,3 ; @BNXT_VF_RESV_STRATEGY_MAXIMAL
.subsections_via_symbols
